HP Systems Insight Manager 5.3 Command Line Interface reference guide

One method for modifying a system is to use the mxnode -lf > filename command to output the XML
data to an external output file. The output file can then be edited to change or add attributes that need to
be modified or locked.
After editing the file, modify the system by entering mxnode -m -f filename and specifying the edited
file as the input file.
The sample XML includes the method for locking the lockable attributes. If you want to keep certain attributes
from being overwritten by the Discovery and Identification processes, all three of the attribute lock flags must
be set to
false
, as shown below. Otherwise, all three attributes must be set to
true
.
<sw-attribute name="DefaultProtoSettings">false</sw-attribute>
<sw-attribute name="DefaultAttributeSettings">false</sw-attribute>
<sw-attribute name="DefaultSystemName">false</sw-attribute>
NOTE: Attribute lock flags can also be modified through the Edit System Properties page of the GUI.
Selecting or clearing the Prevent the Discovery and Identification processes from changing these
system attributes check box is the same as setting the attribute lock flags. Selecting the check box is the
same as setting all three flags to false. Clearing the check box is the same as setting all three flags to true.
The sample XML also includes the monitoring feature attribute within the node element. This feature allows
the you to control the monitoring of a system/node by HP SIM. In normal operation, the system is continuously
monitored (includes Discovery and Identification). System monitoring can be suspended for a predefined
time period, or indefinitely. If the monitoring attribute is not included in the XML file for a -m -f command,
the current monitoring state for the node is left as is.
NOTE: The monitoring feature can also be modified through the Suspend/Resume Monitoring page in
the GUI.
Valid values for the monitoring attribute are as follows.
monitoring="resume" Do not suspend monitoring
monitoring="suspend" Suspend monitoring indefinitely
monitoring="suspend.5m" Suspend monitoring for 5 minutes
monitoring="suspend.15m" Suspend monitoring for 15 minutes
monitoring="suspend.1h" Suspend monitoring for 1 hour
monitoring="suspend.1d" Suspend monitoring for 1 day
All attributes that can be modified and locked are marked with an L.
The attributes that can be modified and locked, but require a predefined value, are marked with an asterisk.
See the System attributes that can be locked section for the valid values for the DeviceType,
DeviceSubType and OSName attributes. Ensure that the correct category is used for each attribute (hardware
or software).
The three attribute lock flags are marked with an LF marker.
Sample XML file with all system attribute formats and syntax:
<?xml version="1.0" encoding="windows-1252"?>
<node-list>
<node name="systemName" host-name="hostName" monitoring="resume">
L* <hw-attribute name="DeviceType">your data here</hw-attribute>
L* <hw-attribute name="DeviceSubType">your data here</hw-attribute>
L <hw-attribute name="Model">your data here</hw-attribute>
L <hw-attribute name="SerialNumber">your data here</hw-attribute>
<hw-attribute name="OverallStatus">10</hw-attribute>
<hw-attribute name="ProductID">12345</hw-attribute>
L* <sw-attribute name="OSName">your data here</sw-attribute>
L <sw-attribute name="OSRevision">your data here</sw-attribute>
<sw-attribute name="OSRevisionText">info here</sw-attribute>
<sw-attribute name="TrustStatus">false</sw-attribute>
Sample XML file with all system attribute formats and syntax: 59