Currently we have automated software platform deployments on the Linux platform that leave behind large artifacts (1+GB). Rather than adjust our retention policies we decided to add code to our machine policy to remove files from the working directories older than specified period of time. During testing we noticed that changes to the policy were not being implemented on the server and were able to prove it by replacing the code in the ‘SSH Endpoint Script Policy (custom)’ field with a echo statement. When we checked health against the target system we got the same output and the same commands run on a target server (local script) were fine.
Are policies executed remotely using SSH commands or is a script staged on the file system and then executed? Any suggestions would be helpful.
Thanks!