init
This commit is contained in:
8
check_BGP.sh
Executable file
8
check_BGP.sh
Executable 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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user