I want to create a process that will trigger clear temp files in the target machine. How to achieve this?
What are the steps to achieve this?
It is possible to do some actions through command lines on remote machines, but this is limited and likely will not work properly for needs, so yes, you will need to install an Agent on every server you need the TEMP space cleared on.
The first idea that comes to mind is using an agent installed on the machine where you want to delete the temp files and then using the Run Script operator to run a batch file on the system where you want to delete the temp files. Here is more information on the Run Script operator:
Run Script Operator - CA Process Automation - 4.3.1 - CA Technologies Documentation
I have a total of 75 servers. I just want to get clarified that, Do i need to install agents on all servers to carry out the operation.
Also how i can execute batch file operation for all the above servers to in a single shot?
You aren't saying if you are using Windows, but I will assume that you are for the purpose of this example.
I have been doing something similar to do what you want to do, is that I use CAPA to launch a PowerShell script which connects to the remote server and does "something". In your case it would be run a cleanup (or a cleanup script).
You could pass a list of servers to run the script operator on the CAPA process, and have it run the cleanup either sequentially or in parallel.
You would of course have to run the PowerShell script as an ID that has the proper privileges to connect remotely, and has access to the folder in question.
Here is some documentation about Remoting in PowerShell
Geek School: Learn to Use Remoting in PowerShell
PowerShell Remoting Cheatsheet
I am using windows server. I have the PowerShell script ready for clearing temp files.
I know i need to use run script operator for running script. What are the other operators i need to use in PAM process to complete the task.
Retrieving data ...