Re: string as index of a table

Fulko Hew <[email protected]>
Newsgroups gmane.network.net-snmp.devel,gmane.network.net-snmp.user
Message-ID <CAGuV3hOJ74=e7p2sdZaGAdVgsWRqah02z97230tyFsuh+4GC4w@mail.gmail.com>
On Fri, Oct 17, 2014 at 10:38 AM, sarath azad <[email protected]>
wrote:

> Hi Niels,
>
> But using a query like:  snmpwalk $host  <OID of
> table>.1.<column>.\"ABCDE\"
> is not working also. Below are the test results :
>
>  snmpget $host  <OID of
> table>.1.<column>.10."66.67.68.69.70.71.72.73.74.75"
>  <OID of table>.1.<column>."BCDEFGHIJK" = INTEGER: 0
> snmpget $host  <OID of table>.1.<column>.10.\"ABCDEFGHIJ\"
>  <OID of table>.1.<column>.10."ABCDEFGHIJ": Unknown Object Identifier
> (Index out of range: "ABCDEFGHIJ")
> snmpget $host  <OID of table>.1.<column>.10.'ABCDEFGHIJ'
>  <OID of table>.1.<column>.10.ABCDEFGHIJ: Unknown Object Identifier (Index
> out of range: ABCDEFGHIJ )
>
> Could you please help in resolving this?
>

You don't need to insert the length explicitly, it will be calculated and
inserted for you.
Try:

snmpget $host  <OID of table>.1.<column>.\"ABCDEFGHIJ\"

------------------------------------------------------------------------------
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://p.sf.net/sfu/Zoho

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