How to show agent variables from ESP on windows or linux
search cancel

How to show agent variables from ESP on windows or linux

book

Article ID: 95924

calendar_today

Updated On:

Products

ESP Workload Automation

Issue/Introduction

How to determine which variables can be used in ESP on windows or Linux/Unix servers? 

Environment

Component: WORKLOAD AUTOMATION AGENTS

Resolution

Set up a test script for Windows with "set", and set up a test script for Linux/Unix with  "env".  Then set an agent wob on ESP to run the script to retrieve the spool.


Example for Windows:


C:\Windows\System32>set
ALLUSERSPROFILE=C:\ProgramData
COMPUTERNAME=<computer_name>
ComSpec=C:\windows\system32\cmd.exe
HOMEDRIVE=C:
HOMEPATH=\Users\<userid>
LOCALAPPDATA=C:\Users\<userid>\AppData\Local
OS=Windows_NT
Path=C:\<path>\
ProgramData=C:\<path>
ProgramFiles=C:\<path>
PROMPT=$P$G
SystemDrive=C:
TEMP=C:\Users\<userid>\<path>\
TMP=C:\Users\<userid>\<path>\
USERDOMAIN=<domain>
USERDOMAIN_ROAMINGPROFILE=<domain>
USERNAME=<userid>
USERPROFILE=C:\Users\<userid>
windir=C:\windows

Example for UNIX/LINUX:


$ env                                                                                                                               
MAIL=/usr/mail/<userid>                                                                                                                                                                                                                            
PATH=/usr/<path>/xxx/                                                                                                   
SHELL=/bin/sh                                                                                                                                                                                                                 
PYTHON_HOME=/usr/<path>/xxx/                                                                                              
COLUMNS=132                                                                                                                                                                                                                                                    
CLASSPATH=/usr/<path>/xxx/                      
LOGNAME=<userid>                                                                                     
STEPLIB=none                                                                                         
LANG=C                                                                                               
LIBPATH=/usr/<path>/xxx/                                                                            
TERM=dumb                                                                                                                                                          
HOME=/z/<userid>                                                                                     
PYTHONPATH=/usr/<path>/xxx/                                                                                                                                                      
TZ=<timezone>