python3-netsnmp
python3-netsnmp copied to clipboard
Python3 port of the Net-SNMP bindings
When using `s#` formats with `Py_BuildValue`, since 3.10 PY_SSIZE_T_CLEAN has to be defined before including `Python.h`. Otherwise `Py_BuildValue` returns `0` which results in Segfault. See https://bugs.python.org/issue36381
We are planning to migrate our app to Alpine linux 3.18.3 and doing some testing in lowers recently. Found the python3 process core dumps when making snmp get and getbulk...
Reproduction: ```python >>> import netsnmp >>> session = netsnmp.Session(Version = 2, DestHost='localhost', Community='public') >>> vbind = netsnmp.Varbind('sysUpTime', 0, 1, 'INTEGER') >>> session.set(netsnmp.VarList(vbind)) TypeError: expected bytes, int found The above exception...
Hello. I'm sure a lot of people have encountered the segmentation fault problem when working with Python 3.10. I wanted to reflect this problem here, maybe someone will pay attention...
Based on the issue [414](https://github.com/net-snmp/net-snmp/issues/414 ) in the main [net-snmp repository ](https://github.com/net-snmp/net-snmp) regarding SNMP GET returning empty string when the IID is wrong. Additional: Add `#define PY_SSIZE_T_CLEAN` before including `Python.h`
你好,命令行运行snmwalk 指定oid可以正常获取到数据,netsnmp.snmwalk 返回数据为(),这个怎么解决?
Hi folks! As you probably guessed this project is not on the top of my list to maintain. It seems there are some people out there using it and some...
When the parameter RemotePort is modified (with another value than 161), snmpget/walk still uses 161 as a remote port.
Reproduction: ```python >>> import netsnmp >>> session = netsnmp.Session(Version = 2, DestHost='localhost', Community='public') >>> vbind = netsnmp.Varbind('sysUpTime', 0) >>> session.set(vbind) Segmentation fault ``` ```python >>> import netsnmp >>> session =...
error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": https://visualstudio.microsoft.com/downloads/