nv-l
[Top] [All Lists]

RE: [nv-l] "\" in ip address

To: <nv-l@lists.us.ibm.com>
Subject: RE: [nv-l] "\" in ip address
From: "Colin Mulkerrins" <Colin.Mulkerrins@anpost.ie>
Date: Fri, 29 Oct 2004 15:10:41 +0100
Delivery-date: Fri, 29 Oct 2004 15:11:25 +0100
Envelope-to: nv-l-archive@lists.skills-1st.co.uk
Reply-to: nv-l@lists.us.ibm.com
Sender: owner-nv-l@lists.us.ibm.com
Thread-index: AcS9m8yc2fVzlYA3RW2RtGzLuzslhgAFM95gAAOQPvA=
Thread-topic: [nv-l] "\" in ip address
Eduardo,

We put the following into all of our scripts to remove the '\' character

host=`echo "$1" | sed  "s:\\\\\\::g"`
ip=`echo "$2" | sed  "s:\\\\\\::g"`

(Running 7.1.2 and 7.1.4FP02 (test) on AIX 4330-11)

Regards

Colin Mulkerrins
Enterprise Systems Management
An Post


-----Original Message-----
From: owner-nv-l@lists.us.ibm.com [mailto:owner-nv-l@lists.us.ibm.com]
On Behalf Of Eduardo Oliveira Scricco (Service)
Sent: 29 October 2004 13:24
To: nv-l@lists.us.ibm.com
Subject: [nv-l] "\" in ip address


Hi,

I have Netview 7.1.4 for AIX
 
I'm using an action like this to send me Netview alerts by e-mail: echo
"The device $NVATTR_2 generates the following event: $NVATTR_3" | mail
-s $NVATTR_2 mymail@mydomain.com

After I upgraded Netview for actual version, the $NVATTR_2 parameter
returns an ip like 10\.10\.10\.1

Is there a way to get this "\" out from the IP?

Thanks!
Eduardo



***********************************************************************************
This e-mail and its attachments, is confidential and is intended for the 
addressee(s) only. If you are not the intended recipient, disclosure, 
distribution or any action taken in reliance on it is prohibited and may be 
unlawful. Please note that any information expressed in this message or its 
attachments is not given or endorsed by An Post unless otherwise indicated by 
an authorised representative independently of this message. An Post does not 
accept responsibility for the contents of this message and although it has been 
scanned for viruses An Post will not accept responsibility for any damage 
caused as a result of a virus being passed on.
***********************************************************************************



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

Archive operated by Skills 1st Ltd

See also: The NetView Web