HP Systems Insight Manager 6.0 Command Line Interface Guide

The credential.xml file might contain the following:
<?xml version="1.0" encoding="UTF-8" ?>
<nodelist>
<node name="nodeName1">
<credential protocol="wbem" username="root" password="password"/>
<credential protocol="snmp" username="public" password="private"/>
</node>
<node name="nodeName2">
<credential protocol="wbem" username="root" password="password"/>
<credential protocol="snmp" username="public" password="private" />
</node>
</nodelist>
The mxnodesecurity command is useful when there are more credentials in use than the
mxglobalprotocolsettings command enables, and in environments where each system has unique
credentials.
To remove the WBEM or SNMP credentials from a system, run the following command:
# mxnodesecurity r p wbem n nodeName1
# mxnodesecurity r p snmp n nodeName1
To remove credentials from a list of system, run the following command:
# mxnodesecurity r f credential.xml
Running discovery
The mxnode command enables you to add, delete, modify, identify, or list systems in HP SIM. Before using
mxnode, you must configure the global protocol settings, and access credentials set, as described above.
After the systems are added, identification and data collection run automatically.
You can add systems using the system host name or IP address, provided on the command line or in an XML
file. See 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 systems, one using the system name, and the other using the system IP
address. The second example uses an XML file, nodes.xml, to add all of the systems in the file. After the
systems are added, the identification process is executed. The following is an example of what nodes.xml
might contain:
<?xml version="1.0" encoding="UTF-8"?>
<node-list>
<node name="nodeName1"/>
<node name="nodeName2"/>
<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. 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.
Inventory management 113