SNMP frontend, add int32 + string type for scalars

Added get string test
Added set value for netconf test
This commit is contained in:
Olof hagsand 2022-05-13 15:12:57 +02:00
parent 72534e864d
commit 1f8b82e8e1
3 changed files with 143 additions and 47 deletions

View file

@ -105,9 +105,14 @@ testinit
MIB=".1.3.6.1.4.1.8072.2"
OID="${MIB}.1.1" # netSnmpExampleInteger
new "Test SNMP get for value in state file"
new "Test SNMP get for int value in state file"
expectpart "$($snmpget $OID)" 0 "$OID = INTEGER: 42"
OID="${MIB}.1.3" # netSnmpExampleString
new "Test SNMP get for string value in state file"
expectpart "$($snmpget $OID)" 0 "$OID = STRING: So long, and thanks for all the fish!"
new "Cleaning up"
testexit