O_counter64 – Compaq AAR04BCTE User Manual

Page 95

Advertising
background image

eSNMP API Routines

o_counter64

o_counter64

Loads a counter64 value into the VARBIND structure.

Format

int o_counter64

( VARBIND *vb,
OBJECT *obj,
uint64 value ); (for Alpha)
uint64_vax value ; (for VAX))

Arguments

vb

A pointer to the VARBIND structure that is supposed to receive the data.

obj

A pointer to the OBJECT structure for the MIB variable associated with the OID
in the VARBIND structure.

value

The 8-byte value to be inserted into the VARBIND structure, passed as an array
of two integers.

The real type as defined in the object structure must be
ESNMP_TYPE_Counter64. Otherwise, an error is returned.

Example

See the example for the

o_integer

routine.

Return Values

ESNMP_MTHD_noError

No error was generated.

ESNMP_MTHD_genErr

An error was generated.

eSNMP API Routines 5–37

Advertising