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

COB-49: added check for arp_ignore settings on 10G interfaces

parent 3c69036e
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
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/network/ib_mode.test -text
SubSystems/Online_Cobalt/validation/cobalt/network/interface_arp_ignore_setting.test -text
SubSystems/Online_Cobalt/validation/cobalt/network/interface_links.test -text
SubSystems/Online_Cobalt/validation/cobalt/network/interface_mtu_settings.test -text
SubSystems/Online_Cobalt/validation/cobalt/network/resolvconf.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
RESULT=$(ssh $NODE "/usr/sbin/sysctl -a -r 'net.ipv4.conf.10GB0[1|2|4|5|6].arp_ignore' |& grep -e '^.*=[[:space:]]*1' | wc -l | grep '^5$' ")
if [ $? -eq 0 ] ; then
echo "$NODE : all 10G interfaces have correct arp_ignore setting of 1"
else
echo "ERROR: $NODE : not all 10G interfaces have correct arp_ignore setting of 1"
EXIT_CODE=1
fi
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