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
We use definition like leaf ifConnectorPresent { type boolean; description "This object has the value 'true(1)' if the interface sublayer has a physical connector and the value 'false(2)' otherwise."; smiv2:max-access "read-only"; smiv2:oid "1.3.6.1.2.1.31.1.1.1.17"; }
but unfortunately, we are able to see snmpwalk output like
IF-MIB::ifConnectorPresent.5 = INTEGER: true(1)
IF-MIB::ifConnectorPresent.7 = INTEGER: 0 According to RFC-1212 we should see
IF-MIB::ifConnectorPresent.5 = BOOLEAN: true(1)
IF-MIB::ifConnectorPresent.7 = BOOLEAN: false(2)
I suspect that problem happens because the CLIXON SNMP module uses integer type to support SNMP boolean value.
The text was updated successfully, but these errors were encountered:
vvsosed
changed the title
snmpwalk doesn't show SNMP boolean values which equals to false
snmpwalk doesn't show properly SNMP boolean values which equal false
Jan 12, 2023
First that "false" is translated to INTEGER: 0, and should be INTEGERE: false(0)
Second, that the type itself is not BOOLEAN.
This is a comment in the code regarding netsnmp support:
Athough smidump translates TruthValue to boolean
* and there is an ASN_BOOLEAN constant:
* 1) there is no code for ASN_BOOLEAN and
* 2) Truthvalue actually translates to enum true(1)/false(0)
Would it be OK to fix the first false problem, since the second seems to be absent from the libnetsmp code available.
But I need to revisit that to be sure.
We use definition like
leaf ifConnectorPresent { type boolean; description "This object has the value 'true(1)' if the interface sublayer has a physical connector and the value 'false(2)' otherwise."; smiv2:max-access "read-only"; smiv2:oid "1.3.6.1.2.1.31.1.1.1.17"; }
but unfortunately, we are able to see snmpwalk output like
IF-MIB::ifConnectorPresent.5 = INTEGER: true(1)
IF-MIB::ifConnectorPresent.7 = INTEGER: 0
According to RFC-1212 we should see
IF-MIB::ifConnectorPresent.5 = BOOLEAN: true(1)
IF-MIB::ifConnectorPresent.7 = BOOLEAN: false(2)
I suspect that problem happens because the CLIXON SNMP module uses integer type to support SNMP boolean value.
The text was updated successfully, but these errors were encountered: