Created
August 13, 2012 21:47
-
-
Save rtomaszewski/3344318 to your computer and use it in GitHub Desktop.
An example bash script checking RackConnect deployment status
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
iptables=$(iptables -nL) | |
ret=no | |
if echo $iptables | grep -q 'Chain INPUT .policy DROP.' ; then | |
if echo $iptables | grep -q 'Chain FORWARD .policy DROP.' ; then | |
if echo $iptables | grep -q 'Chain OUTPUT .policy ACCEPT.' ; then | |
if echo $iptables | grep -q 'Chain RS-RackConnect-INBOUND' ; then | |
ret=yes | |
fi | |
fi | |
fi | |
fi | |
echo $ret |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment