On 29 December 2010 13:34, deepa ramar <[email protected]> wrote:
> While testing snmp get as
>     snmpget -O qv -I r -v 1 -c public x.x.x.x sysLocation.0

Yes - that looks OK to me.
(and it does work as expected when I run this command)


> Unknown output option passed to -O:

Is there nothing printed after the ':'  ?
That is where the offending option would normally be displayed.

Try omitting the space after '-O', and use
    snmpget  -Oqv -Ir ....

That shouldn't make any difference, but is worth a try.



> Sometimes it's works fine.

Sometimes you get an error, and sometimes you don't?
With *exactly* the same command?
That doesn't make sense!

There must be some difference between the two commands.

All I can think is that there might be a non-printing character
on the failing command line, which is confusing the Net-SNMP
option parser.
   But that's a bit of a long shot, to be honest.

Dave

------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to