search cancel

File paths greater than 128 characters

book

Article ID: 224443

calendar_today

Updated On:

Products

ESP Workload Automation

Issue/Introduction

Is there a way to specify a path name that is longer than 128 characters. 
 
 

Cause

128 character limit on paths within ESP.

Environment

Component : CA ESP WORKLOAD AUTOMATION
Release: 12.0

Resolution

There is currently a 128 character limit on paths used in File Triggers (FILE_TRIGGER).  The work-around is to create symbolic links MKLINK  (Windows) or ln -s (LINUX)

Windows Example:

1: Bring up CMD prompt and run as Administrator (*Note whatever dir your in is where symbolic will be created)

C:\windows\system32>mklink  /d LongDir C:\FILENAME_LONG\abcdefghijklmnopqrstuvwxyz\abcdefghijklmnopqrstuvwxyz\abcdefghijklmnopqrstuvwxyz\abcdefghijklmnopqrstuvwxyz\abcdefghijklmnopqrstuvwxyz\abcdefghijklmnopqrstuvwxyz\abcdefghijklmnopqrstuvwxyz
symbolic link created for LongDir <<===>> 

 

2.To Display the symbolic link in windows you created: 

dir /AL /S C:\ | find "SYMLINK" 

09/21/2021  09:22 AM    <SYMLINKD>     LongDir [C:\FILENAME_LONG\abcdefghijklmnopqrstuvwxyz\abcdefghijklmnopqrstuvwxyz\abcdefghijklmnopqrstuvwxyz\abcdefghijklmnopqrstuvwxyz\abcdefghijklmnopqrstuvwxyz\abcdefghijklmnopqrstuvwxyz\abcdefghijklmnopqrstuvwxyz]

 

3. Setup and executed Event DANLNFW

APPL DANLNFW                                   
FILE_TRIGGER DANLNFW                           
AGENT DANIELV                                  
FILENAME C:\windows\system32\LongDir\fwtest.txt
RUN ANY                                        
ENDJOB                                         

 

LAP DANLNFW.5 ALL                                          
APPL DANLNFW  GEN 5 COMPLETE                               
  CREATED AT 12.28 ON TUESDAY SEPTEMBER 21ST, 2021         
    ENDED AT 12.29 ON TUESDAY SEPTEMBER 21ST, 2021         
           BY EVENT XXXXX.DANLNFW                       
  Filename(C:\windows\system32\LongDir\fwtest.txt), CREATE 
  DANLNFW J4173, File Created                              
     SUCCESSORS: (NONE)                                                    

 

Linux Example:

1. On Linux use the 'ln -s' command to create a symbolic link to the directory name that exceeds the supported character count.

ln -s <path/to/directory> <symbolic link>

2. Example

ln -s /home/compops/abcdefghijklmnopqrstuvwxyz/abcdefghijklmnopqrstuvwxyz/abcdefghijklmnopqrstuvwxyz/abcdefghijklmnopqrstuvwxyz/abcdefghijklmnopqrstuvwxyz/abcdefghijklmnopqrstuvwxyz LongDir

FILE_TRIGGER FILETRG                        
  AGENT <Linux Agent Name>                          
  /* Prefix symbolic link with path of the */
  /* directory that it was created in      */                
  FILENAME /home/compops/LongDir/a.a        
  RUN DAILY                                 
  RELEASE JOB1                              
ENDJOB                                      
                                            
JOB JOB1 TASK SELFCOMPLETING                
  SEND 'Job1 run!' USER(*)                  
  RUN ANYDAY                                
ENDJOB 

 

Additional Information

N/A