For When You Can't Have The Real Thing
[ start | index | login ]
start > dave > experiments > Switch Topology > perl Net-SNMP

perl Net-SNMP

Created by dave. Last edited by dave, 16 years and 202 days ago. Viewed 3,411 times. #1
[edit] [rdf]

After the fact

I wrote a script which reads the OID tables, associates IPs to MACs, then for each switch lists all the ports on all the other switches that MAC is reachable to. Problem was it took almost two minutes to run, which was going to make testing algorithms slow and tedious.

So I decided I needed a database.

And I discovered that the only interface to databases provided by perl is the ugly pseudo-OO interface. And, well, Python followed from that.

no comments | post comment
This is a collection of techical information, much of it learned the hard way. Consider it a lab book or a /info directory. I doubt much of it will be of use to anyone else.

Useful: | Copyright 2000-2002 Matthias L. Jugel and Stephan J. Schmidt