HP-UX SNAplus2 R7 NOF Programmer's Guide

NOF API Verbs
SET_LOG_FILE
3.179.1 VCB Structure
typedef struct set_log_file
{
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 log_file_type; /* type of log file */
unsigned char action; /* reset and/or backup existing */
unsigned char file_name[81]; /* file name */
unsigned char backup_file_name[81]; /* backup file */
AP_UINT32 file_size; /* log file size */
unsigned char succinct; /* reserved */
unsigned char reserv3[3]; /* reserved */
} SET_LOG_FILE;
3.179.2 Supplied Parameters
The application supplies the following parameters:
opcode
AP_SET_LOG_FILE
log_le_type
The type of log le being managed. Possible values are:
AP_AUDIT_FILE
Audit log le (audit messages only).
AP_ERROR_FILE
Error log le (problem and exception messages).
AP_USAGE_FILE
Usage log le (information on current and peak usage of SNAplus2 resources).
To record both audit and error messages in the same le, issue two SET_LOG_FILE verbs for the same le
name, specifying AP_AUDIT_FILE on one verb and AP_ERROR_FILE on the other.
action
The action to be taken on the log le. Specify one of the following values:
AP_NO_FILE_ACTION
Use the le specied in the le_name parameter as the log le, and the le specied in the
backup_le_name parameter as the backup le. After this verb completes successfully, all log messages
of the type dened by log_le_type are written to the new log le. The log le that was used before
this verb is issued, if any, is left unchanged.
AP_DELETE_FILE
Delete the contents of the current log le.
AP_BACKUP_FILE
Copy the contents of the current log le to the backup le, and then delete the contents of the current
le.
le_name
718