From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f7344,ddb478083569953a,start X-Google-Attributes: gidf7344,public X-Google-Thread: fb1f5,ddb478083569953a,start X-Google-Attributes: gidfb1f5,public X-Google-Thread: f98ee,ddb478083569953a,start X-Google-Attributes: gidf98ee,public X-Google-Thread: 1164f8,ddb478083569953a,start X-Google-Attributes: gid1164f8,public From: rpremuz@srce.hr (Robert Premuz) Subject: Re: SNMP under program control? Date: 1996/03/11 Message-ID: <4i12cv$53u@bagan.srce.hr>#1/1 X-Deja-AN: 142261693 distribution: inet references: <4hhgge$p90@amhux3.amherst.edu> followup-to: comp.protocols.snmp,comp.os.vms,comp.sys.dec,comp.sys.mac.programmer.tools content-type: text/plain; charset=US-ASCII organization: SRCE, Uni.of Zagreb, Croatia mime-version: 1.0 newsgroups: comp.protocols.snmp,comp.os.vms,comp.sys.dec,comp.sys.mac.programmer.tools In <4hhgge$p90@amhux3.amherst.edu> John W. Manly (jwmanly@unix.amherst.edu) wrote: : Hi there. I have a need to do some very basic SNMP Get-ing of information : from some of our SNMP-managed devices, but I need to do this under program : or shell control. That means that I either need some code that can : demonstrate how to do basic SNMP GETs and SETs, or some higher level : programming environment (like shell code or PERL or something) that can : do the same thing. : The easiest way to think about this problem is as follows: suppose you : needed to write a program that did something when some counter on an : SNMP-managed hub (the collision count on a particular port, say) reached : a particular threshold, and the hub had no ability to do SNMP traps, : how would you write a program or a script to obtain that particular : piece of information, assuming the MIB files for the hub were available? : Does anyone know if such programming/interface tools exist, for either : VMS, DEC UNIX, or a PC or Mac programming system? : Thanks much for any help, pointers, or suggestions. : - John W. Manly (System Manager -- Amherst College) Have a look at Scotty at the following URLs: http://www.cs.tu-bs.de/ibr/projects/nm/scotty/welcome.html ftp://ftp.ibr.cs.tu-bs.de/pub/local/tkined I think there is a ftp mirror somewhere in the USA. Scotty is an extension of Tcl/Tk scripting languages. So, you'll have to get them too. All that is free software. I know it runs on UNIX systems. For other systems, check what the scotty F.A.Q. says. It is able to do exactly what you mentioned in your example. Tkined is a GUI which can be used with scotty scripts but you can also run them in the background without a controlling terminal. After having compiled all that, you'll have to play with it for a while to get the idea how it works. Unfortunately, the documentation is rather poor due to, as far as I know, the fact that the package is written by university people in Germany, i.e. it is made by a non-profit organisation. Good luck. v -- rpr. : Robert B. Premuz Internet: rpremuz@malik.srce.hr * Voice at home: +385 (0)1 687564