HP-UX SNAplus2 CSV Programmer's Guide

Common Service Verbs Reference
LOG_MESSAGE (HP-UX Systems Only)
Chapter 264
LOG_MESSAGE (HP-UX Systems Only)
The LOG_MESSAGE verb records a message in the SNAplus2 error or
audit log file. The text for the message is taken from a user-defined
message file; the verb can also supply parameters to be inserted in the
message.
If you use this verb, you will need to supply an appropriate message file
for use with the application. For more information, see “Creating a Log
Message File”.
For more information about the SNAplus2 audit and error log files and
the format of the logged messages, refer to the HP-UX SNAplus2
Administration Guide.
VCB Structure
struct log_message
{
unsigned short opcode; /* Verb identifying operation code. */
unsigned char opext; /* Verb extension code - reserved. */
unsigned char reserv2; /* Reserved. */
unsigned short primary_rc; /* Primary return code from verb. */
unsigned long secondary_rc; /* Secondary (qualifying) return code. */
unsigned short msg_num; /* Number of message to log. */
unsigned char origntr_id[8]; /* ID of the originator of the message. */
unsigned char msg_file_name[3]; /* Message file to search for the */
/* required message number. */
unsigned char msg_act; /* Message action - how to log the msg. */
unsigned short msg_ins_len; /* Length of data for insertion in msg. */
unsigned char *msg_ins_ptr; /* Address of data for insertion in msg.*/
};
Supplied Parameters
The program using this verb supplies the following parameters:
opcode
SV_LOG_MESSAGE
msg_num
Number of the message in the message file specified by
msg_file_name
.
The message identifier shown in the SNAplus2 log file
consists of two parts: the SNAplus2 component
identifier and the message number. The
msg_num