Infrastructure management using the HP SIM command line interface (436331-002, January 2009)

If you define a report in the XML file using the name of an existing report , the duplicate report is not
processed. The mxreport command does not support a modify option. Therefore, to modify a report,
you must delete the existing report, and then create the modified report. To delete an existing report:
# mxreport –d report-name
You can only delete a report that you created, or that you have permission to delete. You cannot
delete system-defined reports and report categories. There are many predefined report categories in
HP SIM. A report category contains a logical grouping of reportable items. The mxreport 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.
7