question: writing a sub agent

2015-08-20 Thread Mostafa Salari
Hello, I want to write a subagent that handles a number of MIBs. So a function in my subagent should be called by snmpd, when that MIBs are requested. 1. WHAT IS THAT FUNCTION? Another little question: 2. What Does [agent_check_and_process(1);] function do? Is it necessary to be in the main

question: how to register other types?

2015-08-20 Thread Mostafa Salari
In a subagent, I can register (for example) Counter32 MIBs with the following function: netsnmp_register_read_only_counter32_instance(...) So, how can I register (for example) STRING or TimeTick MIBs. I did'nt find a suitable function here:

SNMPv3 and Extension Agent

2015-08-20 Thread Sanjay Singh
Hi All, We currently have a Windows Extension Agent Dll which uses the Windows SNMP service. It all work in SNMP version 1. We need to migrate to SNMP v3 now. As Window SNMP Service doesn't support Version 3, I am planning to use Net-SNMP. My need some help: 1. Will Net-SNMP(version 3) be

RE: Concatenating MIBs over multiple contexts

2015-08-20 Thread Antonio Piepoli (apiepoli)
Hello everybody, sorry for the double mail; maybe I have provided too much background and not enough info about the problem that I am facing. Assuming this: pass_persist .1.3.6.1.3.54 /home/ciscolab/test.py proxy -Cn ctx -v 2c -c public localhost .1.4 .1.3.6.1.3.54 proxy -Cn ctx -v 2c -c

Re: Concatenating MIBs over multiple contexts

2015-08-20 Thread Fedor Sumkin
Hi Antonio, Probably this issue may be related to the usage of the root oids with length of two(.1.3 and .1.4). Can you please check if proxying works on oids with length2? Regards, Fedor On Thu, Aug 20, 2015 at 3:30 PM, Antonio Piepoli (apiepoli) apiep...@cisco.com wrote: Hello everybody,

RE: Concatenating MIBs over multiple contexts

2015-08-20 Thread Antonio Piepoli (apiepoli)
Hello Fedor, thanks for your support. Unfortunately that does not solve the problem I am trying with this conf now: proxy -Cn ctx -v 2c -c public localhost .1.4.1 .1.3.6.1.3.54 proxy -Cn ctx -v 2c -c public localhost .1.3.6.1.3.40 .1.3.6.1.3.54 proxy -Cn ctx -v 2c -c public localhost

snmpd Duplicate IPv4 address detected

2015-08-20 Thread kojot
Hi, I have problem when starting snmpd deamon on debian. My snmpd version 5.7.2.1+dfsg-1. After starting snmpd daemon snmpd uses 96% of cpu all the time. I can't snmpwalk server. In logs i see: snmpd[5087]: Duplicate IPv4 address detected, some interfaces may not be visible in IP-MIB