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

If you are using an Oracle database, run the mxoracleconfig command before running
mxinitconfig, because mxinitconfig initializes the database and the database must be in
place before initialization. To configure the database, use the following command:
# mxoracleconfig –h host [–n port] –d db –u 6 –p pw [–j jar] [–f ]
The -h host specifies the host name where the Oracle database is installed.
The –d db specifies the instance name of the database HP SIM will use. This should be a
database created for the exclusive use of HP SIM, created to use the Unicode character set,
AL32UTF8.
The –u user option specifies the user authorized to log in to the Oracle database instance.
The –p pw option specifies the password for user. The optional parameter
The –n port option specifies the Oracle TCP/IP listener service port. If not specified, the default
port 1521 is used.
The –j jar option (optional) specifies the location of the thin client jar file containing the jdbc
driver, typically ojdbc14.jar.
The –f option (optional) reruns this command.
Typically, you only need to run the mxoracleconfig once. To rerun initialization, use the –f
option.
HP SIM services
There are two commands that enable you to stop and start the HP SIM services. The mxstop
command stops all the HP SIM services and the Tomcat web server. The mxstart command starts all
the HP SIM services and the Tomcat web server. Neither command uses any options. After running
mxstop, HP recommends that you do not run mxstart until all the services and related processes
are stopped.
On HP-UX and Linux operating systems, run the ps –ef | grep mx command until all processes
that start with mx are stopped. If after several minutes, there are mx processes still running, manually
kill the processes using the kill PID command, where PID is the process ID displayed using the ps –
ef|grep mx command.
HP SIM log
The mxlog command enables you to create an entry in a log file, or to print a log entry to stdout. The
basic forms of the command are:
# mxlog –l [-r result] [-a action] [-o object_type] [-n object_name]
[-u user] [-s sessionID] [-t transactionID] [-v verbosity] [-m message]
# mxlog –p[-r result] [-a action] [-o object_type] [-n object_name]
[-u user] [-s sessionID] [-t transactionID] [-v verbosity] [-m message]
The –l option logs the entry to the log file.
The –p option prints a preview of the log entry to stdout.
The –l or –p options are mutually exclusive and use the following options. Some of the options listed
have a default value if the option is not specified in the command.
The -a action option displays the action that occurred. If this option is not used, the action START is
used by default. Valid values include ACTION_NONE, ADD, MODIFY, DELETE, RUN, LIST,
ENABLE, DISABLE, RESTORE, SAVE, SETUP, UNSETUP, START, and DONE.
The -m message option is the specific message to be logged. This message will appear on the
line after the log entry in the log file.
The -n appl option is the name of the object or application that is making the log entry. If this
option is not used, the object NONE will be used by default.
25