HP Systems Insight Manager 7.2 Command Line Interface Guide

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
The mxstop command stops the HP SIM daemons.
Return values
MeaningValue
HP SIM and TomCat stopped correctly.0
An error occurred while attempting to stop HP SIM or
TomCat.
>0
Example
To stop the HP SIM daemons, enter mxstop.
104 Command descriptions