2009/1/14 Mike Ayers <[email protected]>: >> > $ snmpwalk -v 2c -c mll-O 'lb001.geni.com vsvrTotHits."www"' >> >> The problem with that command is that the shell will swallow >> the double quotes. These need to be passed to the SNMP >> command, so that it can distinguish between implied string >> index values ('www') and explicit-length ones ("www") > > No, the shell will eat the single quotes on the outside and leave the > doubles as-is. I know this works on bourne shells - are you perhaps using a > csh?
No - I'm using bash. However, I'm also using a relatively small font, and hadn't spotted the enclosing single quotes. My apologies. Ed - either Mike's suggestion or mine should work. In either case, the effect is to pass the double-quotes round "www" through to the snmpwalk command. Dave ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Net-snmp-users mailing list [email protected] Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users
