SNMP Manager Programmer's Guide
Programming Examples
SNMP Manager Programmer’s Guide–134249
2-57
SNMPGET
4. If values for a NonStop agent process name, destination port, or timeout were
specified at invocation, the values are assigned to the appropriate fields in the host
interface structure, SNMP_HOST_INT_T.
5. SNMP_Open_(), defined in snmpfsc, obtains a socket for UDP communication or
opens a file for NonStop agent IPC communication.
6. The logic for constructing a request packet is the same as that in SNMPGT.
7. A 2000-byte buffer for the encoded packet is dynamically allocated. The Manager
Services function EBufferSetup() initializes buffer descriptors in ebuff:
8. SNMP_WriteRead_(), defined in snmpfsc, encodes, transmits, receives, and decodes
packets. It accepts a pointer to the host interface structure, a pointer to the
unencoded-packet structure (send_pkt), a pointer to ebuff, and an integer describing
the kind of output messages desired. This function returns an integer describing the
outcome of its processing.
9. SNMP_FS_ErrMsg_(), defined in snmpfsc, converts an error integer into an
explanation of the failure when SNMP_WriteRead_() fails.
10. Memory used for packets is deallocated.
207
ebuff
start_bp
next_bp
remaining