HP Systems Insight Manager 7.2 Command Line Interface Guide

The “Managing toolboxes” (page 151) section discussed how to create toolboxes used in creating
authorizations. When creating tools, use the following XML entry to place the tool in a specific
toolbox:
<toolbox toolbox-name="My toolbox" />
To include the tool in more than one toolbox, you can enter additional <toolboxâ ¦/> entries.
Do not add tools to the Monitor Tools toolbox that provide root or administrator level functionality.
This toolbox is assigned to the operator and user templates, and these tools run with root or
administrator access on the CMS.
Managing authorizations
The mxauth command enables you to add, remove, or list authorizations in HP SIM. For a complete
description of mxauth, see mxauth man page. For a complete description of the XML syntax
required to manage authorizations from an XML file, see the mxauth(4) man page.
Before creating authorizations, the users, system groups (optional), and toolboxes must exist as
described in the Managing users, Managing system groups and Managing toolboxes sections.
After creating the users, tools, and toolboxes, you can create the authorizations.
The commands to create a node authorization are:
# mxauth a u username R toolboxname n nodename
# mxauth a u username R toolboxname g groupname
# mxauth a f authfile.xml
The first example creates a node authorization that enables username to use the tools in toolboxname
to manage system nodename. The second example creates a group authorization that enables
username to use the tools in toolboxname to manage all the systems in system group groupname.
The third example creates authorizations as defined in the XML file authfile.xml. The following
example shows what an XML file would look like when creating three system authorizations:
<?xml version="1.0" encoding="UTF-8"?>
<auth-list>
<node-authorization user-name="user1" toolbox-name="webadmin"
node-name="node1.corp.com" />
<node-authorization user-name="user2" toolbox-name="operator"
node-name="node1.corp.com" />
<node-authorization user-name="user3" toolbox-name="dbadmin"
node-name="node2.corp.com" />
</auth-list>
To remove the system authorization, remove the group authorization, and remove authorizations
as specified in the XML file, respectively, replace the a option with the r option in the previous
examples.
To view authorizations, use the mxauth lt command. This command lists all of the authorizations
for system authorizations in the format user:toolboxname:n:nodename, and group authorizations
in the format, user:toolboxname:g:groupname.
The mxauth lf command displays authorizations in an XML format.
HP SIM configuration
There are many commands available to configure the HP SIM software after it is installed, including
service start and stop, connecting to an Oracle database, initializing HP SIM, and managing
trusted certificates.
HP SIM initialization
After installing the HP SIM software, you must initialize HP SIM. The mxinitconfig command
initializes HP SIM.
HP SIM configuration 153