Re: community name with special characters

Harish Jadhav <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Ashok,

Hope you got the answer from Markus. That's the reason I asked you how 
are you concluding that community string is not working
as I suspected the way you are passing the community string could be 
wrong. Please use quote in case community string has $.



On 10/17/2011 5:32 PM, ashok kumar wrote:
> Hello Harish,
>
> It is me (Ashok) who reported this issue (community name is not 
> working with special characters).
>
> How did I verified:
>
> 1. I added two entries snmpd.conf as below:
>      rwcommunity ashok123
>      rwcommunity ashok$123
>
> 2. I executed the snmpd and tried the following things:
>      [ashok@localhost commands]$ snmpget -v2c -c ashok123 localhost 
> 1.3.6.1.2.1.1.3.0
>      DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (52765) 0:08:47.65
>      [ashok@localhost commands]$
>
>      [ashok@localhost commands]$ snmpget -v2c -c ashok$123 localhost 
> 1.3.6.1.2.1.1.3.0
>      Timeout: No Response from localhost.
>      [ashok@localhost commands]$
>
> I get a response with community "ashok123" but not with "ashok$123"
>
> Regards,
> Ashok
>
>
> On Mon, Oct 17, 2011 at 4:30 PM, Harish Jadhav 
> <[email protected] <mailto:[email protected]>> wrote:
>
>     Venkat,
>
>     How are you verifying that community string is not working?
>
>     As far as I know, I am very much sure that community string can
>     have special characters also.
>
>
>     On 10/17/2011 2:47 PM, ashok kumar wrote:
>>     Hello Venkat,
>>
>>     I am trying with alpha numeric (only alphabets and numbers) and
>>     it is working. When I add some special character in the community
>>     name (say '$'), its not working.
>>
>>     Can any one tell me if there is any way to make it work even with
>>     special characters. Thanks.
>>
>>     Regards,
>>     Ashok
>>
>>     On Thu, Oct 13, 2011 at 3:01 PM, venkat easwar
>>     <[email protected] <mailto:[email protected]>> wrote:
>>
>>         Hi Ashok,
>>
>>         As far as I am aware, the SNMP community name should be Alpha
>>         numeric.
>>
>>         Thanks
>>         VENKAT
>>         *From:* ashok kumar <[email protected]
>>         <mailto:[email protected]>>
>>         *To:* [email protected]
>>         <mailto:[email protected]>
>>         *Sent:* Thursday, October 13, 2011 1:36 PM
>>         *Subject:* community name with special characters
>>
>>         Hello All,
>>
>>         I am adding a community
>>         "benu1benu2benu3$enu4benu5benu6benu7benu8" in
>>         snmpd.conf file but I am not able to use snmpget through this
>>         community.
>>
>>         Is this because, there is a special character '$' in the
>>         community
>>         name and if so, what are the special characters net-snmp will not
>>         allow for community name. Thanks.
>>
>>         Regards,
>>         Ashok
>>
>>         ------------------------------------------------------------------------------
>>         All the data continuously generated in your IT infrastructure
>>         contains a
>>         definitive record of customers, application performance, security
>>         threats, fraudulent activity and more. Splunk takes this data
>>         and makes
>>         sense of it. Business sense. IT sense. Common sense.
>>         http://p.sf.net/sfu/splunk-d2d-oct
>>         _______________________________________________
>>         Net-snmp-users mailing list
>>         [email protected]
>>         <mailto:[email protected]>
>>         Please see the following page to unsubscribe or change other
>>         options:
>>         https://lists.sourceforge.net/lists/listinfo/net-snmp-users
>>
>>
>>
>>
>>
>>     ------------------------------------------------------------------------------
>>     All the data continuously generated in your IT infrastructure contains a
>>     definitive record of customers, application performance, security
>>     threats, fraudulent activity and more. Splunk takes this data and makes
>>     sense of it. Business sense. IT sense. Common sense.
>>     http://p.sf.net/sfu/splunk-d2d-oct
>>
>>
>>     _______________________________________________
>>     Net-snmp-users mailing list
>>     [email protected]  <mailto:[email protected]>
>>     Please see the following page to unsubscribe or change other options:
>>     https://lists.sourceforge.net/lists/listinfo/net-snmp-users
>
>

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2d-oct

_______________________________________________
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.