The query_central_logging command returns information about whether SNAplus2 log
messages are sent to a central file from all servers, or to a separate
file on each server. For more information about log files, see “set_log_file”.
This command must be issued without specifying a node name.
Supplied Parameters |
 |
No parameters are supplied for this command.
Returned Parameters |
 |
Parameter name Type enabled constant
|
If the command executes successfully, SNAplus2 returns the
following parameter:
- enabled
Specifies whether central logging is enabled or disabled.
Possible values are:
- YES
Central logging is enabled. All log messages are
sent to a single central file on the node that is currently the central
logger.
- NO
Central logging is disabled. Log messages from each server
are sent to a file on that server (specified using the set_log_file command).
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.
If the command does not execute because of a parameter error,
SNAplus2 returns the following parameters:
- primary_rc
PARAMETER_CHECK
- secondary_rc
- NOT_CENTRAL_LOGGER
The command was issued to a specific node. It must
be issued without specifying a node name.