HP-UX SNAplus2 R7 NOF Programmer's Guide
NOF API Verbs
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 */
AP_UINT32 limit; /* kernel memory limit, 0 => no limit */
unsigned char reserv3[8]; /* Reserved */
} SET_KERNEL_MEMORY_LIMIT;
3.178.2 Supplied Parameters
The application supplies the following parameters:
opcode
AP_SET_KERNEL_MEMORY_LIMIT
limit
The maximum amount of kernel memory that SNAplus2 should use at any time, in bytes. If a SNAplus2
component attempts to allocate kernel memory that would take the total amount of memory currently allocated
to SNAplus2 components above this limit, the allocation attempt will fail.
To remove the limit set by a previous SET_KERNEL_MEMORY_LIMIT verb, specify zero.
3.178.3 Returned Parameters: Successful Execution
If the verb executes successfully, SNAplus2 returns the following parameters:
primary_rc
AP_OK
secondary_rc
Not used.
3.178.4 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.179 SET_LOG_FILE
This verb manages a file that SNAplus2 uses to record log messages. It allows you to do the following:
• Specify a file used to record log messages (audit, error, or usage logs), and the backup file (to which log
information is copied).
• Specify the maximum log file size (when the log file reaches this size, SNAplus2 copies log information to the
backup file and resets the log file).
• Copy the current contents of the log file to the backup file, and optionally delete the current file.
You can record audit log and error log messages in separate files, or record both types of messages in the same file.
717