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.
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:
Upgrade the agent to version 24.4.4 - Available.
Workaround:
Use a login object in the GET_FILESYSTEM() script function.