MIB Handler routine for an user defined MIB

2011-04-19 Thread Anil Murala
Hi All, I have written a sub agent, which registers an snmp table with netsnmp. when any snmp SET/GET occurs to the objects present in the table, i want it to write/read the OID values from my own data store(may be file). can some one please point me, where will my MIB handler routine ge

simple windows C app build

2011-04-19 Thread Thomas Andrews
Hi, I'm trying to build a trivial C proggie in windows xp. The code builds fine in debian. It is based on this example: http://www.cuddletech.com/articles/snmp/node26.html When I do this: gcc -Wall -I c:\usr\include snmp_test.c -o snmp_test I get this: c:\usr\include/net-snmp/net-snm

Re: Compiling NetSNMP for x64 Windows

2011-04-19 Thread Xiang Li
Hi, C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\lib\amd64, Also copy the "openssl" header files folder as you would do for 32-bit builds. After that the build should work. Thanks for the feedback - I'll update README.win32. But I'll document to copy the Ope

Re: Synchronize access to agent from multiple management consoles

2011-04-19 Thread Boris Zweimüller
Hi Markus Thanks for the idea. For this solution the clients need to change their requests which might be a Problem.. I only develop the agent. Maybe i can store the incoming sender address an only let Future set requests Be proccessed if they come from the same host until a crutical sequence i

Snmpgetnext on Table with "holes"

2011-04-19 Thread Boris Zweimüller
Hi all My Mib defines a table which has columns with non consecutive OIDs. This came with some column removal and an nanagement System which relies on specific OIDs. When i issue a getnext or Walk on this table it only returns the first consecutive columns and then jumps to the next table when

Re: Compiling NetSNMP for x64 Windows

2011-04-19 Thread Bart Van Assche
On Mon, Apr 18, 2011 at 10:40 PM, Xiang Li wrote: > Hi, > We have recently successfully built net-snmp5.6.1 and netsnmp 5.5.1 > on windows x64 systems when working on our SNMP API products. > > No special things need to be done. You just need to build net-snmp > in a x64 build environment. For ex

Re: Compiling NetSNMP for x64 Windows

2011-04-19 Thread Bart Van Assche
On Mon, Apr 18, 2011 at 12:46 PM, Markus Gaugusch wrote: > On Apr 18, Bart Van Assche wrote: > > On Mon, Apr 4, 2011 at 3:37 PM, Markus Gaugusch >> wrote: >> >>> I downloaded NetSNMP 5.6.1 and were successful to compile it for 32 bit >>> platforms. WinExtDLL works also fine. Now I'd like to go

can not find snmpconf-data after make install

2011-04-19 Thread Chi . Guan
I installed perl and I can run snmpconf , but I got error. no such directory /usr/local/share/snmp/snmpconf-data, did you run make install? I am sure I have run make install. What was wrong? Thanks -- Benefiting from Serv

error on subcontainer '' insert (-1) with severity LOG_DEBUG in 5.6.1

2011-04-19 Thread ESWAR RAO
Hi, I am using Net snmp 5.4 version and the openhpi subagent. >From the logs I could see the error messages(error on subcontainer '' insert (-1)) while adding rows for only the event table (saHpiEventTable). >From the net-snmp code: int CONTAINER_INSERT(netsnmp_container *x, const void *k) { .

Re: Synchronize access to agent from multiple management consoles

2011-04-19 Thread Markus Gaugusch
Hi Boris! You could use a random number as part of your OID, and all requests with this (same) random number belong together. The manager could even request a valid number before doing the set commands, so you can validate it. I think I've already seen this technique somewhere, but can't find

Synchronize access to agent from multiple management consoles

2011-04-19 Thread Boris Zweimueller
Hi all In my setup, a specific configuration of my agent is done with sequences of consecutive SNMP set commands. It is important, that they come all together. It must not be possible, that another management console can configure something in between. How can this be realized? I thought of som