diff --git a/test/test_snmp_get.sh b/test/test_snmp_get.sh index a2356a6a..9066d6fd 100755 --- a/test/test_snmp_get.sh +++ b/test/test_snmp_get.sh @@ -34,6 +34,7 @@ cat < $cfg $dir unix:$SOCK CLIXON-TYPES-MIB + true EOF @@ -69,7 +70,7 @@ cat < $fstate - index + 1 Name1 Name2 diff --git a/test/test_snmp_ifmib.sh b/test/test_snmp_ifmib.sh index 745dd167..0207f5b7 100755 --- a/test/test_snmp_ifmib.sh +++ b/test/test_snmp_ifmib.sh @@ -40,6 +40,7 @@ cat < $cfg $dir unix:$SOCK IF-MIB + true EOF @@ -89,7 +90,7 @@ cat < $fstate 130 131 132 - SNMPv2-SMI::zeroDotZero + 0.0 2 @@ -113,7 +114,7 @@ cat < $fstate 101010 111111 111 - SNMPv2-SMI::zeroDotZero + 1.2.3 @@ -324,7 +325,7 @@ validate_oid $NAME21.2 $NAME21.2 "Gauge32" 111 new "Test $OID22 ifSpecific" validate_oid $OID22 $OID22 "OID" ".0.0" validate_oid $NAME22.1 $NAME22.1 "OID" "SNMPv2-SMI::zeroDotZero" -validate_oid $NAME22.2 $NAME22.2 "OID" "SNMPv2-SMI::zeroDotZero" +validate_oid $NAME22.2 $NAME22.2 "OID" "iso.2.3" new "Test ifTable" expectpart "$($snmptable IF-MIB::ifTable)" 0 "Test 2" "1400" "1000" "11:22:33:44:55:66" "down" "111" "222" "333" "444" "555" "666" "777" "888" "999" "101010" "111111" "111" @@ -373,7 +374,7 @@ expectpart "$($snmpwalk IF-MIB::ifTable)" 0 "IF-MIB::ifIndex.1 = INTEGER: 1" \ "IF-MIB::ifOutQLen.1 = Gauge32: 132" \ "IF-MIB::ifOutQLen.2 = Gauge32: 111" \ "IF-MIB::ifSpecific.1 = OID: SNMPv2-SMI::zeroDotZero" \ - "IF-MIB::ifSpecific.2 = OID: SNMPv2-SMI::zeroDotZero" + "IF-MIB::ifSpecific.2 = OID: iso.2.3" testexit new "endtest" diff --git a/test/test_snmp_set.sh b/test/test_snmp_set.sh index 9a22fba8..bf77d746 100755 --- a/test/test_snmp_set.sh +++ b/test/test_snmp_set.sh @@ -35,6 +35,7 @@ cat < $cfg $dir unix:$SOCK CLIXON-TYPES-MIB + true EOF diff --git a/test/test_snmp_system.sh b/test/test_snmp_system.sh index ed06a9a9..c6a02fbe 100755 --- a/test/test_snmp_system.sh +++ b/test/test_snmp_system.sh @@ -15,7 +15,7 @@ fi snmpd=$(type -p snmpd) snmpget="$(type -p snmpget) -On -c public -v2c localhost " snmpwalk="$(type -p snmpwalk) -On -c public -v2c localhost " -snmpwalkstr="$(type -p snmpwalk) s-c public -v2c localhost " +snmpwalkstr="$(type -p snmpwalk) -c public -v2c localhost " snmpgetnext="$(type -p snmpgetnext) -On -c public -v2c localhost " snmptable="$(type -p snmptable) -c public -v2c localhost " @@ -41,6 +41,7 @@ cat < $cfg $dir unix:$SOCK SNMPv2-MIB + true EOF @@ -71,13 +72,13 @@ cat < $fstate 1 - IP-MIB::ip + 1.3.6.1.2.1.4 Entry 1 description 11223344 2 - IF-MIB:ifTable + 1.3.6.1.2.1.2.2 Entry 2 description 1122111111 diff --git a/test/test_snmp_table.sh b/test/test_snmp_table.sh index ac5d4fbc..14b912dc 100755 --- a/test/test_snmp_table.sh +++ b/test/test_snmp_table.sh @@ -44,6 +44,7 @@ cat < $cfg $dir unix:$SOCK NET-SNMP-EXAMPLES-MIB + true EOF