Scotty like SNMP tool for MS Windows?

Edward Haines (haines@BBN.COM)
Fri, 10 Feb 95 16:52:46 EST

I recently retrieved and installed Scotty on some of our Sparc stations here at
BBN. I find it a very powerful and convenient tool for writing simple SNMP
applications. As an example, I include a script below that displays the
operational status of all IP interfaces for an SNMP agent.

We are looking for something similar that would operate in Microsoft Windows
using the winsock interface. It does not have to use Tcl. A commercial
product would be OK. Does anyone have any suggestions or pointers?

Ted Haines
Bolt Beranek and Newman
Cambridge MA

#!/usr/local/bin/scotty -f

if { $argc != 1 } then {
puts "Usage: ipstat <hostname>"
exit
}
puts "IP interface status for $argv"

proc val {v n} { return [lindex [lindex $v $n] 2] }

set ses [snmp session -address $argv]
$ses walk x {ipAdEntAddr ipAdEntIfIndex} {
set ifIndex [val $x 1]
set ifStat [$ses get ifOperStatus.$ifIndex]
puts "[val $x 0] ($ifIndex): [val $ifStat 0]"
}

exit