The INVENTORY utility is available for security administrators of the ClearPath MCP environment. If security administrator status is enabled, then the utility must be run under a usercode with SECADMIN privilege. Otherwise, the utility requires a usercode with privileged user (PU) status.
If you run the utility from CANDE and if you want to directly see any warning or error messages from the INVENTORY, ensure that the MSG option is set. From CANDE, enter the following command to ensure that the MSG option is set:
SO MSG
To run the INVENTORY, use the following command in CANDE, in a WFL job, or from the ODT:
RUN *SYSTEM/INVENTORY
For the RUN *SYSTEM/INVENTORY command to work properly from an ODT, configure a usercode with the necessary privileges with the TERM system command. To run the INVENTORY from a specific usercode on the ODT irrespective of setting the TERM command, prepend a USER statement to RUN command as follows:
USER=<USERCODE>/<PASSWORD>;RUN *SYSTEM/INVENTORY
If the INVENTORY runs successfully, the utility displays a message as follows:
Version report written to *INVENTORY/MYHOSTNAME/"2013-09-25_161857.XML" ON DISK
A report file is generated at the specified location. See “Report File Destination” for the details of report file location. If the INVENTORY is run under a usercode that does not have the appropriate privileges, the program aborts without producing a report and an error message is displayed. If security administrator status is enabled, the error message displayed is as follows:
Please run this program from a SECADMIN usercode.
If security administrator status is disabled, the error message displayed is as follows:
Please run this program from a privileged usercode.