Regarding my previous message, I never figured out what in GCC 2.95
wasn't agreeing, so I just updated gcc on my fbsd box.
So, now, my project is to the beta phase.
What is it? Well, it annoys me that you can poll the interface stats
via SNMP, but not really anything else. The itch that I needed
scratched was being able to poll the byte counters on ipfw. I know that
there's the dump.php out there, but I wanted SNMP so that it would
Well, I had to recompile snmpd, and write a C program (which is probably
bug ridden) and add one line to services.inc, and now I get:
> justintime@laptop ~ $ snmpwalk -v2c -c mystring 172.31.10.1 .22.214.171.124.4.1.2021.255
> UCD-SNMP-MIB::ucdavis.255.50000 = Counter32: 17137
> UCD-SNMP-MIB::ucdavis.255.50001 = Counter32: 4819
> UCD-SNMP-MIB::ucdavis.255.50002 = Counter32: 64679
> UCD-SNMP-MIB::ucdavis.255.50003 = Counter32: 175
> UCD-SNMP-MIB::ucdavis.255.50004 = Counter32: 0
> UCD-SNMP-MIB::ucdavis.255.50005 = Counter32: 0
> UCD-SNMP-MIB::ucdavis.255.50006 = Counter32: 0
> UCD-SNMP-MIB::ucdavis.255.50007 = Counter32: 0
> UCD-SNMP-MIB::ucdavis.255.50008 = Counter32: 5359729
> UCD-SNMP-MIB::ucdavis.255.50009 = Counter32: 41096
> UCD-SNMP-MIB::ucdavis.255.50010 = Counter32: 206306
> UCD-SNMP-MIB::ucdavis.255.50011 = Counter32: 0
> UCD-SNMP-MIB::ucdavis.255.50012 = Counter32: 0
> UCD-SNMP-MIB::ucdavis.255.50013 = Counter32: 0
> UCD-SNMP-MIB::ucdavis.255.50014 = Counter32: 1738934
> UCD-SNMP-MIB::ucdavis.255.65535 = Counter32: 7170810
Those numbers after the 255 correspond to the rule number from the left side of 'ipfw show'. Add a
shaper rule, and you have a new mib oid to poll!
Anyways, dev's know all about snmp, right? I only had time to build a net48xx image. If you have
the time and the need, email me and I'll get you the goods!