Re: Alternative implementation of IF-MIB

2012-01-03 Thread Michael Steiger
On 03.01.2012 19:45 Robert Story said the following: > On Tue, 27 Dec 2011 14:58:03 +0100 Michael wrote: > MS> What I need is a framework where I add my 26 rows at init time and every > MS> GET request will lookup the values in the shared memory (which is > MS> continously updated from a differe

Re: Get IP address from within MIB module

2012-01-03 Thread Robert Story
On Tue, 3 Jan 2012 18:50:01 + Holger wrote: HK> Hi, HK> HK> I have a Linux PC with one physical interface (eth0) and two IP HK> aliases (eth0:0 and eth0:1) each with a different IP address. I am now HK> writing a C MIB module to handle SNMP requests for my MIB. I would HK> like to handle the r

Re: range handling for unsigned objects

2012-01-03 Thread Robert Story
On Wed, 21 Dec 2011 01:43:18 +0530 Ravi wrote: RK> Can any one tell me how can I put a range restriction in case of an RK> unsigned object RK> such that if object value provided is beyond 4294967295 snmpset RK> should show "value out of range" message or agent should return RK> "unsupported object

Re: Which modifications is essential when use mib2c.mfd.conf to extend Net-SNMP Agent

2012-01-03 Thread Robert Story
On Mon, 19 Dec 2011 11:01:35 +0800 (CST) 雷哲 wrote: > Hello, > I'm trying to extend Net-SNMP Agent, and I wrote an MIB with a table, and the > data in the table is from another process, I used mib2c.mfd.conf to generate > some files, such as xxx.access.h/c xxx.get.c/h. > But I don't konw which fil

Get IP address from within MIB module

2012-01-03 Thread Holger Klaas
Hi, I have a Linux PC with one physical interface (eth0) and two IP aliases (eth0:0 and eth0:1) each with a different IP address. I am now writing a C MIB module to handle SNMP requests for my MIB. I would like to handle the requests differently depending on which of the interfaces (or IP address)

Re: Alternative implementation of IF-MIB

2012-01-03 Thread Robert Story
On Tue, 27 Dec 2011 14:58:03 +0100 Michael wrote: MS> What I need is a framework where I add my 26 rows at init time and every MS> GET request will lookup the values in the shared memory (which is MS> continously updated from a different process). MS> MS> Is there such a framework available? Ye