> > ...I tried things like:
> > 
> >    Foo$Bar & Grill
> > 
> > and
> > 
> >    #<b>Hi!</b>
> > 
> > These strings look find in my snmpd.conf:
> > ...
> > but my clients time out:
> > 
> > snmpget -v 2c -c 'Foo$Bar & Grill' myserver system.sysDescr
> > Timeout: No Response from myserver.
> 
> 
> My *guess* is that it's probably the config file parsing that's
> getting confused.   Try running the agent with '-Dread_config'
> and/or '-Dnetsnmp_udp_parse_security' and watch what gets set up. ...

It appears to cough on the # at the start of my RW community string.  

  read_config: /usr/share/snmp/snmpd.conf:56 examining: rocommunity Foo$Bar&Grill
  /usr/share/snmp/snmpd.conf: line 61: Error: Blank line following rwcommunity token.

When the .conf looks like:

  # rocommunity: a SNMPv1/SNMPv2c read-only access community name
  #   arguments:  community [default|hostname|network/bits] [oid]

  rocommunity Foo$Bar&Grill

  # rwcommunity: a SNMPv1/SNMPv2c read-write access community name
  #   arguments:  community [default|hostname|network/bits] [oid]

  rwcommunity #<b>Hi!</b>

It's not hard for me to validate that out of user input for my community strings so 
I'll do that for now.  I don't suppose it's a huge limitation that you can't have '#' 
in configuration values but I'll write up a bug report anway.  Thanks.





-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
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