inexio / pysnmp Goto Github PK
View Code? Open in Web Editor NEWThis project forked from etingof/pysnmp
Python SNMP library
Home Page: https://snmplabs.thola.io/pysnmp/
License: BSD 2-Clause "Simplified" License
This project forked from etingof/pysnmp
Python SNMP library
Home Page: https://snmplabs.thola.io/pysnmp/
License: BSD 2-Clause "Simplified" License
Hi
Glad to see this has been picked, will you be releasing any updates as PyPI packages?
Thanks
Hi,
i have been trying to pull mac address information from Cisco Switch, with the code below:
oid = ObjectType(ObjectIdentity("1.3.6.1.2.1.17.4.3.1.1"))
next(nextCmd(
SnmpEngine(),
UsmUserData('username', authKey='pass', privKey='pass', authProtocol=usmHMACMD5AuthProtocol,
privProtocol=usmAesCfb128Protocol),
UdpTransportTarget((target, 161)),
ContextData(contextName='vlan-200'),
0, 25,
oid,
lexicographicMode=False,
))
but it throw the below error, i cant figure out what the issue is
Traceback (most recent call last):
File "C:/py_test_folder/test.py", line 115, in <module>
print(get_bulk_oid(host_name, mac_oid))
File "C:/py_test_folder/test.py", line 39, in get_bulk_oid
cdp_remote_host = next(nextCmd(
File "C:\Users\neteng\.virtualenvs\py_test_folder\lib\site-packages\pysnmp\hlapi\asyncore\sync\cmdgen.py", line 349, in nextCmd
initialVars = [x[0] for x in vbProcessor.makeVarBinds(snmpEngine, varBinds)]
File "C:\Users\neteng\.virtualenvs\py_test_folder\lib\site-packages\pysnmp\hlapi\varbinds.py", line 33, in makeVarBinds
elif isinstance(varBind[0], ObjectIdentity):
TypeError: 'int' object is not subscriptable
appreciate any help.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.