I have a problema with several hosts that generate information containing non 
printable characters such as áéíóú, àèìòù, etc. For example, a Lexmark printer, 
shoud return for OID .1.3.6.1.2.1.43.11.1.1.6.1.5 
(prtMarkerSuppliesDescription.1.5):

"Caja de desecho de tóner"

Instead of that, my management software (Zabbix) shows:

"43 61 6A 61 20 64 65 20 64 65 73 65 63 68 6F 20 64 65 20 74 A2 6E 65 72"

If I try with snmpget: snmpget -v 1 -c community Lexmark_printer_IP 
.1.3.6.1.2.1.43.11.1.1.6.1.5

I obtain the hexadecimal value above. But if I use the -Oa (force output as 
ASCII): snmpget -Oa -v 1 -c community Lexmark_printer_IP 
.1.3.6.1.2.1.43.11.1.1.6.1.5

I get "Caja de desecho de t.ner"

I have tried to add the -Oa switch in the SNMPDOPTS line inside the 
/etc/init.d/snmpd script, but it is ignored. Does anybody know how to force the 
output to be ASCII for all snmp items?

Thanks

Ofullana

------------------------------------------------------------------------------
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

Reply via email to