HP Systems Insight Manager 6.0 Command Line Interface Guide

-syscoll systemcollname
Specify an existing system collection to include in a combination collection. This option is
used with -a combo.
-evcoll eventcollname
Specify an existing event collection to include in a combination collection. This must be a
collection that was created by attributes in the GUI. This option is be used with -a combo.
-branch sysbranch|evbranch
Specify whether a parent collection is in the Systems or Events list in the System and
Event Collections panel. This value is optional for collections in the Systems list, but you
must enter -branch evbranch when you specify a collection that is in the Events list. If
a value is not specified, the default is the system branch. This option is used with -mv, -cp,
and -a combo.
Return values
MeaningValue
Successful completion.0
Command line syntax error.2
An error occurred during operation.-1
Examples
Example 1
To add the collections
cupertino site
and
building 45
, each with two members, enter: mxcollection -a
-f my_collections.xml .
The contents of my_collections.xml might look like:
<?xml version="1.0" encoding="UTF-8" ?>
<collection-list xmlns="http://www.hp.com/hpsim5.1.0.0">
<collection name="cupertino site" type="system" parent="Systems by Type">
<member name="All Servers" type="query" display-status="0"
default-view="tableview" hidden="false" />
<member name="ovwpc600" type="node" display-status="0" default-view="
tableview" hidden="false" />
</collection>
<collection name="building 45" type="system" parent="cupertino site">
<member name="All Enclosures" type="query" display-status="0"
default-view="tableview" hidden="false" />
<member name="All Racks" type="query" display-status="0"
default-view="tableview" hidden="false" />
</collection>
</collection-list>
Example 2
To create a combination collection named
another new combo
that includes the system collection
All Servers
and the event collection
Important Events
, and is saved in the list of Event collections under the parent
collection
Login Events
, enter mxcollection -a combo "another new combo" -syscoll "All
Servers" -evcoll "All Important Events" -to "Login Events" -branch evbranch.
Example 3
To move a collection called
test collection
from the parent collection
parent1
to the parent collection
parent2
in the list of System collections, enter mxcollection -mv "test collection" -from "parent1"
-to "parent2".
26 Command descriptions