Skip to content
Snippets Groups Projects
Commit d8549218 authored by Simon Michnowicz's avatar Simon Michnowicz
Browse files

Modified external ping to license server

Added command to "die" message


Former-commit-id: c32b422f
parent 4dff4ee8
No related branches found
No related tags found
No related merge requests found
...@@ -6,11 +6,15 @@ function check_nat() { ...@@ -6,11 +6,15 @@ function check_nat() {
#echo ">>> Checking NAT on Compute Nodes Works >>>>>>>>>>>>>>>>>>>>>>>>>" #echo ">>> Checking NAT on Compute Nodes Works >>>>>>>>>>>>>>>>>>>>>>>>>"
PING_EXTERNAL="ping -c 2 8.8.8.8" #8.8.8.8 is google
#PING_EXTERNAL="ping -c 2 8.8.8.8"
#Instead we ping license server hpclic0 which is in HPC_Ancillary_zone
PING_EXTERNAL="ping -c 2 118.138.246.208"
$PING_EXTERNAL $PING_EXTERNAL
RESULT=$? RESULT=$?
if [ $RESULT -ne 0 ]; then if [ $RESULT -ne 0 ]; then
die 1 " $FUNCNAME ERROR on node. Can not ping external address. Please check NAT is working, or route on node is valid" die 1 " $FUNCNAME ERROR on node. Can not ping external address. Command is ' ${PING_EXTERNAL} ' Please check NAT is working, or route on node is valid"
return 1 return 1
fi fi
return 0 return 0
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment