HP Systems Insight Manager 5.3 Command Line Interface reference guide

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".
See also
/opt/mx/dtd/stmrules.dtd
mxstop
Stops HP SIM and the TomCat web server.
Synopsis
mxstop
Description
mxstop stops the HP SIM daemons.
Example 1 81