Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
HP 9000 Networking: HP-UX SNAplus2 Administration Command Reference > Chapter 4 Commands (remove_dlc_trace to term_node)

set_global_log_type

» 

Technical documentation

Complete book in PDF
» Feedback
Content starts here

 » Table of Contents

 » Index

The set_global_log_type command specifies the types of information that SNAplus2 records in log files. It specifies default values that are used on all computers; you can then use set_log_type (or, for a Windows client, options in the client initialization file) to override these defaults on a particular computer. For more information about log files, see set_log_file.

SNAplus2 always logs messages for problem events; you can specify whether to log messages for exception and audit events. For more information logging messages, refer to the HP-UX SNAplus2 Diagnostics Guide.

This command must be issued without specifying a node name.

Supplied Parameters

Parameter name           Type        Length   Default
[set_global_log_type]
audit constant LEAVE_UNCHANGED
exception constant LEAVE_UNCHANGED
succinct_audits constant LEAVE_UNCHANGED
succinct_errors constant LEAVE_UNCHANGED

Supplied parameters are:

audit

Specify whether to record audit messages. Possible values are:

YES

Record audit messages.

NO

Do not record audit messages.

LEAVE_UNCHANGED

Leave audit logging unchanged from the existing definition. (SNAplus2 initially sets audit to NO.)

exception

Specifies whether to record exception messages. Possible values are:

YES

Record exception messages.

NO

Do not record exception messages.

LEAVE_UNCHANGED

Leave exception logging unchanged from the existing definition. (SNAplus2 initially sets exception to YES.)

succinct_audits

Specifies whether to use succinct logging or detailed logging in the audit log file. Possible values are:

YES

Use succinct logging in the audit log file. Each message in the log file contains a summary of the message header information (such as the message number, log type, and system name), and the message text string and parameters. To obtain more details about the cause of the log and any action required, use the snaphelp utility.

NO

Use detailed logging in the audit log file. Each message in the log file includes a full listing of the message header information, the message text string and parameters, and additional information about the cause of the log and any action required.

LEAVE_UNCHANGED

Use the option (succinct logging or detailed logging) specified on the previous set_global_log_type command. (Before a set_global_log_type command has been issued, SNAplus2 initially sets succint_audits to YES.)

If you are using central logging, the choice of succinct or detailed logging for messages from all computers is determined by setting this parameter on the server acting as the central logger. This setting can either be from the set_global_log_type command or from a set_log_type command issued to that server to override the default.

succinct_errors

Specifies whether to use succinct logging or detailed logging in the error log file; this applies to both exception logs and problem logs. Possible values are:

YES

Use succinct logging in the error log file. Each message in the log file contains a summary of the message header information (such as the message number, log type, and system name), and the message text string and parameters. To obtain more details about the cause of the log and any action required, use the snaphelp utility.

NO

Use detailed logging in the error log file. Each message in the log file includes a full listing of the message header information, the message text string and parameters, and additional information about the cause of the log and any action required.

LEAVE_UNCHANGED

Use the option (succinct logging or detailed logging) specified on the previous set_global_log_type command. (Before a set_global_log_type command has been issued, SNAplus2 initially sets succint_audits to YES.)

Returned Parameters

No parameters are returned by SNAplus2 when this command executes successfully.

Error Return Codes

If the command cannot be executed, SNAplus2 returns a primary return code to indicate the type of error and a secondary return code to provide specific details about the reason for unsuccessful execution.

Parameter Check

If the command does not execute because of a parameter error, SNAplus2 returns the following parameters:

primary_rc

PARAMETER_CHECK

secondary_rc

Possible values are:

NOT_CENTRAL_LOGGER

The command was issued to a specific node. It must be issued without specifying a node name.

INVALID_SUCCINCT_SETTING

The succinct_audits or succinct_errors parameter was not set to a valid value.

State Check

No specific state errors, other than those listed in Appendix A “Common Return Codes from snapadmin Commands” occur for this command.

Other Conditions

Appendix A “Common Return Codes from snapadmin Commands” lists combinations of primary and secondary return codes that are common to all commands.

Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© 2001 Hewlett-Packard Development Company, L.P.