Chapter 9, Developing SMUX peers for SNMP agents
Implementing an SMUX peer

Implementing an SMUX peer

In the previous section, we described the interaction between a management station, an SNMP agent and an SMUX peer, and discussed how the SMUX protocol works. This section describes the tasks required to implement an SMUX peer:

The SMUX API contains a reference peer called foosmuxd which you can modify for your SMUX peer. foosmuxd is a ``dummy'' peer, in that it pretends to manage an imaginary multi-port serial board; because the serial board doesn't actually exist, foosmuxd ``gets'' hard-coded data. If your peer needs to communicate with a device or to read/write a file in order to manage the device, you have to add this capability to foosmuxd. If you are developing your own peer, you should replace all occurrences of the string ``foo'' with your company name or some string which uniquely describes your peer.

The foo SMUX peer daemon is implemented with the following five files: