Proper way to write an original agent?

Tatsuo Natsukawa (natsu@natsu.itjit.ad.jp)
Mon, 24 Jun 1996 04:22:04 +0900

Hi, folks

I just wrote an SNMP agent in scotty, and it works for me. But
writing an agent is a very new thing for me. I'll appreciate any
comments on the following.

I needed to monitor an Ascend Pipeline Max 4000. I needed to monitor
the number of open B channels and the number of modems in use.
Looking at the Ascend MIB
(ftp://ftp.ascend.com/pub/Doc/SNMP/MIBS/ascend.mib), I didn't find any
SNMP variable that represents the number of open B channels or the
number of modems in use. But I knew I can easily compute these
numbers from other SNMP variables. So I wrote an SNMP agent in scotty
which computes these numbers from other SNMP variables. But what SNMP
variables should I use to return the computed numbers? Now I'm using
ifMtu.1 to represent the number of open B channels and ifMtu.2 to
represent the number of modems if use, and my tkined window has two
graphs representing these two numbers. So it works for me, but is
there more proper way of writing an SNMP agent like this?

Thank you in advance,
--------------------------------------------------------------------
Tatsuo Natsukawa natsu@itjit.ad.jp http://www.itjitnet.or.jp/~natsu/
finger natsu@natsu.itjit.ad.jp for my PGP public key