Hi Dave, see my comment inline...
On 2012-08-07 09:23, Dave Shield wrote: > On 3 August 2012 12:54, Edgar <[email protected]> wrote: >> I want to translate this: >> .1.3.6.1.4.1.232.6.2.9.3.1.5.0.2 = INTEGER: 1 >> into this: >> CPQHLTH-MIB::cpqHeFltTolPowerSupplyStatus.0.2 = INTEGER: >> noError(1) > > As long as the CPQHLTH-MIB is installed properly (and being read in) > then this should be handled automatically. yes, if you use snmpwalk or snmpget and co. But, this is a line from an SNMP trap. The SNMP trap daemon we use, OP5 Trapper, by default logs its' traps as raw data into a logfile. What I want to know is how to translate these raw SNMP traps into readable text? Preferably from the commandline. I know of one way to do this: Change "= STRING:" into "s" and "= INTEGER:" into "i", "= Hex-STRING:" into "x", etc and resend this trap to a different SNMP trap daemon running on a non-standard port (1162) and configured to output the received traps as readable text into a log file. And use unix tools to extract the result from the logfile. As this works, it's cumbersome and error-prone. Whence the question: Is there another and easier way to do this? Kind regards, Edgar. ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Net-snmp-users mailing list [email protected] Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users
