Hi All, Why output of few mib-object of data-type string are enclosed in quote and few are not Eg: IF-MIB::ifName.5 = STRING: eth2 <----- No quotes RFC1213-MIB::sysName.0 = STRING: "pushpat-ThinkPad-L480" <----- Quotes
Wireshark shows that quotes are added at snmp-agent side i.e not by snmp-manager I would like to know whether we are allowed change code to remove quotes? Any specific reason for adding quotes ? Thank you, Pushpa.T On Sat, Sep 19, 2020 at 3:11 PM Pushpa Thimmaiah <pushpa.thimma...@gmail.com> wrote: > Hi Wes Hardaker, > > I have noticed following > > 1 ) Few mib-object with string type has no double-quotes > IF-MIB::ifName.5 = STRING: eth2 > HOST-RESOURCES-MIB::hrStorageDescr.1 = STRING: Physical memory > HOST-RESOURCES-MIB::hrSystemDate.0 = STRING: 2020-9-19,14:33:8.0,+5:30 > > 2) snmpcmd/snmpget has no options to hide/escape quotes in output value. > > Thank you, > Pushpa.T > > On Sat, Sep 19, 2020 at 3:59 AM Wes Hardaker < > harda...@users.sourceforge.net> wrote: > >> Pushpa Thimmaiah <pushpa.thimma...@gmail.com> writes: >> >> > Hi All, >> > >> > I can understand response to snmpget/snmpwalk display string datatype >> in >> > double-quotes as in following example. Kindly let me know If there any >> way to >> > remove or hide quotes from display. >> >> I know you anwsered yourself, but you might also read the OUTPUT OPTIONS >> section of the snmpcmd manual page. >> -- >> Wes Hardaker >> Please mail all replies to net-snmp-coders@lists.sourceforge.net >> >
_______________________________________________ Net-snmp-coders mailing list Net-snmp-coders@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/net-snmp-coders