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-UX SNAplus2 NOF Programmers Guide: HP-UX 11i > Chapter 4 NOF API Verbs (QUERY Verbs)

QUERY_CENTRAL_LOGGING

» 

Technical documentation

Complete book in PDF
» Feedback
Content starts here

 » Table of Contents

 » Index

This verb 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, see “SET_LOG_FILE”.

This verb must be issued to the node that is currently acting as the central logger; for information about accessing this node, see “CONNECT_NODE”.

VCB Structure

typedef struct query_central_logging
{
AP_UINT16 opcode; /* verb operation code */
unsigned char reserv2; /* reserved */
unsigned char format; /* reserved */
AP_UINT16 primary_rc; /* primary return code */
AP_UINT32 secondary_rc; /* secondary return code */
unsigned char enabled; /* is central logging enabled? */
} QUERY_CENTRAL_LOGGING;

Supplied Parameters

The application supplies the following parameter:

opcode

AP_QUERY_CENTRAL_LOGGING

Returned Parameters: Successful Execution

If the verb executes successfully, SNAplus2 returns the following parameters:

primary_rc

AP_OK

secondary_rc

Not used.

enabled

Specifies whether central logging is enabled or disabled. Possible values are:

AP_YES

Central logging is enabled. All log messages are sent to a single file on the node currently acting as the central logger.

AP_NO

Central logging is disabled. Log messages from each server are sent to a file on that server (specified using the SET_LOG_FILE verb).

Returned Parameters: Parameter Check

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

primary_rc

AP_PARAMETER_CHECK

secondary_rc
AP_NOT_CENTRAL_LOGGER

The verb was issued to a node that is not the central logger.

State Check

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

primary_rc

AP_STATE_CHECK

secondary_rc
AP_NO_CENTRAL_LOG

No master server is currently active.

Returned Parameters: Other Conditions

Appendix A “Common Return Codes” lists further combinations of primary and secondary return codes that are common to all NOF verbs.

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