nv-l

Re: [nv-l] Trap forwarding to TEC contains \

2003-02-12 14:11:53
Subject: Re: [nv-l] Trap forwarding to TEC contains \
From: netview AT toddh DOT net (Todd H.)
To: "Carlos Enriquez" <enriquezc AT terra.com DOT mx>
Date: 12 Feb 2003 12:51:53 -0600
"Carlos Enriquez" <enriquezc AT terra.com DOT mx> writes:
> Hello List
> 
> I'm also trying to fix this issue, I know that this is due to a security
> problem, I know how it must be fixed, but I don't know what I'm doing wrong
> because it has not been fixed, the lines of the script that I'm modifying
> are listed below, I hope you can help me to find what do I'm doing wrong.
> 
> hostname1=$4
> hostname=`echo $hostname1 | sed "s:\\\\\\::g"`

You have not included the error or any of the symptoms of your
difficulty, but I will try to help. 

I seem to recall the sed syntax in the NetView release notes not
working for me under AIX at least...something with the quoting of the
sed expression as I recall.

Here's what I use--I specifically replace the backslashes preceeding
legal hostname characters that are non-alphanumeric:


############################################################################
# replace \- \. and \_  with - . and  _  respectvely. Required for
# security efix
############################################################################
hostname=$(/usr/bin/echo "$hostname" | /usr/bin/sed 's:\\\([-\._]\):\1:g')



-- 
Todd H.
http://www.toddh.net/

---------------------------------------------------------------------
To unsubscribe, e-mail: nv-l-unsubscribe AT lists.tivoli DOT com
For additional commands, e-mail: nv-l-help AT lists.tivoli DOT com

*NOTE*
This is not an Offical Tivoli Support forum. If you need immediate
assistance from Tivoli please call the IBM Tivoli Software Group
help line at 1-800-TIVOLI8(848-6548)


<Prev in Thread] Current Thread [Next in Thread>