When using the Automic script function GET_FILESYSTEM (specifically with PATH_SPACE_USED or PATH_FILE_COUNT) on Linux agents to check files located on NFS-mounted shares, the script execution experiences severe delays.
Product: Automic Workload Automation
Component: Automation Engine / Linux Agent
Version: v21, v24.x, v26.x
Storage: NFS-mounted file systems or vSAN NFS shares
The GET_FILESYSTEM script function defaults to Include_Subdirectories=Y. When this parameter is active, the agent performs a recursive search across the directory tree to collect metadata.
On NFS shares, this triggers a high volume of READDIR and GETATTR calls. If the directory structure is deep or contains a large number of files, network latency and NFS metadata processing bottlenecks (common in vSAN 8.x and other NFS protocols) cause the function to hang while it traverses the file system.
Explicitly disable the recursive search parameter in the GET_FILESYSTEM call if you are targeting a specific file or a single directory level.
Add the "N" flag to the Include_Subdirectories parameter (the 7th parameter of the function):
! Original slow call (defaults to "Y"):SET &SIZE# = GET_FILESYSTEM(&HOST#, '&PATH#', PATH_SPACE_USED, 'Bytes', , &LOGIN#)! Optimized call (explicitly set to "N"):SET &SIZE# = GET_FILESYSTEM(&HOST#, '&PATH#', PATH_SPACE_USED, 'Bytes',"N", &LOGIN#)