HP Systems Insight Manager 5.3 Command Line Interface reference guide

Return values
MeaningValue
Successful completion.0
Command line syntax error.2
Nonexistent system or system group error.3
Duplicate name.5
Invalid name.21
Unauthorized user.50
Database error.102
The CMS is not initialized.222
Unable to connect to the session manager.249
Remote exception.250
Examples
Example 1
To create the system group
group1
containing systems
systema
,
systemb
, and
systemc
, enter mxngroup
-a -g group1 -d "Example system group" -n systema systemb systemc.
Example 2
To modify the system group
group1
by replacing system
systemc
with system
systemd
, enter mxngroup -m
-g group1 -n systema systemb systemd.
Example 3
To update group
group1
enter mxngroup -m -g group1 -u.
Example 4
To update group
group1
from the collection and enable automatic update, enter mxngroup -m -g group1
-ut.
Example 5
To update the group
group1
from the collection and disable automatic update, enter mxngroup -m -g
group1 -uf.
Example 6
To list the member systems of group
group1
enter mxngroup -l m -g group1.
Example 7
To list the names of all system groups that contain the member
systemb
, enter mxngroup -l n -n systemb.
Example 8
To use the XML file test.xml to define a system group named
group1
with a description and two member
systems,
system1.corp.com
and
system2.corp.com
, enter mxngroup -a -f test.xml
The test.xml file might look like:
<?xml version="1.0" encoding="UTF-8"?>
<node-group-list>
<node-group name="group1">
<description>This is group1.</description>
<member-node value="system1.corp.com" />
<member-node value="system2.corp.com" />
48 Command descriptions