Hello Markus,

Yes, you are right! I should have used snmpget as below:
[ashok@localhost agent]$ snmpget -v2c -c 'ashok$123' localhost sysUpTime.0
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (531373) 1:28:33.73
[ashok@localhost agent]$

This ' ' is required only for the community name which as '$' other
wise like ashok#123, its not required. Thanks.

Regards,
Ashok


On Mon, Oct 17, 2011 at 5:39 PM, Markus Gaugusch <[email protected]> wrote:
> Hi Ashok!
> You must quote strings containing $ signs on a linux shell. Use 'single
> quotes', otherwise your string will be interpreted as a variable name.
>
> br,
> Markus
>
> On Oct 17, ashok kumar <[email protected]> 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]>
>> 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]> wrote:
>>      Hi Ashok,
>>
>> As far as I am aware, the SNMP community name should be
>> Alpha numeric.
>>
>> Thanks
>> [IMAGE][IMAGE]VENKAT[IMAGE][IMAGE]
>> From: ashok kumar <[email protected]>
>> To: [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]
>> 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
>>
>>
>>
>>
>>
>
> --
> __________________    /"\
> Markus Gaugusch       \ /    ASCII Ribbon Campaign
> markus(at)gaugusch.at  X     Against HTML Mail
>                      / \
> ------------------------------------------------------------------------------
> 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
>
>

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

Reply via email to