When a snmptrap arrives and if the server can be resolve OID, it writes a
message without quotes marks, if SNMP-oid is not known, then in quotation
marks. How to make that value always written in quotation marks? example

snmptrap -v 1 -c public localhost '' '' '' '' '' 1.3.6.1.2.1.1.5 s "Some
host name" Apr 21 13:41:32 65_test snmptrapd[30680]: 2017-04-21 13:41:32
192.168.124.28(via UDP: [127.0.0.1]:43906->[127.0.0.1]) ....
*SNMPv2-MIB::sysName
= STRING: Some host name*

snmptrap -v 1 -c public localhost '' '' '' '' '' 1.3.6.1.2.6.1.5 s "Some
host name" Apr 21 13:41:45 65_test snmptrapd[30680]: 2017-04-21 13:41:45
192.168.124.28(via UDP: [127.0.0.1]:41895->[127.0.0.1]) ....
*SNMPv2-SMI::mgmt.6.1.5
= STRING: "Some host name"*

It is not possible to change the text of the snmptrap.
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to