HP Systems Insight Manager 6.0 Command Line Interface Guide

Example 2
To view the current configuration status, enter mxinitconfig -l.
mxlog
Logs or prints a log entry.
Synopsis
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 ]
Description
The mxlog command logs an entry to the log file or standard out. The category of the log entry is always
set to APPLICATION.
mxlog -l [-r result ] [-a action ] [-o object_type ] [-n object_name ] [-u
user ] [-s sessionID ] [-t transactionID ] [-v verbosity ] [-m message ]
This command logs the indicated entry to the log file.
mxlog -p [-r result ] [-a action ] [-o object_type ] [-n object_name ] [-u
user ] [-s sessionID ] [-t transactionID ] [-v verbosity ] [-m message ]
This command saves the log entry to standard out.
Options
-l
Log an entry to the log file. This will not print the entry to stdout. You cannot use -l with
-p.
-p
Print a preview of the log entry to standard out. This will not log the entry to the log file.
You cannot use -p with -l.
-a action
Specify the action that occurred. You must specify a value if -a is used. If -a is not used,
the default is START. Valid values include ACTION_NONE (no action, which appears as a
"<>" string), ADD, MODIFY, DELETE, RUN, LIST, ENABLE, DISABLE, RESTORE, SAVE,
SETUP, UNSETUP, START, and DONE.
-m message
Specify the message to be logged. This value appears on the line after the log entry in the
log file. The value must be a string, and if it includes spaces, it must be enclosed in double
quotation marks.
-n object_name
Specify the name of the object or application that is making the logging call. You must
specify a value if -n is used. If -n is not used, the default is NONE (which appears as a
"<>" string). The value must be a string, and if it includes spaces, it must be enclosed in
double quotation marks. If this option is not specified, the default is NONE.
-o object_type
Specify the type of object or application making this logging call. You must specify a value
if -o is used. If -o is not used, the default is TYPE_NONE. Valid values include
APPLICATION, GUI, and TYPE_NONE (no type, which appears as a "<>" string).
Example 2 45