Skip to content
Snippets Groups Projects
Commit b3394fb7 authored by Jorrit Schaap's avatar Jorrit Schaap
Browse files

COB-49: added check for link at network interfaces

parent 15e0ac46
No related branches found
No related tags found
1 merge request!6Import cobalt2 into lofar4
...@@ -5556,6 +5556,7 @@ SubSystems/Online_Cobalt/validation/cobalt/mpi/mpi-hello-world.c -text ...@@ -5556,6 +5556,7 @@ SubSystems/Online_Cobalt/validation/cobalt/mpi/mpi-hello-world.c -text
SubSystems/Online_Cobalt/validation/cobalt/mpi/mpi-infiniband-between-nodes.test -text SubSystems/Online_Cobalt/validation/cobalt/mpi/mpi-infiniband-between-nodes.test -text
SubSystems/Online_Cobalt/validation/cobalt/mpi/mpi-to-all-nodes.test -text SubSystems/Online_Cobalt/validation/cobalt/mpi/mpi-to-all-nodes.test -text
SubSystems/Online_Cobalt/validation/cobalt/network/ib_mode.test -text SubSystems/Online_Cobalt/validation/cobalt/network/ib_mode.test -text
SubSystems/Online_Cobalt/validation/cobalt/network/interface_links.test -text
SubSystems/Online_Cobalt/validation/cobalt/network/resolvconf.test eol=lf SubSystems/Online_Cobalt/validation/cobalt/network/resolvconf.test eol=lf
SubSystems/Online_Cobalt/validation/intercluster/c3/cexec -text SubSystems/Online_Cobalt/validation/intercluster/c3/cexec -text
SubSystems/Online_Cobalt/validation/intercluster/connectivity/cobalt2cep.test eol=lf SubSystems/Online_Cobalt/validation/intercluster/connectivity/cobalt2cep.test eol=lf
......
#!/bin/bash -v
source $(dirname $0)/../../validation_utils.sh
check_running_on_cobalt2
EXIT_CODE=0
for i in {201..213} ; do
NODE=cbm$i.control.lofar
# the following interfaces need to be connected
# 10GB03 and 10GB07 are spares and do not need to connected at this moment
for INTERFACE in ib0 ib1 10GB01 10GB02 10GB04 10GB05 10GB06 em1 ; do
RESULT=$(ssh $NODE /usr/sbin/ethtool $INTERFACE |& grep "Link detected: yes")
if [ $? -eq 0 ] ; then
echo "$NODE : interface $INTERFACE has a detected link"
else
echo "ERROR: $NODE : interface $INTERFACE has no detected link"
EXIT_CODE=1
fi
done
done
exit $EXIT_CODE
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment