From: davidplunkett Date: Thu, 7 Feb 2019 15:53:10 +0000 (+0000) Subject: add check that server oob is reachable X-Git-Tag: 1.0.0~28 X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=commitdiff_plain;h=15d30e2176f6d32ddfe668ecf26e4e6b3b54c16b;p=redfish.git add check that server oob is reachable Change-Id: Id8e6710b188d0cec7987e986acb92977e56acdb4 Signed-off-by: davidplunkett --- diff --git a/install_server_os.sh b/install_server_os.sh index 3e5a911..9b8df70 100755 --- a/install_server_os.sh +++ b/install_server_os.sh @@ -151,6 +151,13 @@ else ifconfig | grep --no-group-separator -B1 ":$BUILD_WEBIP " fi +## CHECK THAT SERVER OOB INTERFACE IS REACHABLE +echo "Checking access to server oob ip [$SRV_OOB_IP]" +if ! ping -c 3 $SRV_OOB_IP | grep time= ; then + echo "ERROR: Unable to ping server oob ip [$SRV_OOB_IP]" + exit 1; +fi + ## COLLECT ANY ADDITIONAL SERVER DATA NEEDED - FOR EXAMPLE, LOOKUP MAC FOR DELL NIC case $SRV_OEM in Dell|DELL)