Compaq TCP/IP Services for OpenVMS Programming And Reference Manual page 101

Tcp/ip services for openvms
Table of Contents

Advertisement

Example
#include <esnmp.h>
OID
OBJECT
int
unsigned int instance[6];
-- in a GET operation --
-- Expected Instance is N.1.A.A.A.A where A's are IP address --
instLength = oid2instance(incoming, object, instance, 6);
if (instLength != 6)
The N will be in
instance[3]
*incoming = &method->varbind->name;
*object
= method->object;
instLength;
return ESNMP_MTHD_noSuchInstance;
and the IP address will be in
instance[0]
,
, and
instance[4]
.
instance[5]
eSNMP API Routines
oid2instance
,
instance[2]
eSNMP API Routines 5–43

Advertisement

Table of Contents
loading

Table of Contents