SNMP Manager Programmer's Guide

Reference Summary
SNMP Manager Programmer’s Guide–134249
9-28
Binding MIB Objects
Binding MIB Objects
SNMP_Bind_Integer()
This function associates a variable binding of type INTEGER with a packet previously
initialized with SNMP_Create_Request() or SNMP_Create_Trap().
generic-trap
The generic trap code. Assign one of the following values, which
correspond to the values indicated:
0 (coldStart)
1 (warmStart)
2 (linkDown)
3 (linkUp)
4 (authenticationFailure)
5 (egpNeighborLoss)
6 (enterpriseSpecific)
specific-trap
An integer describing a specific trap code, which is an enterprise-
defined code providing additional information about the nature of
the trap.
timestamp
An indication of the time the trap was issued, usually the number
of timeticks (1/100ths of a second) since your system was last
started.
num-varbinds
An integer indicating how many variable bindings the packet will
contain. After SNMP_Create_Trap() completes, call an
SNMP_Bind_ function as many times as the number of variable
bindings in order to associate the variable bindings with the
packet.
rcode = SNMP_Bind_Integer(packet,
index,
instance-count,
instance-components,
value);
int SNMP_Bind_Integer(SNMP_PKT_T *packet,
int index,
int instance-count,
OIDC_T *instance-components,
INT_32_T value);
rcode
A return integer indicating whether the call succeeded. A value
of 0 indicates success, and -1 indicates failure.
packet
A pointer to an initialized request or trap packet.