HP Systems Insight Manager 6.0 Command Line Interface Guide

-r result
Specify the result of the event that occurred. You must specify a value if -r is used. If -r is
not used, the default is SUCCESS. Valid values include IN_PROGRESS, SUCCESS, FAILURE,
SOME_FAILURES, CANCELED, KILLED and RESULT_NONE (no result, which appears as
a "<>" string).
-s sessionID
Enter the session ID in string form. You must specify a value if -s is used. If -s is not used,
there is no value for this field.
-t transactionID
Enter the transaction ID in string form. You must specify a value if -t is used. If -t is not
used, there is no value for this field.
-u user
Specify the user that submitted this log entry. You must specify a value if -u is used. If -u
is not used, the default is the user name of the user running the command (usually root).
This option is typically used to specify the name of the application logging a message rather
than the run-as user of the application.
-v verbosity
Specify the level of verbosity of this log entry. You must specify a value if -v is used. If -v
is not used, the default value is SUMMARY. Valid values include SUMMARY, DETAIL,
VERBOSE, ERROR, WARNING and NOTE.
Return values
MeaningValue
Successful completion.0
Command line syntax error or invalid user.1
Command line syntax error.2
Limitations
Some columns in the entry will be filled with default values at all times. This includes the timestamp (set to
the time the entry was created) and the Category column (set to APPLICATION).
Examples
Example 1
If the user Fred is logged in to SuperApp, which runs as root, and SuperApp wants to log a WARNING
message that a configuration file is missing, enter mxlog -l -v "WARNING" -o "APPLICATION"
-n "SuperApp" -u "fred" -m "/opt/superapp/superapp.config file is missing.".
The output will be:
2005-08-08 13:13:07 MDT APP fred START APP SuperApp START SUCCESS WARNING
/opt/superapp/superapp.config file is missing.
Example 2
To preview a default entry with a simple message, enter: mxlog -p -m "This is a test".
The output will be:
2005-08-08 13:13:07 MDT APP root START <> NONE START SUCCESS
SUMMARY
This is a test.
46 Command descriptions