Managing your HP-UX inventory with HP SIM (430146-002, January 2009)

9
ranges, or individual IP addresses, and you can enter as many as you like. If the number of IP
addresses across all the ranges is greater than 2
000, a warning message is displayed indicating that
the task has been configured with a large number of addresses. This message is provided as a
warning that discovery and data collection could take a while to complete.
Discovery CLI
The command
mxnode
en
ables you to add, delete, modify, identify, or list systems in HP SIM.
Before using
mxnode
, global protocol settings must be configured, and access credentials set, as
described above. After systems are added, identification and data collection are autom
atically run.
Systems can be added using its host name or its IP address, and can be provided on the command
line or in an XML file. Refer to the man page
mxnode
for command usage details, and the man
page
mxnode(4)
for XML file formatting details.
The
mxnode
command provides two methods to add a system:
% mxnode
a nodeName1 ipAddr1
% mxnode
a
f nodes.xml
The first example shows adding two nodes, one by its system name, and one by its IP
address. The
second example uses an XML file, “nodes.xml”, to
add all of the nodes in the
file. After the nodes are
added, identification is run on them. Here is an example of what “nodes.xml” might contain:
<?xml version="1.0" encoding="UTF
-
8"?>
<node
-
list>
<node name="nodeName1"/>
<node name="nodeN
mae2"/>
<node>
<sw
-
attribute name="IPAddress">192.1.1.1</sw
-
attribute>
</node>
</node
-
list>
The syntax to modify and re
-
identify systems is:
% mxnode
m nodeName1 nodeName2
% mxnode
m
f nodes.xml
The
-
m
option only accepts system names, unlike the
-
a
option that also accepts IP addresses.
To remove nodes, use the
-
r
option. The
r
option accepts system names, host names, or IP
addresses, or in conjunction with the
-
f
option, the name of an XML file containing the names or IP
addresses of the syste
ms 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
systemnames
parameter is an option list of one or more system names. If provided, the command
will display the requested data just for those systems. Otherwise, the command will
display the