Specifying the community string in 0.4.0
Hello,
I have been using SCLI on and off for a while now, and it always worked well for me, but with 0.4.0 (under Debian/Sid), I have a weird issue: When I run 'scli localhost public', I get the following output: ------- 100 scli version 0.4.0 (c) 2001-2010 Juergen Schoenwaelder 401 wrong number of arguments: should be `open <nodename> [<community>]' -------
I get the same error message if I run scli without any arguments and then do an 'open localhost public'.
The problem is that on most of the machines that I monitor, we are not using the default community string, so I do have to specify the community string. Is there any other way to do it? Am I doing something wrong here?
Thanks, ~Juergen
On Tue, Mar 30, 2010 at 06:54:31PM +0200, Juergen Fiedler wrote:
I have been using SCLI on and off for a while now, and it always worked well for me, but with 0.4.0 (under Debian/Sid), I have a weird issue: When I run 'scli localhost public', I get the following output:
100 scli version 0.4.0 (c) 2001-2010 Juergen Schoenwaelder 401 wrong number of arguments: should be `open <nodename> [<community>]'
I get the same error message if I run scli without any arguments and then do an 'open localhost public'.
Yep, the error message needs to be fixed. I changed the syntax to follow in style the notation described in RFC 4088. RFC 4088 is silent about community strings but anyway, you can now pass snmp: URIs. And since they are verbose, you can abbreviate them.
Long story, but what you really want is as simple as:
scli public@localhost
I will get the error message fixed and the description of the command updated.
/js
On Mar 30, 2010 1:15pm, Juergen Schoenwaelder j.schoenwaelder@jacobs-university.de wrote:
On Tue, Mar 30, 2010 at 06:54:31PM +0200, Juergen Fiedler wrote:
I have been using SCLI on and off for a while now, and it always
worked well for me, but with 0.4.0 (under Debian/Sid), I have a weird
issue:
When I run 'scli localhost public', I get the following output:
100 scli version 0.4.0 (c) 2001-2010 Juergen Schoenwaelder
401 wrong number of arguments: should be `open []'
I get the same error message if I run scli without any arguments and
then do an 'open localhost public'.
Yep, the error message needs to be fixed. I changed the syntax to
follow in style the notation described in RFC 4088. RFC 4088 is silent
about community strings but anyway, you can now pass snmp: URIs. And
since they are verbose, you can abbreviate them.
Long story, but what you really want is as simple as:
scli public@localhost
Thank you very much! I am back monitoring things.
Thanks, ~Juergen
participants (3)
-
Juergen Fiedler
-
Juergen Schoenwaelder
-
juergen.fiedler@gmail.com