Re: snmpget: Remove quotes in output string

Wes Hardaker via Net-snmp-coders <[email protected]>
Newsgroups gmane.network.net-snmp.devel
Message-ID <[email protected]>
Pushpa Thimmaiah <[email protected]> writes:

> 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'd have to know what type of system this was, as I don't recognize why
that should have quotes around it.  I can tell you that on my host, it
returns the host name without quotes.

Is that our agent running on an operating system, or are you querying
something else?  Does SNMPv2-MIB::sysObjectID.0 return something in the
NET-SNMP-MIB::netSnmpAgentOIDs tree?
-- 
Wes Hardaker
Please mail all replies to [email protected]


_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.