Net-snmp has a small number of types:
i: INTEGER, u: unsigned INTEGER, t: TIMETICKS, a: IPADDRESS o: OBJID, s: STRING, x: HEX STRING, d: DECIMAL STRING U: unsigned int64, I: signed int64, F: float, D: double
Interestingly, the story does not end. For example, if I have an unsigned int64, I will get Gauge32 as the type after sending "snmpget". I am looking for a table that lists all the possible "type strings" (for example, "Gauge32" or "INTEGER") that Net-SNMP will return along with the actual type that the string is associated with. Thus, this table would have obvious entries, such as:
(return value from snmpget, type, snmpset symbol) → ("INTEGER", INTEGER, i)
If anyone knows where to find an exhaustive list, send a message.
source share