I'm using snmp_walk function from easysnmp python library to get the current value from Jacarta powerZook meter but it returns an empty list (no values) but when I use Qtmib (SNMP MIB browser) I can get the value. I'm using Ubuntu 18.04 and tried all python interpreters (2.7, 3.5, 3.6, 3.7) but still nothing. also I ran the python script with "sudo" privileges but still no results. FYI the power meter connected directly to the ethernet port of my PC. my code:
from easysnmp import snmp_walk
snmp_walk(oids='.1.3.6.1.4.1.19011.1.3.5.1.3.1.0 - Current/AMPS', hostname='192.168.1.200',
community='public', version=1, timeout=3, retries=5, remote_port=161, use_long_names=True,
retry_no_such=True, abort_on_nonexistent=True)
output:
[]
Note: I followed all instructions and settings of the powerZook's installation guide and searched internet to find a solution but unfortunately I didn't find anything can help me
screenshot for Qtmib and return values from powerZook enter image description here
The solution was as follow:
installing npcap (I'm not sure if this is part of the solution)
remove the last zero from OIDs and the two words "Current/AMPS"
the original OIDs from device installation guide was like:
after modification become like:
I would like to thank and give my gratitude to @hansolo for his time and effort to help me.