HP Systems Insight Manager 6.0 Command Line Interface Guide

<?xml version="1.0" encoding="UTF-8"?>
<reportList>
<report reportName="Inventory 7Servers" displayFlag="0" creatorId="1"
editFlag="1">
<group groupLocale="en_US" parent="System reports" child=""/> <displayName
displayLocale="en_US">Inventory 7Servers</displayName>
<query queryType="0" queryLocale="en_US">All Servers</query>
<item viewColName="DeviceName" viewName="R_Inventory"/>
<item viewColName="ProductType" viewName="R_Inventory"/>
<item viewColName="ProductName" viewName="R_Inventory"/>
<item viewColName="SerialNumber" viewName="R_Inventory"/>
<item viewColName="AssetTag" viewName="R_Inventory"/>
<item viewColName="MemorySize" viewName="R_Inventory"/>
<item viewColName="OSName" viewName="R_Inventory"/>
<item viewColName="OSVendor" viewName="R_Inventory"/>
<item viewColName="Location" viewName="R_Inventory"/>
<item viewColName="DeviceOwner" viewName="R_Inventory"/>
<viewOption>0</viewOption>
<privilege>0</privilege>
</report>
</reportList>
In this example, the report is called Inventory 7–Servers, and runs against the All Servers collection. If you
save this file using the name inv7server.xml, the command to add this report to HP SIM is:
# mxreport a f <path>inv7server.xml
Where <path> is the fully qualified path to the inv7server.xml file.
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:
Inventory management 115