about net-snmp not restore data and get data from traffic porcess every time when recv a snmp message form MANAGER?

2010-03-17 Thread daily study
Hello, all I must use net-snmp as agent in this style. traffic process1<(private protocol)->agent process<(snmp protocol)--->manager | traffic process2<(private protocol)> Traffic processes and

RE: snmpwalk does not walk the table when using dynamic load.

2010-03-17 Thread Wei Zheng
Hi Dave, Thanks you for the replies. Regarding your questions: 1) Cannot walk lmPlTable correctly either: it returns " No Such Object available on this agent at this OID". 2) I registered lmPl, very similar code as dlmod is registered in dlmod.c. (lmPl table is of same structure as dlmod.) 3

Re: Unknown Object Identifier for log counter

2010-03-17 Thread Mudassar
Hi, Thanks, Alerts has been gone... but i cannot get snmptraps. MY Dave Shield wrote: > On 17 March 2010 01:10, Mudassar wrote: > >> Attached is the snmp conf file. I think all your required information is in >> it, i am using opennms to get all this information. >> > What objects are

Re: About net-snmp table iterator performance

2010-03-17 Thread bai haoquan
Hi, Thank you for your reply. Now I had known that the iterator helper is inefficient for large tables and I should try other helpers for my apps. And if the data requested is internal my agent, which kind of helper should I choose instead of the iterator helper. Looking forward to your reply. B

Re: About net-snmp table iterator performance

2010-03-17 Thread Dave Shield
On 17 March 2010 14:44, bai haoquan wrote: > And if the data requested is internal my agent, which kind of helper should > I choose instead of the iterator helper. Personally, I'd recommend the 'table_tdata' helper (as used by the 'mib2c.table_data.conf' template). Possibly in conjunction with th

NET SNMP Sub agent And Master Agent Connection

2010-03-17 Thread Ashish vashishtha
Hello Dev and all, I am getting this crash sometimes from the sub agent code. i am creating my sub agent as a static library that works with the main application. from my application i am initializing this library. than through the register function from teh main application i am registering th

Re: something must be wrong with me

2010-03-17 Thread Dave Shield
2010/3/17 刘伟_杭州 > Today, I installed net-snmp on centOS 4.8, Is this a vendor-supplied package, or one you compiled yourself? > and I run it on the shell: > # snmpd -c /usr/local/etc/snmp/snmpd.conf -L If you compiled this from source, then the agent will probably be reading in this confi

something must be wrong with me

2010-03-17 Thread 刘伟_杭州
Hello, sorry to trouble you. Today, I installed net-snmp on centOS 4.8, and I run it on the shell: # snmpd -c /usr/local/etc/snmp/snmpd.conf -L then it complained that: Turning on AgentX master support. snmpd.conf: line 90: Error: Already have an entry for this process. snmpd.conf: lin

Insert values in the VACM vacmAccessTable at run time

2010-03-17 Thread Pavan mangala
hi, I am using net SNMP 5.5 version. How to insert values in the VACM vacmAccessTable at run time. My requirement is like run time register and unregister the MIB variables with context ID. Right now i am able to register the variables with contexID's. it is reflecting in the VACM-MIB vacmContex

Re: Unknown Object Identifier for log counter

2010-03-17 Thread Dave Shield
On 17 March 2010 01:10, Mudassar wrote: > Attached is the snmp conf file. I think all your required information is in > it, i am using opennms to get all this information. What objects are you querying to trigger these errors? (I presume they are being generated by the agent, though you haven't

Re: snmpwalk does not walk the table when using dynamic load.

2010-03-17 Thread Dave Shield
On 16 March 2010 19:09, Wei Zheng wrote: > When doing snmpgetnext, it returns the top of next table. > > # snmpgetnext -c public localhost lmPlNumber.0 > LOCAL-MIB::lmPlStatResetStats.0 = INTEGER: 0 > > (** It should be: > LOCAL-MIB::lmPlName."test1" = STRING: test1 > **) That would explain the