Compaq AAR04BCTE User Manual
Page 68

eSNMP API Routines
esnmp_register2
Example
#include
#define RESPONSE_TIMEOUT
0
/* use the default time set
in esnmp_init message */
#define REGISTRATION_PRIORITY
10
/* priority at which the MIB
subtree will register */
#define RANGE_SUBID
7
/* the identifier position in
oid->elements just after mib-2 */
#define RANGE_UPPER_BOUND
8
/* the identifier for egp,
under mib-2 */
int status
extern SUBTREE ip_subtree;
static ESNMP_REG esnmp_reg_for_ip2egp;
/* retain this structure for
a subsequent call to
esnmp_unregister2 */
/*
*
initialize the ESNMP_REG structure
*/
memset(&esnmp_reg_for_ip2egp, 0, sizeof(ESNMP_REG));
esnmp_reg_for_ip2egp.subtree
= &ip_subtree;
esnmp_reg_for_ip2egp.priority
= REGISTRATION_PRIORITY;
esnmp_reg_for_ip2egp.timeout
= RESPONSE_TIMEOUT;
esnmp_reg_for_ip2egp.range_subid
= RANGE_SUBID;
esnmp_reg_for_ip2egp.range_upper_bound = RANGE_UPPER_BOUND;
status = esnmp_register2( &esnmp_reg_for_ip2egp );
if (status != ESNMP_LIB_OK) {
printf("Could not queue the ’ipRouteEntry’ \n");
printf("subtree for registration\n");
}
5–10 eSNMP API Routines
- Netelligent 8500 (3 pages)
- 127453-B21 (4 pages)
- AlphaPC 164LX (82 pages)
- QUICKSPECS 294162-B21 (1 page)
- PowerLeap JP2 (6 pages)
- 5900 (1 page)
- 517212-001 (26 pages)
- SmartCore Express SMA200 (42 pages)
- 212953-B21 (2 pages)
- NC3132 (4 pages)
- 705 (2 pages)
- au-Series (11 pages)
- AlphaPC 164SX (72 pages)
- 21264 (356 pages)
- PROLIANT 3000 (137 pages)
- ProLiant p-Class (24 pages)
- TL895 (10 pages)
- Microcom 420 (2 pages)
- uSign Signature Capture Module uSign 200 (18 pages)
- Universal Notebook Power Adapter SPS-2406 (4 pages)
- RAID ARRAY 3000 EK-SMCPO-UG. C01 (112 pages)
- DA-10121 (3 pages)
- AlphaStation XP1000 (16 pages)
- MICROSPACE MSEBX800 (53 pages)
- Contec RS-232C (77 pages)
- SDLT 220GB (8 pages)
- Cabinet H9A11 (32 pages)
- MTEK6000 (81 pages)
- SANetworks Network View DA10682 (6 pages)
- AA-RHGWB-TE (320 pages)
- OXYGEN VX1 (29 pages)
- COM Express Extension (24 pages)
- Lithium-ion battery (7 pages)
- 164SX (72 pages)
- 3200 (211 pages)
- AA-Q88CE-TE (320 pages)
- MSB900L (66 pages)
- WL100 (2 pages)
- Wireless LAN 100 (2 pages)
- 1000 LX (4 pages)
- AAR-88LB-TE (42 pages)
- PC100 (66 pages)
- VAX 7000 Model 810 (9 pages)
- 99875320-5 (44 pages)
- CP-2E (91 pages)