Hi Morten,
I have applied the patch, but it shows the next error in ipdevpoll.log when I restart NAV services.
ile "/usr/lib/python2.7/dist-packages/twisted/internet/base.py", line 800, in runUntilCurrent call.func(*call.args, **call.kw) File "/usr/lib/python2.7/dist-packages/nav/ipdevpoll/schedule.py", line 137, in run_job deferred = maybeDeferred(job_handler.run) File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 134, in maybeDeferred result = f(*args, **kw) File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1187, in unwindGenerator return _inlineCallbacks(None, gen, Deferred()) --- <exception caught here> --- File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1045, in _inlineCallbacks result = g.send(result) File "/usr/lib/python2.7/dist-packages/nav/ipdevpoll/jobs.py", line 233, in run self._create_agentproxy() File "/usr/lib/python2.7/dist-packages/nav/ipdevpoll/jobs.py", line 111, in _create_agentproxy self.agent.open() File "/usr/lib/python2.7/dist-packages/nav/ipdevpoll/snmp/pynetsnmp.py", line 85, in open super(AgentProxy, self).open() File "/usr/lib/pymodules/python2.7/pynetsnmp/twistedsnmp.py", line 191, in open self.session.open() File "/usr/lib/pymodules/python2.7/pynetsnmp/netsnmp.py", line 415, in open self.args = initialize_session(sess, self.cmdLineArgs, self.kw) File "/usr/lib/pymodules/python2.7/pynetsnmp/netsnmp.py", line 396, in initialize_session args = parse_args(cmdLine, byref(sess)) File "/usr/lib/pymodules/python2.7/pynetsnmp/netsnmp.py", line 378, in parse_args raise ArgumentParseError("Unable to parse arguments", toList(argv)) pynetsnmp.netsnmp.ArgumentParseError: ('Unable to parse arguments', ['/usr/lib/nav/ipdevpolld', '-Cc', '-v', '2c', '-c', 'public', '-t', '25.0', '-r', '3', '10.96.165.11:161'])
-----Mensaje original----- De: Morten Brekkevold [mailto:morten.brekkevold@uninett.no] Enviado el: martes, 01 de diciembre de 2015 12:35 Para: Daniel Espi Climent despi@datanetconsultores.es CC: nav-users@uninett.no Asunto: Re: Problem to get mac address table from 1920 HP switch
On Mon, 30 Nov 2015 11:37:11 +0000 Daniel Espi Climent despi@datanetconsultores.es wrote:
Hi Morten,
Unfortunately, switches are in the lastest version. I'm going to try to modify the pynetsnmp file to include the -Cc option. Do you exactly what is the file I have to modify? My NAV version is 4.3.2.
You could try something like the following patch: