On 13 June 2012 11:52, Octavi Fullana <[email protected]> wrote: > 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"
That is the purpose of the -Oa client option, yes. > I have tried to add the -Oa switch in the SNMPDOPTS line inside the > /etc/init.d/snmpd script, but it is ignored. Correct - the -O* output options are for the client applications only. The SNMP agent doesn't use them (since in general it's not actually displaying any information). If you check the snmpd(8) man page, you'll see that -O is not mentioned. > Does anybody know how to force > the output to be ASCII for all snmp items? You've already found it - use '-Oa' on the *client* side, not the agent. (Or set the locale to recognise these as printable characters, as Wes suggests). Dave ------------------------------------------------------------------------------ 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
