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

5
settings available in HP SIM. The command
mxnodesecurity
enables you to set WBEM and
SNMP credentials. Both commands accept XML formatted data, either from a file or from the
command lin
e, and sets the global protocol settings accordingly.
Refer to the man page
mxglobalprotocolsettings
and
mxnodesecurity
for details on using the
CLI. Refer to the man page
mxglobalprotocolsettings(4)
and
mxnodesecurity(4)
for XML
formatting details.
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. All available settings are documented in the
mxglobalprotocolsettings(4)
manpage.
A co
nvenient way to change multiple protocol settings is to use an XML file. The command to do this
looks like,
% mxglobalsettingsprotocol
s
f globalprotocol.xml
The
globalprotocol.xml
file might look like:
<?xml version="1.0" encoding="UTF
-
8"?>
<global
-
p
rotocol
-
settings xmlns="http://www.hp.com/hpsim5.0.0.0">
<use
-
icmp
-
for
-
ping value="true" />
<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>
To view the current global protocol settings in XML format, use the following command:
% mxglobalprotocolsett
ings
lf
Alternatively, you can have the settings displayed in a text format with,
% mxglobalprotocolsettings
ld
The command
mxnodesecurity
enables you to set WBEM and SNMP credentials. Both commands
accept XML formatted data, either from a file or fr
om the command line, and sets the protocol settings
accordingly.
Here are the commands to add a credential for WBEM and SNMP for the system “nodeName1”:
% mxnodesecurity
a
p wbem
c root:password
n nodeName1 ; WBEM
; WBEM
% mxnodesecuri
ty
a
p snmp
c public:private
n nodeName1 ; SNMP
The
-
p
and
-
c
parameters must be provided. The
-
n
parameter is optional. If provided, the credential
will be for the selected system only. If not provided, the credential will apply to all systems kno
wn by
HP SIM.