Re: snmpd.conf parsing

2011-11-29 Thread Dave Shield
On 25 November 2011 03:42, Vivek Nagaraj wrote: > Community can be specified in the 'trapcommunity', access control > panel and also in the 'trapsink' command. Which of these is a priority > for picking up the community in SNMP main agent $ man snmpd.conf trapsink HOST [COMMUNITY [POR

Re: snmpd.conf parsing

2011-11-24 Thread Vivek Nagaraj
Ok. For the moment, concentrating only on the SNMP main agent, can you please let me know how the community is picked up in sending the traps? Community can be specified in the 'trapcommunity', access control panel and also in the 'trapsink' command. Which of these is a priority for picking up the

Re: snmpd.conf parsing

2011-11-24 Thread Dave Shield
On 24 November 2011 15:11, Vivek Nagaraj wrote: > Ok. Lets say I am building a sub agent (of course using net-snmp > libraries) OK - if you are talking about a subagent, then the access control configuration is not relevant. All of this is handled by the master agent. A subagent would never see

Re: snmpd.conf parsing

2011-11-24 Thread Vivek Nagaraj
Ok. Lets say I am building a sub agent (of course using net-snmp libraries) and the user is intended to make changes in the snmpd.conf and I am supposed to make common changes for snmpd as well as my subagent. Can you please let me know how community is chosen with the community string being prese

Re: snmpd.conf parsing

2011-11-24 Thread Dave Shield
On 23 November 2011 10:05, Vivek Nagaraj wrote: > Currently my application uses hardcoded community - 'public'. I need > to parse the snmpd.conf file for this. No - you don't. Each config file is intended for a particular application. The "snmpd.conf" file is specifically intended for the "snmpd

Re: snmpd.conf parsing

2011-11-24 Thread Niels Baggesen
On Thu, Nov 24, 2011 at 02:44:44PM +0530, Vivek Nagaraj wrote: > Can anybody please tell me the use of 'community' in snmpd.conf file > and the usage? Have you tried reading then snmpd.conf manual page? /Niels -- Niels Baggesen - @home - Ã…rhus - Denmark - n...@users.sourceforge.net The purpose

Re: snmpd.conf parsing

2011-11-24 Thread Vivek Nagaraj
Can anybody please tell me the use of 'community' in snmpd.conf file and the usage? -- All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, sec

Re: snmpd.conf parsing

2011-11-23 Thread Vivek Nagaraj
I could not find what I wanted somehow. I am quite new to snmp. Can anybody please let me know what is community used in snmpd.conf file and what is its use in trapsink and trapcommunity? Currently my application uses hardcoded community - 'public'. I need to parse the snmpd.conf file for this.

Re: snmpd.conf parsing

2011-11-23 Thread Dave Shield
On 23 November 2011 09:09, Vivek Nagaraj wrote: > I would like to know if the snmpd.conf parsing code is present in > net-snmp source or not. No - it all happens by magic. Magic, I tell you. Nyah ha ha Ha Ha HA HAHA Sorry - got carried away. Yes - the config parsing code is pres

snmpd.conf parsing

2011-11-23 Thread Vivek Nagaraj
Hello all, I would like to know if the snmpd.conf parsing code is present in net-snmp source or not. Since I would like to make my sub-agent work in a similar way to the main agent, I would like to have a look at the main agent code. Thanks, Vivek