You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Step 1. Run unmodified BasicTests.test_v1_get (perform SNMP Get on sysDescr.0)
BasicTests.test_v1_get
---v1 GET tests -------------------------------------
v1 snmpget result: ('My Router',)
v1 get var: sysDescr 0 = My Router ( OCTETSTR )
Ran 1 test in 0.217s
OK
Step 2. Modify the test to perform SNMP Get on sysDescr.123 (non-existent IID)
---v1 GET tests -------------------------------------
v1 snmpget result: ('',) #empty string
v1 get var: sysDescr 123 = ( OCTETSTR )
At step 2 the expected result is an error or None obj. Instead I receive an empty string for an OID that doesn't exist.
This behavior is not dependent on the SNMP version (it's the same for v1, v2c, v3)
The same result (empty string) can also be obtained when we perform SNMP GET on an OID which is supposed to return an empty string.
So, we can't decide if it's an error or valid result.
Thanks.
The text was updated successfully, but these errors were encountered:
Running net-snmp/python/netsnmp/tests
Step 1. Run unmodified BasicTests.test_v1_get (perform SNMP Get on sysDescr.0)
BasicTests.test_v1_get
---v1 GET tests -------------------------------------
v1 snmpget result: ('My Router',)
v1 get var: sysDescr 0 = My Router ( OCTETSTR )
Ran 1 test in 0.217s
OK
Step 2. Modify the test to perform SNMP Get on sysDescr.123 (non-existent IID)
---v1 GET tests -------------------------------------
v1 snmpget result: ('',) #empty string
v1 get var: sysDescr 123 = ( OCTETSTR )
At step 2 the expected result is an error or None obj. Instead I receive an empty string for an OID that doesn't exist.
This behavior is not dependent on the SNMP version (it's the same for v1, v2c, v3)
The same result (empty string) can also be obtained when we perform SNMP GET on an OID which is supposed to return an empty string.
So, we can't decide if it's an error or valid result.
Thanks.
The text was updated successfully, but these errors were encountered: