HP Systems Insight Manager 6.3 Command Line Interface Guide

Rack, RESPAR, Router, Server, SRC, Storage, Switch, TapeLibrary, UPS, Unknown, Workstation,
or other values as defined in the nodeTypesEnum table.
The subtype attribute can use the values: Blade, BladeSystem, BS-BMP, BS-SMC, c-Class, Dell,
e-Class, gWLMResPar, HighAvailabilityArray, HighAvailabilityCluster, HP Serviceguard, HP9000,
HP9000Superdome, HPAlphaServer, HPAlphaStation, HPDeskpro, HPEvo, HPIntegrity,
HPIntegrityServer, HPIntegrityWorkStation, HPKayak, HPNetServer, HPNonStop, HPOmnibook,
HPProLiant, HPServer, HPSGCMember, HPSuperdome, HPUNCFG, HPVectra, HPVisualize,
HPVMGuest, HPVMHost, HPWorkstation, ILO, ILO2, LO100, MP-MPS, MP-PBE-IA, MP-SPS, MSCS,
None, nPar, NSCUW7, OA, OVMS, p-Class, PowerEnc, PRMResPar, RAC, RILOE, RILOE2,
ServerEnc, SMI, Storage, StorageEssentials, TCR_PS, TruCluster, TT-RCC, VMGuest, VMHost, vPar,
vParMonitor, WLMResPar, or other values as defined in the nodeSubTypesEnum table.
The attribute values for the type and subtype attributes are case sensitive.
Compare rules: StartsWith|Contains|Match|EndsWith|AnyValue
Insufficient or invalid optional attributes are replaced with sensible defaults where possible.
Return values
MeaningValue
Successful completion.0
Command line syntax error.2
An error occurred during operation.>0
Examples
Example 1
To add a rule for a Digital LN07 printer using an XML file named printer-rule.xml, create
printer-rule.xml with the following contents:
<?xml version="1.0" encoding="UTF-8"?>
<stm-rules>
<snmp-rule>
<type>Printer</type>
<subtype>None</subtype>
<productmodel>Digital LN07</productmodel>
<url></url>
<urldesc></urldesc>
<priority>1</priority>
<osname></osname>
<osversion></osversion>
<osvendor></osvendor>
<sysoid>1.3.6.1.4.1.108.1.1.9</sysoid>
<sysoidrule>3</sysoidrule>
<oid></oid>
<oidval></oidval>
<oidrule>5</oidrule>
</snmp-rule>
</stm-rules>
Enter mxstm -a -f printer-rule.xml
Example 2
To list the rule that was added in the previous example, enter mxstm -l -n "Digital LN07".
Example 3
To delete the rule that was added in the first example, enter mxstm -r -n "Digital LN07".
mxstm 103