HP-UX SNAplus2 R7 NOF Programmer's Guide
NOF API Verbs
QUERY_LOG_TYPE
Appendix B, Common Return Codes lists further secondary return codes associated with
AP_PARAMETER_CHECK,
which are common to all NOF verbs.
3.127.5 Returned Parameters: Other Conditions
Appendix B, Common Return Codes lists further combinations of primary and secondary return codes that are
common to all NOF verbs.
3.128 QUERY_LOG_TYPE
This verb allows a NOF application to determine the types of information that SNAplus2 records in log
files on
a particular server, and whether these are the default settings specified on SET_GLOBAL_LOG_TYPE or local
settings specified by a previous SET_LOG_TYPE verb.
SNAplus2 logs messages for the following types of event:
Problem
An abnormal event that degrades the system in a way perceptible to a user (such as abnormal termination of
a session).
Exception
An abnormal event that may degrade the system but that is not immediately perceptible to a user (such as
receiving a message that is not valid from the remote system).
Audit
A normal event (such as starting a session).
Problem and exception messages are logged to the error log file; audit messages are logged to the audit log file.
Problem messages are always logged and cannot be disabled, but you can specify whether to log each of the other
two message types. For each of the two files (audit and error), you can specify whether to use succinct logging (in-
cluding only the text of the message and a summary of the message source) or full logging (including full details
of the message source, cause, and any action required).
3.128.1 VCB Structure
typedef struct query_log_type
{
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 override; /* overriding global settings? */
unsigned char audit; /* audit logging on or off */
unsigned char exception; /* exception logging on or off */
unsigned char succinct_audits; /* use succinct logging in audit file? */
unsigned char succinct_errors; /* use succinct logging in error file? */
unsigned char reserv3[3]; /* reserved */
} QUERY_LOG_TYPE;
3.128.2 Supplied Parameters
The application supplies the following parameter:
487