Closed dropthemic closed 8 months ago
When running snmpwalk on synology server v7.2-64570, the item.oid returns the name instead of string on some calls.
item.oid
Expected: <SNMPVariable value='/volume1' (oid='iso.3.6.1.2.1.25.2.3.1.3.53', oid_index='', snmp_type='OCTETSTR')>
<SNMPVariable value='/volume1' (oid='iso.3.6.1.2.1.25.2.3.1.3.53', oid_index='', snmp_type='OCTETSTR')>
Received: <SNMPVariable value='/volume1' (oid='hrStorageDescr', oid_index='53', snmp_type='OCTETSTR')>
<SNMPVariable value='/volume1' (oid='hrStorageDescr', oid_index='53', snmp_type='OCTETSTR')>
Fixed code to use oid_index or the oid
oid_index
oid
@all-contributors add @dropthemic for code
@wernerfred
I've put up a pull request to add @dropthemic! :tada:
When running snmpwalk on synology server v7.2-64570, the
item.oid
returns the name instead of string on some calls.Expected:
<SNMPVariable value='/volume1' (oid='iso.3.6.1.2.1.25.2.3.1.3.53', oid_index='', snmp_type='OCTETSTR')>
Received:
<SNMPVariable value='/volume1' (oid='hrStorageDescr', oid_index='53', snmp_type='OCTETSTR')>
Fixed code to use
oid_index
or theoid