SNMP Manager Programmer's Guide
Programming Examples
SNMP Manager Programmer’s Guide–134249
2-108
SNMPMON
Example 2-15. Contents of snmpmonc (page 1 of 5)
#include <stdio.h> nolist
#include <ctype.h> nolist
#include <asn1.h> nolist
#include <localio.h> nolist
#include <buffer.h> nolist
#include <objectid.h> nolist
#include <snmp.h> nolist
#include <snmpstat.h> nolist
#include <buildpkt.h> nolist
#include <print.h> nolist
#ifdef __TANDEM
#include <cextdecs(FILE_GETINFO_,AWAITIOX)> nolist
#else
#include <grdapi.h>
#endif
#include <systype.h> nolist
#include <socket.h> nolist
#include <netdb.h> nolist
#include <in.h> nolist
#define TBSIZE 2048
unsigned char sndbuff[TBSIZE];
int cbSend;
unsigned char rcvbuff[TBSIZE];
SNMP_STATS_T snmp_stats;
OIDC_T base_component_list[MAX_OID_COUNT];
OBJ_ID_T base_oid = { MAX_OID_COUNT, base_component_list };
char usage[] = "Usage: %s [-p port] [-t tcpip_proc]\n";
int