You may know some of this already.
(1) The router has to be running an SNMP agent;
(2) The agent must be configured to acknowledge and respond to
the network management station (NMS);
(2a) This can be complicated by entities known as proxy agents,
when no agent exists;
(3) You need some sort of definition as to what MIB vars are
supported by the agent--or support for MIB browsing;
(4) You probably don't want anyone else to have RO or RW access
to the MIB vars on the router--no "public" community strings;
(5) You can get rudimentary SNMP code at anon ftp: lcs.mit.edu,
I believe. It's the SNMP Development Kit, as I recall. I've
written SNMP code, as I'm sure many others here have, but mine
was for an employer I no longer work for;
(6) You can join snmp @
psi .
net for a virtual flood of e-mail on this:
(echo subscribe <addr> | mail snmp-requests @
psi .
net /* Unix assumed */);
(7) comp.protocols.snmp is devoted to this subject;
(8) SNMP is carried over UDP, so take appropriate precautions.
Hope this gets you started.
Richard
* Date: Sat, 30 Jul 1994 12:22:27 -0400
* To: firewalls @
GreatCircle .
COM
* From: btaylor @
integain .
com (Bob Taylor - InteGain Corporation)
* Subject: Querying a router using SNMP
*
* As part of a firewall that I am creating, I need to be able to query a local
* Timeplex AccessRouter via SNMP to determine statistics. I am working on
* determining exactly which MIB entries will be used. I will be coding in C
* under SOLARIS 2.
*
* If anyone has done anything similar - querying using SNMP from a host using
* C - or has any thoughts on the pros and cons of implementing this, I would
* appreciate receiving his or her thoughts, comments or coding suggestions or
* samples.
*
* Thanks.
*
* ================================================================
* Bob Taylor InteGain Corporation Ontario, CANADA
* EMail: btaylor @
integain .
com
* Voice: (416) 410-2628
* ================================================================
* The cogency of the abovenoted thoughts is not guaranteed
* ================================================================
*
*
|
|