HP Systems Insight Manager 6.0 Command Line Interface Guide

3 Infrastructure management using CLI
Inventory management
Configuring HP SIM
Before adding systems to HP SIM, you must set up and configure the protocols that communicate with the
managed systems. The mxglobalprotocolsettings command enables you to set most of the available
HP SIM protocol settings. The mxnodesecurity command enables you to set Sign-in, WBEM, SSH,
WS-MAN, and SNMP credentials on a per-system basis. Both commands accept XML formatted data, either
from a file or from the command line, and sets the global protocol settings accordingly. You must run these
commands must before running discovery in order for protocol authentication on the managed systems to
be accepted.
For details on using the CLI, see the man pages mxglobalprotocolsettings and mxnodesecurity.
For XML formatting details, see the man pages mxglobalprotocolsettings(4) and
mxnodesecurity(4).
To change a specific global protocol setting, use the following command:# mxglobalprotocolsettings
s enable snmp =true
The enable-snmp setting is one of many available. The available settings are documented in the
mxglobalprotocolsettings(4) man page.
To change multiple protocol settings use an XML file. For example:
# mxglobalprotocolsettings s f globalprotocol.xml
The globalprotocol.xml file might look like:
<?xml version="1.0" encoding="UTF-8"?>
<global-protocol-settings xmlns="http://www.hp.com/hpsim5.1.0.0">
<ping-type value="ICMP"/>
<default-ping-timeout-seconds value="5" />
<default-ping-retries value="2" />
<enable-wbem value="true" />
<enable-http-and-https value="true" />
<enable-snmp value="true" />
<default-snmp-timeout-seconds value="5" />
<default-snmp-retries value="1" />
<enable-dmi value="false" />
</global-protocol-settings>
Run the following command to view the current global protocol settings in XML format:
# mxglobalprotocolsettings lf
Alternatively, you can use the ld option to display the settings in a text format:
# mxglobalprotocolsettings -ld
The mxnodesecurity command enables you to set and view Sign-in, WBEM, SSH, WS-MAN, and SNMP
credentials on per-system basis. Both options accept XML formatted data, either from a file or from the
command line, and sets the protocol settings accordingly.
To add a credential for WBEM and SNMP for the system nodeName, run the following commands:
# mxnodesecurity a p wbem c root:password n nodeName
# mxnodesecurity a p snmp c public:private n nodeName1
You must provide the -p and -c parameters. The -n parameter is optional. If you provide the n option, the
credential applies only to the selected system. If not provided, the WBEM credential is added as Default/global
credential for sign-in protocol in the global protocol settings.
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
Inventory management 112