On Thu, 2006-02-16 at 12:14 -0500, Kyle Tucker wrote: > > You *do* need the quotes, but they need to reach snmpget, rather > > than being swallowed by the shell. Try: > > > > snmpget ... hostname ... nsExtendOutputFull.\"extt\" > > Curiously, why the quotes in the OID's anyway?
This is how the Net-SNMP library knows how to interpret this index as a string. The OID above is equivalent to the numeric index values: nsExtendOutputFull.4.65.78.74.74 By contract, single quotes are used to indicate an *implicit* length index string. So nsExtendOutputFull.\'extt\' would be equivalent to nsExtendOutputFull.65.78.74.74 (although that is not appropriate for this particular table). If you have problems with passing quoted strings, it's perfectly acceptable to use numeric instance subidentifiers. Dave ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 _______________________________________________ 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