This commit is contained in:
conetadm
2024-11-14 21:11:06 +01:00
commit 5718e70f15
657 changed files with 9401652 additions and 0 deletions

8
check_BGP.sh Executable file
View File

@@ -0,0 +1,8 @@
#!/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