Created
April 24, 2017 03:38
-
-
Save ahmadawais/840098791653a4973a84e27b8451469e to your computer and use it in GitHub Desktop.
Print status for all fail2ban jails.
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
# Print status for all fail2ban jails. | |
function f2bstall() { | |
JAILS=($(fail2ban-client status | grep "Jail list" | sed -E 's/^[^:]+:[ \t]+//' | sed 's/,//g')) | |
for JAIL in ${JAILS[@]} | |
do | |
echo "--------------- 👀 JAIL STATUS: $JAIL ... ---------------" | |
fail2ban-client status $JAIL | |
echo "--------------- ... ---------------" | |
done | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
nice on. loving the eyes ;-)