From: brian Date: Tue, 5 Jul 2005 21:31:00 +0000 (+0000) Subject: Need to get values from netstat "unresolved" because the port numbers returned X-Git-Tag: 1.4.10~936 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=9c3fc8ff63b5e448920819cffc6d6d4a6ebf2fa0;p=fs%2Flustre-release.git Need to get values from netstat "unresolved" because the port numbers returned are used in numerical comparisons. --- diff --git a/lustre/tests/sanity.sh b/lustre/tests/sanity.sh index a1447f7..9b2d862 100644 --- a/lustre/tests/sanity.sh +++ b/lustre/tests/sanity.sh @@ -2471,7 +2471,7 @@ test_99f() { run_test 99f "cvs commit =======================================" test_100() { - netstat -ta | while read PROT SND RCV LOCAL REMOTE STAT; do + netstat -tan | while read PROT SND RCV LOCAL REMOTE STAT; do LPORT=`echo $LOCAL | cut -d: -f2` RPORT=`echo $REMOTE | cut -d: -f2` if [ "$PROT" = "tcp" ] && [ "$LPORT" != "*" ] && [ "$RPORT" != "*" ] && [ $RPORT -eq 988 ] && [ $LPORT -gt 1024 ]; then