Re: [tkined] [scotty] Invalid command: "snmp agent"

Juergen Schoenwaelder (schoenw@ibr.cs.tu-bs.de)
Tue, 16 Jun 1998 09:18:57 +0200

>>>>> Vincent Qing Yin writes:

Vincent> I'm playing with the snmp commands in scotty 2.1.7 on a
Vincent> Solaris machine. Here is the error:

Vincent> % snmp session snmp0

Vincent> % snmp0 get sysName.0 {1.3.6.1.2.1.1.5.0 {OCTET STRING}
Vincent> cascade.cs.ubc.ca}

Vincent> % snmp0 agent ==> bad option "agent": should be
Vincent> configure, cget, wait, destroy, get, getnext, getbulk, set,
Vincent> trap, inform, walk, scalars, table instance, or bind

Vincent> The command "snmp0 agent" is documented in Section 7 "Smart
Vincent> Agents written in Tcl" in the paper by J. Schonwalder and
Vincent> H. Langendorfer at
Vincent> ftp://ftp.ibr.cs.tu-bs.de/pub/local/papers/tcltk-95.ps.gz as
Vincent> mentioned in the FAQ.

Vincent> Why isn't it working?

The paper was written in 1995. The scotty version you are using was
released in September 1997. Fortunately, there has been some progress
(and API changes) in between. ;-)

Vincent> And by the way, where can I find a command reference manual
Vincent> for scotty?

The scotty distribution contains manual pages for all the commands
provided by the Tnm Tcl extension. This is the `official' reference
manual.

Vincent> For example, how to specify a host (where the SNMP agent is)
Vincent> in the command snmp0 get sysName.0 ???

Read the manual page snmp(n). (The address is one of several
parameters of an snmp session.)
Juergen

Juergen Schoenwaelder schoenw@ibr.cs.tu-bs.de http://www.cs.tu-bs.de/~schoenw
Technical University Braunschweig, Dept. Operating Systems & Computer Networks
Bueltenweg 74/75, 38106 Braunschweig, Germany. (Tel. +49 531 / 391 3283)

--
!! This message is brought to you via the `tkined & scotty' mailing list.
!! Please do not reply to this message to unsubscribe. To subscribe or
!! unsubscribe, send a mail message to <tkined-request@ibr.cs.tu-bs.de>.
!! See http://wwwsnmp.cs.utwente.nl/~schoenw/scotty/ for more information.