snmpv3 authPriv issue - Printable Version +- Logic Machine Forum (https://forum.logicmachine.net) +-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1) +--- Forum: Scripting (https://forum.logicmachine.net/forumdisplay.php?fid=8) +--- Thread: snmpv3 authPriv issue (/showthread.php?tid=2631) |
snmpv3 authPriv issue - spapantoniou85 - 06.05.2020 Hello to all, I have been working in the last period to integrate a series of UPS of APC using the snmp protocol. The version required is v3. I have used this site: http://luasnmp.luaforge.net/objects.html to get information for the parameters of snmp. Code: ups1, err = snmp.open{ On security level when I am using noAuthNoPriv or authNoPriv everything is working correctly. When I use authPriv adding all the parameters correctly (cross-checked with other 3rd party software) I have problem with the communication. The log message I got was: Code: error reading from snmp: snmp: internal error - synch request id is 0 This error arrives even when the parameters I have inserted are wrong. Google searching:"synch request id is 0" I have found the error on the source code but no explanation why this is happening.https://github.com/hleuwer/luasnmp/blob/master/src/nm_snmp.c Has anybody else found a similar problem? How can I solve this issue? Thank you Sotiris RE: snmpv3 authPriv issue - admin - 07.05.2020 Current version of SNMP library does not have encryption support. We'll try to update it for the next FW release. RE: snmpv3 authPriv issue - spapantoniou85 - 07.05.2020 (07.05.2020, 07:46)admin Wrote: Current version of SNMP library does not have encryption support. We'll try to update it for the next FW release. Hello admin, thank you for the answer. Do you have an estimation on when the next FW release will be? Thank you Sotiris RE: snmpv3 authPriv issue - cekca - 31.10.2024 Hi, i'm testing 2 identical UPS like the post above ( one with a new network card and one with old model ) After get function with old network card everything is working and the log of the variable vbind is: * table: ["oid"] * string: 1.3.6.1.4.1.935.1.1.1.8.6.1.0 ["type"] * number: 3 ["value"] * number: 16 with the new network card and new oid the log is: * table: ["oid"] * string: 1.3.6.1.4.1.318.1.1.1.9.2.2.1.4 ["type"] * number: 129 i don't have the row value... any idea? From PC and MibBrowser everithing is ok, the only thing is when i load the MIB file of the UPS the software ask me to load also SNMP-FRAMEWORK-MIB.mib RE: snmpv3 authPriv issue - admin - 31.10.2024 Are you sure that OID is correct? 129 is No such instance exception. RE: snmpv3 authPriv issue - cekca - 31.10.2024 Now i try another OID, this is the result: table: ["oid"] * string: 1.3.6.1.4.1.318.1.1.1.1.2.9 ["type"] * number: 129 attached the same OID from MibBrowser RE: snmpv3 authPriv issue - cekca - 31.10.2024 i'm working with SL 2.8.0 + libnetsnmp_5.4.4-1_imx6.ipk + luasnmp_1.0.6-2-4_imx6.ipk RE: snmpv3 authPriv issue - admin - 31.10.2024 Try running walk on higher OID levels like "1.3.6.1.4.1.318.1.1.1.1": https://forum.logicmachine.net/showthread.php?tid=1573&pid=15779&highlight=walk#pid15779 RE: snmpv3 authPriv issue - cekca - 31.10.2024 (31.10.2024, 10:53)admin Wrote: Try running walk on higher OID levels like "1.3.6.1.4.1.318.1.1.1.1": https://forum.logicmachine.net/showthread.php?tid=1573&pid=15779&highlight=walk#pid15779 ok i will try in the afternoom, it works also with SNMPv3 ? RE: snmpv3 authPriv issue - cekca - 31.10.2024 ok, from oid '1.3.6.1.4.1.318.1.1.1.1' i'm reading something: * table: ["1.3.6.1.4.1.318.1.1.1.1.2.3.0"] * string: 9E2234T15816 ["1.3.6.1.4.1.318.1.1.1.1.2.9.0"] * string: 10000 ["1.3.6.1.4.1.318.1.1.1.1.2.1.0"] * string: V55.006.044/V55.006.040 ["1.3.6.1.4.1.318.1.1.1.1.2.5.0"] * string: 10KH ["1.3.6.1.4.1.318.1.1.1.1.1.1.0"] * string: Easy UPS 3S 10K RE: snmpv3 authPriv issue - admin - 31.10.2024 This means that instead of 1.3.6.1.4.1.318.1.1.1.1.2.9 you should use 1.3.6.1.4.1.318.1.1.1.1.2.9.0 (.0 added at the end) |