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
SNMP scan read wrong value .incorrect reading of the values if they contain the character :
snmp : reading the value of the value in the OID .1.3.6.1.2.1.2.2.1.6 (mac) is wrong , only the substring of MAC which is after the first : is saved in the db
To Reproduce
Steps to reproduce the behavior:
configure reading of oid .1.3.6.1.2.1.2.2.1
the value stored in db is wrong
test: output of snmpwalk
snmpwalk -v 2c -On -c public 172.30.41.16 .1.3.6.1.2.1.2.2.1.6
.1.3.6.1.2.1.2.2.1.6.1 = STRING: 9c:93:4e:bc:10:6d
.1.3.6.1.2.1.2.2.1.6.2 = STRING:
.1.3.6.1.2.1.2.2.1.6.3 = STRING:
value stored in db 93:4e:bc:10:6d
Expected behavior
show the value 9c:93:4e:bc:10:6d
Screenshots
The text was updated successfully, but these errors were encountered:
I was able to reproduce the issue with the Unix agent. I proposed a fix for it (see OCSInventory-NG/UnixAgent#451). You can apply the changes locally if you want to test this out before it is merged.
The fix should be implemented in the next release of the Unix agent.
OCS Inventory version
Version :
SNMP scan read wrong value .incorrect reading of the values if they contain the character :
snmp : reading the value of the value in the OID .1.3.6.1.2.1.2.2.1.6 (mac) is wrong , only the substring of MAC which is after the first : is saved in the db
To Reproduce
Steps to reproduce the behavior:
configure reading of oid .1.3.6.1.2.1.2.2.1
the value stored in db is wrong
test: output of snmpwalk
snmpwalk -v 2c -On -c public 172.30.41.16 .1.3.6.1.2.1.2.2.1.6
.1.3.6.1.2.1.2.2.1.6.1 = STRING: 9c:93:4e:bc:10:6d
.1.3.6.1.2.1.2.2.1.6.2 = STRING:
.1.3.6.1.2.1.2.2.1.6.3 = STRING:
value stored in db 93:4e:bc:10:6d
Expected behavior
show the value 9c:93:4e:bc:10:6d
Screenshots
The text was updated successfully, but these errors were encountered: