HP Systems Insight Manager 6.0 Command Line Interface Guide

# mxnode l n [systemnames]
# mxnode l d [systemnames]
# mxnode l t [systemnames]
# mxnode l f [systemnames]
# mxnode l mpo
The system names parameter is an optional list of one or more system names. If you use this parameter, the
command displays the requested data for the systems you list. Otherwise, the command displays the requested
data for all systems known to HP SIM.
The -ln option displays the system names.
The -ld option displays detailed information for each system in the database.
The -lt option displays the system name, the host name, the operating system description, the date
the system was added to the database, and the IP address for the systems in a tabular format. The -lf
option displays detailed information for the systems in XML format.
The lmpo option displays systems from the database that have any management path objects (MPO).
The man page for mxnode contains a description of management path objects.
To create an XML file that enables easier management of your system list, use the mxnode lf command.
Redirecting the output to a file, creates a file in the proper XML format enabling you to add or remove systems
from HP SIM.
To use the CLI to create an automatic discovery task:
1. Copy the default System Automatic Discovery task.
2. Modify the task name, task schedule, and IP address range fields.
3. Create a new automatic discovery task.
Alternatively, you can use the mxtask command to accomplish these steps. For a complete description of
this command, see the mxtask man page. For a full description of the XML syntax for creating tasks, see
the mxtask(4) man page.
To create a copy of the System Automatic Discovery task, enter the following command:
# mxtask lf "System Automatic Discovery" > autodisco.xml
This example creates an XML description of the task in the file autodisco.xml. Open the file in a text
editor, and modify the following fields:
The <task name> field changes the name from System Automatic Discovery to a name you want.
The <scheduleinfo> field sets the interval and time fields, defining when you want the task to run.
The ipInclusionRange field enters the IP address ranges you want discovered.
After making the changes, save the file and then create the new discovery task by entering the following
command:
# mxtask cf autodisco.xml
If you enabled periodic execution in the <scheduleinfo> field, the task automatically runs at the time and
frequency you entered. If you did not enable periodic execution, you must manually execute the task by
entering the following command:
# mxtask e TaskName
Where TaskName is the name of the task entered in the <task name> field of the XML file. The mxtask
command has a built-in help option that describes the command, parameters, and usage examples. To
access help for this command, enter, mxtask h.
Running reports
The mxreport command enables an HP SIM user with sufficient privilege to run reports, and to add, delete,
and list reports and report categories in HP SIM. A complete description of the mxreport command is
found in the mxreport man page. A complete description of the XML format used by mxreport is found in
the mxreport(4) man page.
To create a report in HP SIM, you must first create an XML file describing the report, including report name,
collection to run the report against, and reporting fields. You can define multiple reports in the XML file. The
following is an example of the XML file to create this report:
114 Infrastructure management using CLI