To: | nv-l@lists.us.ibm.com |
---|---|
Subject: | Re: [nv-l] "\" in ip address |
From: | Paul <pstroud@bellsouth.net> |
Date: | Fri, 29 Oct 2004 09:08:22 -0400 |
Delivery-date: | Fri, 29 Oct 2004 14:09:00 +0100 |
Envelope-to: | nv-l-archive@lists.skills-1st.co.uk |
In-reply-to: | <1DCD421BDE8C3C478E9A0A84B757029303D5DAD2@srv-pae-ex01.rge-rs.com.br> |
References: | <1DCD421BDE8C3C478E9A0A84B757029303D5DAD2@srv-pae-ex01.rge-rs.com.br> |
Reply-to: | nv-l@lists.us.ibm.com |
Sender: | owner-nv-l@lists.us.ibm.com |
User-agent: | Mozilla Thunderbird 0.8 (X11/20040913) |
Eduardo, Try editing the command as show below, the sed command should remove the \'s before sending.(Note: depending on your version of sed you may need to tweak this command) echo "The device $NVATTR_2 generates the following event: $NVATTR_3" | sed -e 's/\\//g' | mail -s $NVATTR_2 mymail@mydomain.com Here was the test I used: echo "The device 10\.10\.10\.10 generates the following event: NVATTR_3" | sed -e 's/\\//g' which returned: The device 10.10.10.10 generates the following event: NVATTR_3 Paul Eduardo Oliveira Scricco (Service) wrote: 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 |
<Prev in Thread] | Current Thread | [Next in Thread> |
---|---|---|
|
Previous by Date: | RE: [nv-l] "\" in ip address, Quinn, Bob |
---|---|
Next by Date: | [nv-l] Where does nvserverd store cached events with FixPack02, Per Lütkemeyer |
Previous by Thread: | [nv-l] "\" in ip address, Eduardo Oliveira Scricco (Service) |
Next by Thread: | RE: [nv-l] "\" in ip address, Quinn, Bob |
Indexes: | [Date] [Thread] [Top] [All Lists] |
Archive operated by Skills 1st Ltd
See also: The NetView Web