Change community while forwarding a trap

2012-11-26 Thread Stavros Tsolakos
Hi list. I need to forward a trap to another trap receiver in my network. So far, I am doing it using a 'forward' directive in my snmptrapd.conf. I was wondering if it is at all possible to specify the community string of the final receiver when forwarding. Thanks, Stavros -

Re: snmpwalk does not stop

2012-11-25 Thread Stavros Tsolakos
Hi. > Snmpwalk for OID: 1.3.6.1.4.1.49463.2.1.9.1 > After it is finished with all scalars under this OID it continues to the > next subtree, which is 1.3.6.1.4.1.49463.2.1.10 and beyond..to the end. I am far from an SNMP expert, but shouldn't some function return SNMP_ENDOFMIBVIEW? This would

Re: dynamically loadable object written in c++

2012-06-14 Thread Stavros Tsolakos
Hi. > > Is it possible to create C++ code file with mib2c compiler? It is, but you will have to manually write the template you need. > What I am curious about is that whether loading .so > (shared object) to the agent". Why not? extern "C" is your friend! Regards, Stavros -

Read tables from the IP-MIB

2010-07-04 Thread Stavros Tsolakos
Hi all. I am still a newbie... I was trying to write a C application that reads some tables from my internet router. I have found out that the tables I need to read are somewhat "standard". For example, I wanted to read the interface table and the routing table. I have a couple of questions: Bro

Very Newbie: Converting a complex MIB file with mib2c

2010-07-02 Thread Stavros Tsolakos
Hi all. I am really new to SNMP and net-snmp. I have a MIB file from a network switch and i wanted to make a custom subagent to make the snmpd of my workstation report some dummy data, as if it were the switch. I have managed to build a subagent reporting a dummy integer value. But when trying to