On Wed, 3 Nov 2004 17:46:04 +0100 Baumgart wrote:
BA> i have read about the new Readme.mibs file in the upcoming net-snmp 5.2
BA> release. is there a way i can automate this for my agent.

There is now. See the attached mib2 conf file.

dev $ mib2c -c mib2c.test-object-support.conf ipForward
writing to ipForward-mib-tests.sh

dev $ bash ./ipForward-mib-tests.sh localhost
Testing Scalars
1:Access IP-FORWARD-MIB::ipForwardNumber.0:     FAIL
2:Access IP-FORWARD-MIB::ipCidrRouteNumber.0:   FAIL
3:Access IP-FORWARD-MIB::inetCidrRouteNumber.0: FAIL
4:Access IP-FORWARD-MIB::inetCidrRouteDiscards.0:       FAIL

Testing tables
1:Access table IP-FORWARD-MIB::ipForwardTable:  FAIL
2:Access table IP-FORWARD-MIB::ipCidrRouteTable:        PASS
3:Access table IP-FORWARD-MIB::inetCidrRouteTable:      PASS

Scalars: 4 total, 0 passed, 4 failed.
Tables: 3 total, 2 passed, 1 failed.

-- 
Robert Story; NET-SNMP Junkie <http://www.net-snmp.org/>
<irc://irc.freenode.net/#net-snmp>  
Archive: <http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-users>

You are lost in a twisty maze of little standards, all different. 

Attachment: mib2c.test-object-support.conf
Description: Binary data

Reply via email to