HP T9576G06 Management Manual page 558

Snmp configuration and management manual
Table of Contents

Advertisement

Trap Multiplexer Subagent/Manager
Example 12-3. Sample Application Source Code (page 11 of 14)
default
}
/* end of case */
/* exit from the current list
spi_err = EMSGETTKN ((short*)event_buf, ZSPI_TKN_ENDLIST);
if (spi_err !=ZSPI_ERR_OK)
DEBUG();
}
/* end of for loop */
} /*
end while */
} /* end getevent_loop */
/************************************************************************/
#pragma PAGE "main program code"
/*
Starts an EMS consumer distributor and calls procedures that use
SPI commands to connect to the source collector, to load a filter
and to
position the
getevent_loop procedure is called to retrieve and process event
messages.
*/
main(int argc, char**argv)
{
short error;
short startup_msg_actual_len;
startup_msg_type
char
*cptr;
int
ccval = 0;
#define proc_name_len 40
char
proc_name[proc_name_len];
char* whoami,opt;
short err_detail;
short proc_len;
char* startup_default_str;
char* coll_name = "$0";
char* filt_name = "tmxfo";
#define file_name_Dxx_maxlen 36
char filt_name_Dxx[file_name_Dxx_maxlen]; /* D series filename
char filt_name_Cxx[24];
char coll_name_Dxx[file_name_Dxx_maxlen];
char coll_name_Cxx[24];
short file_name_len;
short distr;
char* spi_buf;
char usage[] = "Usage: %s
/* Get the default vol and subvol to set up the internal filenames later */
startup_default_str = getenv ("DEFAULTS");
whoami = *argv++;
argc--;
distributor within the log files. Then the
ci_startup;
[-c <collector-name>]
SNMP Configuration and Management Manual—424777-006
: printf ("Type
break;
*/
/* default collector name
/* default event filter
/* C series filename
/* distributor file number */
[-f <filter-name>]\n\n";
12-66
Application Source Code
: UNKNOWN \n");
<-- 34
*/
*/
*/
*/

Advertisement

Table of Contents
loading

This manual is also suitable for:

T9576h01

Table of Contents