Download TCP/IP Volume 2 User`s Manual

Transcript
snmp_last_snmp_type
word snmp_last_snmp_type( snmp_parms *p );
DESCRIPTION
Return the SNMP type of the last object retrieved from the MIB tree. Each object has two “types.”
The SNMP type indicates the type of object to external entities using SNMP to examine objects
on this agent. The internal type (see snmp_last_type()) indicates the memory layout for
the object in the MIB tree. The same memory layout may be used for different SNMP types, and
vice versa.
PARAMETERS
Parameter structure that was used previously in a call to a retrieval function
such as snmp_get_indexed(), snmp_get() or
snmp_get_next().
p
RETURN VALUE
SNMP type of the object. The currently supported types are:
•
•
•
•
•
•
•
SNMP_P_INTEGER
SNMP_P_OCTETSTR
SNMP_P_OID
SNMP_P_IPADDR0
SNMP_P_COUNTER
SNMP_P_GAUGE
SNMP_P_TIMETICKS
LIBRARY
MIB.LIB
SEE ALSO
snmp_init_parms, snmp_get, snmp_get_next, snmp_get_indexed,
snmp_last_int, snmp_last_long, snmp_last_mem, snmp_last_xmem,
snmp_last_type, snmp_last_len
TCP/IP Volume 2 User’s Manual
rabbit.com
449