From: Bartram, Chris (Contractor) (Chris.Bartram@usmint.treas.gov)
Date: Tue Mar 29 2005 - 16:33:43 EST
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
This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:30:26 EDT