Re: SNMP sub-agent error in config file

2011-03-02 Thread Dave Shield
On 2 March 2011 00:25, Eldon Hiebert wrote: > /usr/share/snmp/mp.conf: line 4: Warning: Unknown token: agentXPingInterval. > NET-SNMP version 5.6 AgentX subagent connected The token "agentXPingInterval" belongs in the *agent* config file (snmpd.conf), rather than the general library config file (

Re: queries to only one table

2011-03-02 Thread Dave Shield
On 2 March 2011 07:56, Egor wrote: > Ok. So, is there way to query only one table with some snmp tool ? "Query one table" from the point of view of the client? Or from the point of view of the agent? As far as the client is concerned, then both "snmpwalk" and "snmptable" will do this. They wil

Re: Sharing a cache between different OIDs

2011-03-02 Thread Dave Shield
On 2 March 2011 11:28, Alec Edgington wrote: > The MFD framework makes it easy to implement a table with its own > cache. But I cannot see an obvious way to get several different tables > (and scalars) to share a single cache. Have a look at the code for the ifXTable (if-mib/ifXTable/*) This sha

seg fault while sending traps

2011-03-02 Thread Malathi Panyam
Sent before through my personal mail ID Hi, We experienced a seg fault (only one known occurrence so far) while sending the V2 traps out. I found the following link with exact location where I see the crash on our device. http://sourceforge.net/tracker/index.php?func=detail&aid=3078424&group

RE: Changing community strings automatically

2011-03-02 Thread Giuseppe Modugno
On 2 Mar 2011 at 9:26, Ron Rader wrote: > It´s fairly easy to programmatically rewrite the rwcommunity and rocommunity > strings in > snmpd.conf, then restart the agent through the normal init script mechanism. > This is how my > project works. Maybe my question is a FAQ, but may you suggest a m

RE: Changing community strings automatically

2011-03-02 Thread Ron Rader
It's fairly easy to programmatically rewrite the rwcommunity and rocommunity strings in snmpd.conf, then restart the agent through the normal init script mechanism. This is how my project works. I can't answer your question regarding SET requests since I haven't used them myself. Ron _

Sharing a cache between different OIDs

2011-03-02 Thread Alec Edgington
Hello, I am trying to implement a subagent, making as much use as I can of mib2c (and so far I've been trying to use the MFD framework). The problem is that my MIB consists of groups of tables and scalars which I want to share a small number of underlying caches. The MFD framework makes it easy

Re: queries to only one table

2011-03-02 Thread Egor
> > A GetNext request will return the next valid instance that the agent > knows about. Not "the next instance within the same table". > The Next Instance. > Ok. So, is there way to query only one table with some snmp tool ? Best regards, Egor. --

[no subject]

2011-03-02 Thread jack n
http://blaske.dk/google.php -- Free Software Download: Index, Search & Analyze Logs and other IT data in Real-Time with Splunk. Collect, index and harness all the fast moving IT data generated by your applications, serve

SNMP sub-agent error in config file

2011-03-02 Thread Eldon Hiebert
Hello, I am getting this error /usr/share/snmp/mp.conf: line 4: Warning: Unknown token: agentXPingInterval. NET-SNMP version 5.6 AgentX subagent connected and cannot figure out why. How do i make PingInterval work? TIA. -

RE: Changing community strings automatically

2011-03-02 Thread Ron Rader
This isn't really net-snmp specific. You need to write a small program that parses ASCII text and changes known values. How you do it depends on your implementation. I suggest you start Googling phrases like "bash script text parser" and "text parser example C." There are plenty of examples out

Re: snmptrapd - parse fail not logging trap

2011-03-02 Thread Dave Shield
On 1 March 2011 12:41, Andy Brown wrote: > thanks for the fast reply. I'd not be surprised if the device sending the > traps sends them malformed or buggy, so we could be onto something. I've > logged with both debugs and the traps are definitely in there: OK - I think I might have found the prob