HP Systems Insight Manager 7.0 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 Systems Insight Manager and the TomCat web server.
Synopsis
mxstop
Description
The mxstop command stops the Systems Insight Manager daemons.
Return values
MeaningValue
Systems Insight Manager and TomCat stopped correctly.0
An error occurred while attempting to stop Systems Insight
Manager or TomCat.
>0
mxstop 103