Infrastructure management using the HP SIM command line interface (436331-002, January 2009)

To add a new system type definition, use one of the following commands:
# mxstm –a –n product-name –p protocol (–x attribute=value)+
# mxstm –a –f stmfile.xml
The –n product-name option specifies the product name of the product you want to add. For
example, HP rx1600 is a product name.
The –p protocol option selects the protocol to use for data collection, and should be set to SNMP.
The –x option provides the definitions for one or more attributes for the system. Examples of SNMP
attributes are the system OID, product type, product subtype, and operating system name.
The second form of the add command enables you to provide the system type definitions in XML
format. In the example above, the –f stmfile.xml command tells HP SIM to get the system type
definitions from the file stmfile.xml. For a complete description of the required XML format, see the file
/opt/mx/dtd/stmrules.dtd.
To remove system type definitions, use one of the following commands:
# mxstm –r –n product-name
# mxstm –r –f stmdel.xml
The first command removes the system type with the product name product-name. The second
command removes all of the system types defined in the XML file stmdel.xml.
To see a listing of existing system type definitions, use one of the following commands:
# mxstm –l [–n product-name]
# mxstm –l –f stmout.xml
The first command lists all of the product names for all of the system type definitions in HP SIM. The
n product-name option displays the full definition of the product product-name, and other information
such as protocol, OID data, product type, and vendor. The second command produces the full
definition for every system type in HP SIM in XML format, saving the data in the file stmout.xml.
Managing collections
HP SIM enables you to create groupings of systems or events called collections. Each collection is a
query into the HP SIM database. HP SIM users can create two types of collections, shared collections
and private collections. Share collections are available to all HP SIM users. Private collections are
only to the user who created the collection. Collections enable you to define a hierarchical
organization of collections. For example, the following hierarchy exists in the HP SIM predefined
collections:
Systems
Private
Shared
Systems by Operating System
HP-UX
Microsoft Windows Server 2003
The items Systems, Shared, and Systems by Operating System are collections that contain other
collections as their members. The items HP-UX and Windows Server® 2003 are also collections, but
they also define a query that is performed on the HP SIM database. In this section, the term query
collection will be used to refer to collections that define a query on the HP SIM database.
8