Files
scripts-conlxsyslog03/check_BGP.sh
conetadm 5718e70f15 init
2024-11-14 21:11:06 +01:00

9 lines
244 B
Bash
Executable File

#!/bin/bash
clogin -c "sh ip route bgp" router-sp-2
echo "";
echo "";
num=`clogin -c "sh ip route bgp" router-sp-2 | grep "via 10.214.44.38" | wc | awk '{print $1}'`
if [ "$num" != "5" ]; then echo "STATUS: ERROR"; else echo "STATUS: OK"; fi