Re: Send trap to subnet

2014-01-08 Thread Chaitanya Gulhane
Hi, I have just taken a look into the link provided in your last mail for man page of snmpd.conf. It is also having the description for community string as follows A restricted source can either be a specific hostname (or address), or a subnet - represented as IP/MASK (e.g. 10.10.10.0/255.255.255

Re: Send trap to subnet

2014-01-08 Thread Chaitanya Gulhane
Hi, I have seen following line in /usr/local/share/snmp/snmpd.conf # rocommunity: a SNMPv1/SNMPv2c read-only access community name # arguments: community [default|hostname|network/bits] [oid] I think we can map subnet to community string. Am I right? Please correct me if I am wrong. On Wed,

Re: Send trap to subnet

2014-01-08 Thread Fulko Hew
On Wed, Jan 8, 2014 at 3:35 AM, Chaitanya Gulhane < chaitanya.gulh...@gmail.com> wrote: > Thanks Fulko. I just have a query as of now that in snmpd.conf, we can > store subnet mapping with community string. How to handle the same then? Do > we need to parse the string containing subnet explicitly

Re: Send trap to subnet

2014-01-08 Thread Chaitanya Gulhane
Thanks Fulko. I just have a query as of now that in snmpd.conf, we can store subnet mapping with community string. How to handle the same then? Do we need to parse the string containing subnet explicitly while receiving requests from managers in that subnet? On Tue, Jan 7, 2014 at 11:53 PM, Fulko

Re: Send trap to subnet

2014-01-07 Thread Fulko Hew
On Tue, Jan 7, 2014 at 1:05 PM, Chaitanya Gulhane < chaitanya.gulh...@gmail.com> wrote: > Hi, > > I want to send traps in my subnet. I am having IP of my m/c as 10.0.2.15. > I want to send it in 10.0.2.0/24 subnet. I have tried command as follows > > snmptrap -v 2c -c public 10.0.2.0/24 "" [OID-va