there are two files: snmpd.conf, subagent.conf exist in /var/net-snmp.
snmpd.conf is for master agent, snmpd,  
and I used the following line:
init_agent("subagent");
init_snmp("subagent");
...
in my sub agent source, and thus the subagent.conf is genearated.
but in snmpd.conf:
...
engineBoots 1                            ---------  always 1
oldEngineID 0x8000027d0430303142323131343539304330393031313230323235   
...
 
in subagent.conf
...
engineBoots 7                           --------- can change if subagent 
restarts
oldEngineID 0x80001f8880f165d261cf478c49         ------  I don't know where 
this engineId come from, maybe net-snmp genereate it?
...

why the subagent can increase its engineBoots but snmpd cannot?
is this situation the root cause for the traps missing for the snmp client 
after snmpd/subagent restart?
how should I configure my own snmpd.conf or how should I write my subagent to 
avoid this problem?
thanks

> ______________________________________________ 
> From:         XIANG Lei  
> Sent: 2009年2月5日 21:29
> To:   'net-snmp-users@lists.sourceforge.net'
> Subject:      FW: ask help about engineBoots problem
> 
> 
> And I check the /var/net-snmp/snmpd.conf, the engineBoots in this file 
> remained 1, never changed.
> And also I tried to add engineBoots 2 in my own snmpd.conf, and run snmpd 
> with -D, I found that after engineBoots 2 was parsed from my snmpd.conf and 
> increased by 1 to 3,  the global variable engineBoots is still 1 before it 
> was put into /var/net-snmp/snmpd.conf with the old engineID, etc. 
> I cannot explain why,  I am new to this tool. 
> Thanks in advance for your answers and comments. And It will be better if it 
> doesn't need some modifcation to the source.
> 
> ______________________________________________ 
> From:         XIANG Lei  
> Sent: 2009年2月5日 20:25
> To:   'net-snmp-users@lists.sourceforge.net'
> Subject:      ask help about engineBoots problem
> 
> 
>  hi, all,
>      I am using net-snmp 5.2.4, I met an issue:
>      
>      When I restart snmpd and its agent, engineBoots can not increase by 1, 
> why? 
>      I'd like to know how can i configure the snmpd, I can make engineBoots 
> increase after each time restart.
> 
>      And if engineBoots doesn't increment, after the restart of snmpd/its 
> agent, the client can not restart the time synchronization, so the traps 
> would be discarded by the client, am I right?
> 
>      Please help, it will be very appreciated.
------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to