Trap Multiplexer Subagent/Manager
SNMP Configuration and Management Manual — 424777-006
12 -62
Application Source Code
spi_err = EMSGETTKN ((short*)event_buf, <-- 20
ZTMX_TKN_TRAP_VERSION,
(char*) &t_version, /* trap version */
1); /* index */
if (spi_err != ZSPI_ERR_OK)
DEBUG();
printf ("VersionNumber : %d \n",t_version);
spi_err = EMSGETTKN ((short*)event_buf, <-- 21
ZTMX_TKN_TRAP_COMMUNITY, /* community */
(char*)&t_buffer,
1); /* index */
if (spi_err != ZSPI_ERR_OK)
DEBUG();
pt_buffer = insert_null (t_buffer, &len);
print_octetstring (pt_buffer, len, "Community :");
spi_err = EMSGETTKN ((short*)event_buf, <-- 22
ZTMX_TKN_TRAP_ENTERPRISE, /* enterprise */
(char*)&t_buffer,
1); /* index */
if (spi_err != ZSPI_ERR_OK)
DEBUG();
pt_buffer = insert_null (t_buffer, &len);
printf ("Enterprise : %s \n",pt_buffer);
spi_err = EMSGETTKN ((short*)event_buf, <-- 23
ZTMX_TKN_TRAP_NETADDR, /* net address */
(char*)&t_buffer,
1); /* index */
if (spi_err != ZSPI_ERR_OK)
DEBUG();
pt_buffer = insert_null (t_buffer, &len);
printf ("Network Address : %s \n",pt_buffer);
spi_err = EMSGETTKN ((short*)event_buf, <-- 24
ZTMX_TKN_TRAP_GENERIC, /* generic trap no */
(char*) &t_generic,
1); /* index */
if (spi_err != ZSPI_ERR_OK)
DEBUG();
printf ("Generic trap No : %d \n",t_generic);
Example 12-3. Sample Application Source Code
(page 7 of 14)
Summary of Contents for T9576G06
Page 24: ...Contents SNMP Configuration and Management Manual 424777 006 xxii Tables continued ...
Page 38: ...Part I Installing and Configuring SNMP SNMP Configuration and Management Manual 424777 006 ...
Page 140: ...Part II SCF for the SNMP Agent SNMP Configuration and Management Manual 424777 006 ...
Page 208: ...Part III Troubleshooting SNMP Configuration and Management Manual 424777 006 ...
Page 230: ...Part IV SNMP Subagents SNMP Configuration and Management Manual 424777 006 ...
Page 704: ...Part V Appendices SNMP Configuration and Management Manual 424777 006 ...
Page 778: ...Index SNMP Configuration and Management Manual 424777 006 Index 32 Special Characters ...