HP Systems Insight Manager 7.2 Command Line Interface Guide

# mxnode m f nodes.xml
The -m option only accepts system names. The -a option accepts system names and IP addresses.
To remove systems, use the -r option. The -r option accepts system names, host names, or IP
addresses, or in conjunction with the -f, the name of an XML file containing the names or IP
addresses of the nodes to remove. For example:
# mxnode r nodeName1 ipAddress1 nodeName2
# mxnode r f nodes.xml
There are several formats available for displaying the existing set of systems in the HP SIM database.
# 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.
Procedure 6
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
Inventory management 135