SNMP community string starting w/special a prob on Sol 8?

From: Bartram, Chris (Contractor) (Chris.Bartram_at_usmint.treas.gov)
Date: 03/29/05

  • Next message: Jagga Daku: "List of all perl modules installed"
    To: "'sunmanagers@sunmanagers.org'" <sunmanagers@sunmanagers.org>
    Date: Tue, 29 Mar 2005 16:33:43 -0500
    
    

    Our standard community strings start with a special character. It's been ok
    so far on every other platform we've used... But on Sol 8 (on an e15k domain
    fwiw) trying to enter the read/write-trap-community string in snmpdx.acl
    generates

    Mar 29 13:31:56 solaris /usr/lib/snmp/snmpdx: [ID 702911 daemon.error]
    syntax error in at line 20: the token < is not valid
    Mar 29 15:15:10 solaris /usr/lib/snmp/snmpdx: [ID 702911 daemon.error]
    syntax error in at line 20: the token $ is not valid

    (for variations of the string starting with a "<" and a "$" respectively.)

    I determined the "in at line 20" is referring to the snmpdx.acl file's line
    20. Trying to 'quote' or "quote" the strings yielded:

    Mar 29 15:16:33 coindev2 /usr/lib/snmp/snmpdx: [ID 702911 daemon.error]
    syntax error at line 20: "
    Mar 29 14:30:56 coindev2 /usr/lib/snmp/snmpdx: [ID 702911 daemon.error]
    syntax error in at line 20: the token ' is not valid

    Don't seem to get complaints about the snmpd.conf file, though maybe it's
    not getting that far...

    relevant portions of the snmpdx.acl are:

    acl = {
            {
                    communities = %string1, %string2 <--- this is "line 20"
    in the snmpdx.acl file
                    access = read-write
                    managers = *
            }
    }

    communities = {
    %string1 read-only
    %string2 read-write
    }

    trap-community = %string1

    trap-recipients =
    {
    host1,host2
    }

    Is is a bug? or is there a secret-handshake escape character I can use to
    get it to accept a string starting with a special character? (I tried "\" as
    a prefix as well.. no joy)

    And don't get me started on the idjit that picked those strings in the first
    place! ;-)

    TIA - will summarize,
     -Chris Bartram
    _______________________________________________
    sunmanagers mailing list
    sunmanagers@sunmanagers.org
    http://www.sunmanagers.org/mailman/listinfo/sunmanagers


  • Next message: Jagga Daku: "List of all perl modules installed"

    Relevant Pages

    • Re: kid wants to know more about color on the screen
      ... He and I have no programming ... > does a run script there will be a syntax error as Python wont recognize this ... it is possible to print colored text in Python. ... These are strings starting with the control ...
      (comp.lang.python)
    • Re: please help
      ... What sort of syntax error? ... size, etc., line breaks will be introduced in the copy-paste step that ... manipulate internet-downloaded data where the split of strings into ... Break the string and put each of them in separate cells (e.g. ...
      (microsoft.public.excel.programming)
    • Re: Newbie question on INSERT command
      ... The error I get back indicates a syntax error. ... Did you really spell Address1 and Addres2 so ... The zero length strings may or may not be a problem, ...
      (comp.databases.ms-access)
    • Re: Compile error about MACRO
      ... In the MERGE macro, a is replaced by the string "hello", not the token ... You only use quotes in macro arguments when you want strings. ... which is definately a syntax error. ... operator works on tokens not on strings. ...
      (microsoft.public.vc.language)
    • Re: Paths help
      ... Now in my cgi-bin folder I have a folder called test ... the script would behave as you expect it to behave. ... The backslash is a special character in Perl's double-quoted strings: ... The / is not a special character in Perl's strings (Note that some OSes do ...
      (comp.lang.perl.misc)