Compaq AAR04BCTE Network Card User Manual


 
4 Using the SNMP Utilities
4.1 Using the MIB Browser ....................................... 4–1
4.1.1 MIB Browser Parameters . . . ................................ 4–1
4.1.2 MIB Browser Flags ....................................... 4–2
4.1.3 MIB Browser Data Types . . . ................................ 4–5
4.1.4 Command Examples for snmp_request . ....................... 4–6
4.2 Using the Trap Sender and Trap Receiver Programs . . ............... 4–8
4.2.1 Entering Commands for the Trap Sender Program ............... 4–9
4.2.1.1 Trap Sender Parameters ................................ 4–9
4.2.1.2 Trap Sender Flags ..................................... 4–10
4.2.1.3 Trap Sender Examples . . ................................ 4–11
4.2.2 Entering Commands for the Trap Receiver Program .............. 4–12
4.2.2.1 Trap Receiver Flags .................................... 4–12
4.2.2.2 Setting Up an SNMP Trap Service. . ....................... 4–12
4.2.2.3 Trap Receiver Examples . ................................ 4–13
5 eSNMP API Routines
5.1 Interface Routines . . . ........................................ 5–1
esnmp_init . ................................................ 5–2
esnmp_register .............................................. 5–3
esnmp_unregister ............................................ 5–6
esnmp_register2 ............................................. 5–7
esnmp_unregister2 . . . ........................................ 5–11
esnmp_capabilities . . . ........................................ 5–12
esnmp_uncapabilities . ........................................ 5–13
esnmp_poll . ................................................ 5–14
esnmp_are_you_there . ........................................ 5–15
esnmp_trap ................................................ 5–16
esnmp_term ................................................ 5–17
esnmp_sysuptime ............................................ 5–18
5.2 Method Routines ............................................ 5–19
*_get Routine ............................................... 5–20
*_set Routine ............................................... 5–22
5.2.1 Processing *_set Routines . . ................................ 5–24
5.2.2 Method Routine Applications Programming ..................... 5–26
5.2.3 Value Representation ...................................... 5–27
5.3 Support Routines . . . ........................................ 5–30
o_integer . . ................................................ 5–31
o_octet .................................................... 5–33
o_oid ...................................................... 5–34
o_string . . . ................................................ 5–35
o_counter64 ................................................ 5–37
str2oid .................................................... 5–38
sprintoid . . . ................................................ 5–39
instance2oid ................................................ 5–40
oid2instance ................................................ 5–42
inst2ip .................................................... 5–44
cmp_oid . . . ................................................ 5–47
iv