Collections in HP Systems Insight Manager 5.1 or greater (441487-001, January 2009)

27
collection. These children are the original children, not copies. The syntax for the mxcollection
command using the copy option is:
mxcollection –cp existcollname –from fromparentcollname
-to toparentcollname [-branch sysbranch|evbranch]
For example,
to
copy
a
collection
called
sample
collection,
rename
it
to
sample
collection
copy,
and
assign
the
parent collection
Coll
in
the
Events
list,
enter the following:
mxcollection
-cp
"sample
collection"
-name "sample
collection
copy"
-
to
Coll
-branch
evbranch
Move
Use the mxcollection –mv command as described in the “Copy” section, except that the original
collection is deleted. The syntax for the mxcollection command using the move option is:
mxcollection -mv existcollname -from fromparentcollname
-to toparentcollname [-branch sysbranch|evbranch]
For example,
to
move
a
collection
called
test
collection
from
the
parent
collection
parent1
to
the
parent
collection parent2
in
the
list
of
System
collections,
enter the following:
mxcollection
-mv
"test
collection"
-from "parent1"
-to
"parent2"
Combination collections
Use the mxcollection –a combo command to create a combination collection using two existing
collections. This combination collection is created under another collection that you specify. The
syntax for the mxcollection command using the option function is:
mxcollection
-a
combo
newcombocollname
-syscoll
systemcollname
-evcolleventcollname
-parent
toparentcollname
[-branch
sysbranch|evbranch]
For example,
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 the following:
mxcollection
-a
combo
"another
new
combo"
-syscoll
"All
Servers"
-evcoll
"All
Important
Events"
-to
"Login
Events"
-branch
evbranch
See the HP SIM Command Line Interface Reference Guide and the Infrastructure management using
the HP SIM command line interface white paper located at
http://h18013.www1.hp.com/products/servers/management/hpsim/infolibrary.html
for details on
the CLI command syntax of mxcollection and mxquery.
Upgrading
Users of previous versions of HP SIM might have event collections (or queries) that have system
attributes.
In HP SIM 5.1, this collection format is no longer used and these types of collections are migrated to
the new format. In the previous example, the old collection MyEventsOnFinancialServers is
migrated to three new collections:
MyEventsOnFinancialServers-combination—The same collection in the new format
MyEventsOnFinancialServers-systems—The system part of the collection
MyEventsOnFinancialServers-events—The event part of the collection