Summary

Tcl has a powerful extension for communicating over SNMP. The Scotty package covers all aspects of SNMP—all commonly used versions of the protocol and offers all aspects of SNMP communication.

In this chapter, we learned:

  • TkIned application—this can be used as both a simple network monitoring tool and base for learning SNMP.
  • Using Scotty for getting and setting SNMP values, for iterating over SNMP tables and finding attributes that a particular device offers. This can be used to, periodically or on demand, query data from devices or automatically configure devices.
  • How to send and receive traps—this is especially useful if we need to support devices that communicate only over SNMP, such as routers, printers, and embedded devices. We can also ...

Get Tcl 8.5 Network Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.