[tkined] Small mods to snmp-monitor.tcl?

Alan Hagge (hagge@research.averydennison.com)
Thu, 3 Dec 1998 09:46:00 -0800

Juergen/all,

Unfortunately, I know zero Tk/Tcl, so I'm unable to do anything but suggest:

Would it be possible/easy to make a couple of modifications to the
TrapSinkProc procedure in the 3.0.0 release, specifically,

- Have the first line print not only the IP address by also the hostname of
the host generating the trap, for example:
Thu Dec 03 08:40:52 PST 1998 SNMPv1 trap from hostname
[100.200.100.200]:
instead of just:
Thu Dec 03 08:40:52 PST 1998 SNMPv1 trap from [100.200.100.200]:

- If the type of the variable is "OCTET STRING", print out the ASCII string
instead of (or at least in addition to) the literal "octet" string, for
example:
ARCserve-Alarm-MIB!arcServeServerName.0 = "NT_ARC_DOMINO1"
or
ARCserve-Alarm-MIB!arcServeServerName.0 = "NT_ARC_DOMINO1"
[4E:54:5F:41:52:43:5F:44:4F:4D:49:4E:4F:31]
instead of just:
ARCserve-Alarm-MIB!arcServeServerName.0 =
4E:54:5F:41:52:43:5F:44:4F:4D:49:4E:4F:31

I believe that both of these additions would improve the human-readability
of the trap messages immensely (at least for me!)

Comments, flames? If they makes sense, could we see these changes
incorporated into the next source code release?

Thanks for reading...

Alan Hagge
Sr. Systems Administrator
Avery Research Center

P.S. Regarding some recent comments about adding sound (when systems become
unreachable, for example): Have you taken a look at the SNACK set of Tk/Tcl
extensions (available from http://www.speech.kth.se/SNACK). I realize that
the entire package is extreme overkill for this application, but it WOULD
provide a relatively platform-independent way of adding sound effects. Has
anybody seen any other (simpler) ways of adding simple sounds?

--
!! 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.