First set of tests using bulkget.

This commit is contained in:
Kristofer Hallin 2022-06-02 19:25:10 +02:00 committed by Olof hagsand
parent 44d7d898bb
commit 736eca3e3b

View file

@ -200,13 +200,9 @@ validate_oid $OID11 $OID12 "INTEGER" 1
new "Get ifStackStatus"
validate_oid $OID12 $OID12 "INTEGER" 1
new "Test SNMP getnext ifStackStatus"
#expectpart "$($snmpgetnext $OID)" 0 "" # XXX table OID should it work?
new "Get bulk OIDs"
expectpart "$($snmpbulkget $OID1)" 0 "$OID2 = INTEGER: -1" "$OID3 = STRING: \"This is not default\"" "$OID4 = Timeticks: (12345) 0:02:03.45" "$OID5 = INTEGER: 48" "$OID6 = Gauge32: 123123123" "$OID7 = INTEGER: 3" "$OID8 = Counter32: 123456" "$OID9 = Counter64: 4294967296" "$OID10 = INTEGER: 1" "$OID11 = Timeticks: (1234567890) 142 days, 21:21:18.90"
#----------------- table
# the index/key netSnmpHostName has type binary translates to string
# which requires a transaltion to numeric OID which is NYI
if false; then
new "Test SNMP table netSnmpIETFWGTable"
expectpart "$($snmptable $OID13)" 0 "Name1" "Name2"
@ -219,11 +215,10 @@ expectpart "$($snmptable $OID18)" 0 "10.20.30.40" # Should verify all columns
new "Test SNMP getnext netSnmpHostsTable $OID18"
expectpart "$($snmpgetnext $OID18)" 0 ""
fi
new "Cleaning up"
#testexit
testexit
new "endtest"
endtest