GET_FILESYSTEM Error U00011700 when no LOGIN is used
search cancel

GET_FILESYSTEM Error U00011700 when no LOGIN is used

book

Article ID: 433429

calendar_today

Updated On:

Products

CA Automic Workload Automation - Automation Engine CA Automic One Automation

Issue/Introduction

After an upgrade to version 24, GET_FILESYSTEM sometimes requires a login object to be specified where it did not in 21.0.

 

Using a script like the following:

:SET &NumberFiles# = GET_FILESYSTEM(agent_name, "/home/automic", PATH_FILE_COUNT)

receives the error:

U00011700 Cannot find information for path '/home/automic'.

Number of files returns as 0.  The same thing worked without a login object in version 21.0 and prior.

 

When using a login object in version 24:

:SET &NumberFiles# = GET_FILESYSTEM(agent_name, "/home/automic", PATH_FILE_COUNT,,,login.objectname)

It works as expected and the correct number of files is returned.

 

Cause

In version 24.x UNIX platforms, incorrect real user handling caused caused this issue.  When using the agentUser setting with suid root and no privilege separation, the Java UNIX agent does not switch to the root user context correctly

Resolution

Resolution: 
Upgrade the agent to version 24.4.4 - Available.

Workaround:
Use a login object in the GET_FILESYSTEM() script function.