decryption check for nodes
This commit is contained in:
parent
172e704889
commit
85259518f1
1 changed files with 16 additions and 0 deletions
16
check_decryption.sh
Normal file
16
check_decryption.sh
Normal file
|
@ -0,0 +1,16 @@
|
|||
#!/bin/bash
|
||||
|
||||
HOST=$1
|
||||
PORT=$2
|
||||
|
||||
nc -z -w2 $HOST $PORT
|
||||
STATUS=$?
|
||||
|
||||
if [[ $STATUS -eq 0 ]]; then
|
||||
echo "$HOST:$PORT is waiting for disk decryption! Do it now!"
|
||||
exit 2
|
||||
else
|
||||
echo "Port is closed, nothing to do"
|
||||
exit 0
|
||||
|
||||
fi
|
Loading…
Reference in a new issue