HP Systems Insight Manager 7.1 Command Line Interface Guide

Using m g userGroup, in conjunction with d and p, modifies the characteristics of group
userGroup.
The mxuser r user and mxuser r g userGroup commands remove a user and a
group, respectively, deleting all authorizations for the user and the group.
The f file option enables you to add, modify, or remove multiple users and user groups. File
contains XML syntax, allowing multiple entries to be processed. Use this option with a, m,
and r options, replacing the user name or user group name with f file. Another benefit to
using a file is that you can define more characteristics for the users and groups.
For example, you can specify e-mail and phone contact information for each user. For details
on the XML syntax, see the mxuser(4) man page.
There are several ways to display user information on the screen. You can also save user information
in an XML-formatted file.
# mxuser l t ; displays the user name, rights, and description in tabular format
# mxuser l d ; displays all user information in a screen-viewable format
# mxuser l n ; displays only the user names
# mxuser l f ; displays all user information in XML format
For each of the l options, you can specify one or more user names and one or more user group
names to get the information for only those users and user groups. For example:
# mxuser l d Jane Bob
This example displays the details of users Jane and Bob.
Managing system groups
If a user or a set of users are managing several systems, place them in a system group. This enables
you to create authorizations for the users using a single command. For more information, see
“Managing authorizations” (page 153). If a user is only managing a few systems, create the
authorizations on a system-by-system basis.
The mxngroup command enables you to create, remove, modify, and list system groups in HP
SIM. For a complete description of mxngroup, see the mxngroup man page. For a complete
description of the XML syntax for managing system groups from an XML file, see the mxngroup(4)
man page.
To create a system group, enter:
# mxngroup a g grpname [d description] [n [member1 member2 ¦]]
Where grpname is the name of the system group.
The d description (optional) parameter enables you to provide a description of the
group, like PA Systems, or All Windows Servers.
The n (optional) parameter enables you to provide a list of systems that will be members of
the new group. If you do not provide the n parameter, or if you do not enter any members
for the n parameter, the system group created will be empty.
When creating a system group that contains many systems, HP recommends creating an XML file
containing the list of systems to add to the group. To create a system group from an XML file, enter:
# mxngroup a f grpfile.xml
The following example demonstrates the syntax to create a system group called group1, providing
a description, and adding two systems to the group:
<?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" />
150 Infrastructure management using CLI