AF:
NF:0
PS:10
SRH:1
SFN:
DSR:
MID:<20080508171800.423f7ecc@ripper.onstor.net>
CFG:
PT:0
S:andy.sharp@onstor.com
RQ:
SSV:onstor-exch02.onstor.net
NSV:
SSH:
R:<rendell.fong@onstor.com>
MAID:1
X-Sylpheed-Privacy-System:
X-Sylpheed-Sign:0
SCF:#mh/Mailbox/sent
RMID:#imap/andys@onstor.net@onstor-exch02.onstor.net/INBOX	0	BB375AF679D4A34E9CA8DFA650E2B04E09624AF6@onstor-exch02.onstor.net
X-Sylpheed-End-Special-Headers: 1
Date: Thu, 8 May 2008 17:18:31 -0700
From: Andrew Sharp <andy.sharp@onstor.com>
To: "Rendell Fong" <rendell.fong@onstor.com>
Subject: Re: please review - change 29137
Message-ID: <20080508171831.455b00be@ripper.onstor.net>
In-Reply-To: <BB375AF679D4A34E9CA8DFA650E2B04E09624AF6@onstor-exch02.onstor.net>
References: <BB375AF679D4A34E9CA8DFA650E2B04E09624AF6@onstor-exch02.onstor.net>
Organization: Onstor
X-Mailer: Sylpheed-Claws 2.6.0 (GTK+ 2.8.20; x86_64-pc-linux-gnu)
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit

nfx-tree/code/ssc-support/support.sh

     nsopt should be: bsd -- "-p tcp" linux -- "--tcp"
     SEPCHAR should be: bsd -- "." linux -- ":"
     command should be: "`netstat -an $nsopt" | grep $upload_addr$SEPCHAR$upload_port`"

     there should be an upper bound on how high the upload_port gets
     before this whole nonsense bails.  any arbitrary number is fine.

all those surrounding places in the code that have $var1:$var2: and so on,
need to have curly braces put around the variable name for bash, because
$var:whatever has special meaning to bash, so bash will mess this up.
so ${var1}:${var2} and like that.



On Wed, 7 May 2008 14:17:48 -0700 "Rendell Fong"
<rendell.fong@onstor.com> wrote:

> Change: 29137
> 
> Client: rendellf-test
> User:   rendellf
> 
> Description:
>     TED23575: EMRS: proxy mode gives: Unknown address family `n' error
> 
>     Fixed netstat options for Linux.  The netstat -A option has
> different
>     meaning in Linux and OpenBSD.
> 
> Files:
>     //depot/dev/nfx-tree/code/ssc-support/support.sh    # edit
> 
> 
> Tested proxy enable case in both Bobcat and Cougar:
> The following shows that the address family "n" error isn't occurring
> anymore.
> 
> BOBCAT:
> eng59 diag> autosupport emrs proxy enable -i 10.0.0.223 -p 3128 -u
> test -P tes
> eng59 diag> system get logs -c 1234
> Network ERROR: the proxy server requires Authentication
> % Command failure.
> eng59 diag> 
> 
> COUGAR:
> g7r6 diag> autosupport emrs proxy enable -i 10.0.0.223 -p 3128 -u test
> -P tes
> g7r6 diag> system get logs -c 1234
> Network ERROR: the proxy server requires Authentication
> % Command failure.
> g7r6 diag>
> g7r6 diag> autosupport emrs proxy enable -i 10.0.0.223 -p 3128 -u test
> -P test
> g7r6 diag> system get logs -c 1234
>     Uploading elog message files..           OK
>     Uploading syslog files..                 OK
>     Uploading auth log files..               OK
>     Uploading ndmp log files..               OK
>     Uploading quota log file..               SKIPPED (No files to
> copy) Uploading kpi stats..                    OK
> g7r6 diag>
