Traps with Octet Strings with quotes

James Harwood (jharwood@ix.netcom.com)
Fri, 06 Jun 1997 10:01:02 -0700

Hi folks!

I have just started using Scotty and Tkined - with great success!
And I have just joined this list, and I have done a quick search
of the archives, but apologies if my question has already been
covered. As I am very new to Tcl, apologies if this turns out to
be a dumb question!

The device that I am most interested in monitoring is set up to
send me a 'trap-copy' of the syslog messages. (Useful if you are
a long way from the site and syslog messages cannot traverse the
internet).

The syslog message strings are encapsulated as OCTET-STRINGS within
the trap packets. Some of these messages include a user name that
is "quoted".

When Scotty/straps receives these traps, it throws an exception with
a message about 'extra characters after trailing quote'. The quote
characters need replacing with something else that won't mess with
the tcl list interpretation.

I have tried to play about with the source, but I am getting nowhere.
I don't know enough about tcl to fix this, but I could build a little
command in C to do the job - is there a more elegant, pure tcl
solution though?

If there is no other way around the problem, could someone guide me
about how to 'make' a c routine and add it to the libraries that
scotty uses.

Thanks in advance,
James
----------------------
James Harwood
San Jose, CA, USA.
jharwood@ix.netcom.com

--
!! This message is brought to you via the `tkined & scotty' mailing list.
!! Please do not reply to this message to unsubscribe. To subscribe or
!! unsubscribe, send a mail message to <tkined-request@ibr.cs.tu-bs.de>.
!! See http://wwwsnmp.cs.utwente.nl/~schoenw/scotty/ for more information.