Hi, 
  I have a need to convert the caught trap OID into the object name
sending the trap:

For example, an agent send a trap (trapSource: .1.2.3.4), to the
snmptrapd, the snmptrapd got the trap name is .1.2.3.4
What I need is the name :trapSource for a friendly display.
  
I noticed there's a routine  snmp_parse_oid  to convert string name into
OID, but I did not find an accoringly routine to do the reverse work.

While I noticed in the snmpset implementation, there's a routine
print_variable do the snmp set display work, with the set var in the
string format, which may called some function to convert OID to string
name, but I'm not clear about the interface.

Could somebody provide some help on this?

Thanks,
------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to