HP Systems Insight Manager 7.2 Command Line Interface Guide

command enables you to define your own report categories. Run the following command to define
your own report categories:
# mxreport c f categories.xml
Where categories.xml contains the XML definitions of the categories. For the details on creating
the report categories XML definitions, see the man page mxcategoryitem(4).
To remove a report category, use the -r option:
# mxreport r report-category-name
Use the following command to execute the reports from the command line:
# mxreport [-x format] [-o report.out] e report-name
The -x option (optional) specifies the output format, either XML (the default), HTML, or CSV.
The -o option (optional) specifies a file name, for example report.out used in the example,
where the report output is saved. If you do not provide the -o option, the report output appears
on the console only.
The mxreport command also provides options to view report or report category information,
displaying the data on the console in XML format. To save the date in a file, you must use redirection.
The general format for viewing report or report category data is:
# mxreport -l x [report | category] [-n r-or-c-name]
To see a list of all reports in HP SIM, enter either of these commands:
# mxreport l x
# mxreport l x report
To view a list of all report categories in HP SIM, enter:
# mxreport l x category
The -n option enables you to select a specific report, or specific report category, for display. The
output is XML formatted data that includes details of the report or report category. To view the
details of a report, enter:
# mxreport l x report n â report nameâ
To view the details of a report category, enter:
# mxreport l x category n â report category nameâ
Third-party device management
HP SIM can manage third-party equipment if the equipment management agents and fault
management mechanisms adhere to industry standards like SNMP and WBEM. HP SIM provides
system definitions for a number of third-party systems. The System Type Manager enables you to
modify existing definitions, add new definitions for equipment unknown to HP SIM, and remove
definitions using the mxstm command.
Through the command line, the mxstm command enables you to add, remove, and list system type
definitions. For more information on this command, see the mxstm man page.
To add a new system type definition, use one of the following commands:
# mxstm a n product-name p protocol (x attribute=value)+
# mxstm a f stmfile.xml
Inventory management 137