Re: Send trap to subnet

Chaitanya Gulhane <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <CABVY9HtPC_w393BDtCfdsigozmfXo451CQjHSqZTvCG6zo_xtA@mail.gmail.com>
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.0), or IP/BITS
(e.g. 10.10.10.0/24), or the IPv6 equivalents.



On Wed, Jan 8, 2014 at 10:50 PM, Chaitanya Gulhane <
[email protected]> wrote:

> 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, Jan 8, 2014 at 7:05 PM, Fulko Hew <[email protected]> wrote:
>
>>
>>
>> On Wed, Jan 8, 2014 at 3:35 AM, Chaitanya Gulhane <
>> [email protected]> 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 while receiving
>>> requests from managers in that subnet?
>>>
>>
>> If I understand your question... 'can I associate an address with a
>> community string'.
>> See  the definitions of 'Access Control' in
>> http://www.net-snmp.org/docs/man/snmpd.conf.html
>>
>> You can associate an address with a community,
>> but I don't know if you can associate a subnet with a community.
>> Try it.
>>
>> Besides, you probably don't/shouldn't have multiple management systems
>> on a subnet, and/or your NMSs shouldn't be moving around,
>> so specific address should be used anyway (if you need to specify them at
>> all!).
>>
>>
>>
>

------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk

_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.