The following article describes how to use the "hostname" command to test PAM processing. Test process could be used to test clustering
All releases of PAM
Login to PAM Orchestrator, then go into Library.
Under the Library tab, choose a folder (create a new one if you choose to) then create a new Process (right click: New Object -> Process)
Name the new process. For purposes of this demo, we will call the process "Test-Hostname"
Right click on the "Test-Hostname" and choose "Edit". If you do not see the Operators window, click "View" then check on "Operators"
In Operators, scroll down to "Command Execution" and select "Run Script". Drag an instance of the "Run Script" into the Designer
Under Script Attributes, choose "Inline Script". A popup will appear. Enter the script "hostname", then click OK.
Scroll down along the Properties window until you see several checkbox options. Check on "Post Output to logs" and "Post output to dataset variable"
Connect the lines in the Designer to finish creating the process
Save the process (disk icon), then click "start" (green play icon) to run the process.
You will be prompted "The process has started. Do you want to monitor the new instance?". Click Yes.
The process will run very quickly. To assess the process run and view the results, click on the Run_Script instance, then select the Operations Results to view the scriptOutput (make sure you have selected the correct process instance tab)
This process can be used to test Orchestrator clustering to ensure process distribution. The scriptOutput result will show the host name of the Orchestrator node that the process ran against. Each time the "Test-Hostname" process is run, it will distribute to one of the nodes of the Orchestrator as part of clustering and show a different result per run based on cluster distribution.