Esnmp_Poll - Compaq TCP/IP Services for OpenVMS Programming And Reference Manual

Tcp/ip services for openvms
Table of Contents

Advertisement

eSNMP API Routines

esnmp_poll

esnmp_poll
Processes a pending message that was sent by the master agent.
Format
int esnmp_poll ( )
Description
This routine is called after the
the eSNMP socket. (This socket was returned from the call to the
routine.)
If a received message indicates a problem, an entry is made to the SNMP log file
and an error status is returned.
If the received message is a request for SNMP data, the object table is checked
and the appropriate method routines are called, as defined by the developer of the
subagent.
Return Values
ESNMP_LIB_OK
ESNMP_LIB_BAD_REG
ESNMP_LIB_DUPLICATE
ESNMP_LIB_NO_
CONNECTION
ESNMP_LIB_CLOSE
ESNMP_LIB_NOTOK
ESNMP_LIB_LOST_
CONNECTION
5–14 eSNMP API Routines
select( )
call has indicated data is ready on
The
routine completed successfully.
esnmp_poll
The master agent failed in a previous
registration attempt. See the log file.
A duplicate subagent identifier has already been
received by the master agent.
The master agent's
OPEN
the connection after a delay. See the log file.
A
CLOSE
message was received.
An eSNMP protocol error occurred and the
packet was discarded.
Communication with the master agent was lost.
Restart the connection.
esnmp_init
request failed. Restart

Advertisement

Table of Contents
loading

Table of Contents