HP Systems Insight Manager 7.1 Command Line Interface Guide

You can also use an XML file with the mxnodesecurity command to add the credentials for
WBEM and SNMP for a list of systems. For example:
# mxnodesecurity a f credential.xml
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
134 Infrastructure management using CLI