What commands can be used to show user ID & server name thru Agent?

book

Article ID: 194626

calendar_today

Updated On:

Products

CA Workload Automation ESP Edition

Issue/Introduction

I do not have access to the server so I wanted to schedule a command to identify what user and server the esp job is running under, similar to whoami.

 

                          

Environment

Release : 11.4 & 12.0

Component : CA ESP WORKLOAD AUTOMATION

Release : 11.4 and above

Component : CA WORKLOAD AUTOMATION SYSTEM AGENT

Resolution

Set up agent WOBs to run following commands:

For windows:
whoami: show current user name;
hostname: show current server name;

For UNIX:
id: show current user;
hostname: show current server name.