Infrastructure management using the HP SIM command line interface (436331-002, January 2009)

Introduction
HP Systems Insight Manager (HP SIM) is a robust, full-featured infrastructure management tool. You
can access HP SIM functionality through the web-based GUI or through the set of command line
interfaces (CLI) provided. This paper discusses how to use the HP SIM CLI for managing your
infrastructure.
The use of CLI is described in terms of the CLIs required to perform specific tasks, such as inventory
management, and event management. A list of all CLIs is provided in the Appendix. Detailed man
pages are available from the command line.
HP-UX
CLI command line usage man pages are specified as section 1M
CLI Extensible Markup Language (XML) usage man pages are specified as section 4
For example:
# man mxtask ; can also be man 1m mxtask
# man 4 mxtask
Linux
CLI command line usage man pages are specified as section 8
CLI XML usage man pages are specified as section 4
For example:
# man mxtask ; can also be man 8 mxtask
# man 4 mxtask
Windows
The man pages are located in Program Files\HP\Systems Insight Manager\hpwebadmin
\webapps\mxhelp\mxportal\en\man directory. To view the contents of a man page, in a web
browser, double-click the man page file.
On a Windows® CMS, if you are not a member of the local Administrators group, add the options
--user username and --pass password when running any of the listed CLI commands. For
example, to list information about one or more authorizations in compact or table form, enter mxauth
[-lt] --user username --pass password.
On a Linux or HP-UX CMS, you can add the options --user username and --pass password
to a command to run CLI using a different account. For example, if you have limited configuration
rights, and you want to remove multiple authorizations by specifying an input file, which requires full
configuration rights, enter mxauth -a|r -f filename --user username --pass
password and use the login information of a full-configuration-rights user.
Inventory management
Configuring HP SIM
Before adding systems to HP SIM, you must set up and configure the protocols that communicate with
the managed systems. The mxglobalprotocolsettings command enables you to set most of the
available HP SIM protocol settings. The mxnodesecurity command enables you to set Sign-in,
WBEM, SSH, WS-MAN, and SNMP credentials on a per-system basis. Both commands accept XML
formatted data, either from a file or from the command line, and sets the global protocol settings
2