The OSINFO subtask of the VP390 agent task will gather various z/OS operating system statistics and present the data in a format that can be parsed by a script. The OSINFO subtask can also be requested to run REXX programs or list information from physical sequential or partitioned datasets. OSINFO data are requested using type 46 of the ev390hostcmd
utility. (See section Clearing Mainframe CMDB tables).
The OSINFO data are requested by specifying a two-digit code followed by a vertical bar and additional parameter information depending on the selected code. For example, to gather DASD information (code 01) for a volume named "disk99" on mainframe "s390.mysite.com," the ev390hostcmd
syntax is:
ev390hostcmd 46 "01|DISK99.s390.mysite.com"
Because the Windows shell interprets the vertical bar as a pipe symbol, the vertical bar will need to be escaped by enclosing everything after the last space inside double quotation marks.
Output lines for requests other than REXX programs or dataset listings will be returned with values separated by a vertical bar. One line will be generated for each record found, representing one job, device, etc. The last line will be the text "EOF".
- A dataset name is defined in the SYSIN parameter of TSOUTPUT. The dataset must exist and be cataloged before the VP390 job is started.
- A dataset is defined in the VP390 startup JCL with a DD name of TSOUTPUT.
- A dataset named EV390.TSOUTPUT will be created when a 110-114 command is called and will persist after the VP390 job has ended.
TSO options (110-114) require that the "NETSTAT" command is not in the list of TSO authorized commands. To check, verify that "NETSTAT" is not listed in the AUTHCMD section of the IKJTSOxx member of PARMLIB.
The available OSINFO codes are: