Gitlab Community Edition Instance

Commit 0c2b03d7 authored by Bjoern Nachtwey's avatar Bjoern Nachtwey
Browse files

0.2.1 added some more informative error messages

parent 7cf4bb17
......@@ -28,6 +28,7 @@
# date version remark
# 2020-10-28 0.1 initial coding
# 2020-11-18 0.2 added stgpool to be processed as an argument
# 2021-12-21 0.2.1 added some more informative error messages
#
##############################################################################
......@@ -122,7 +123,7 @@ $command = "$dsmadmc $dsmadsmargs -se=$servername \"$selectstatement\" 2>/dev/n
if ( ! @containerlist )
{
printf LOGFILE "%s: nothing to do! \n", $time;
printf LOGFILE "%s: no containers matching => nothing to do! \n", $time;
close LOGFILE;
exit 0;
}
......@@ -133,7 +134,7 @@ container: foreach $thiscontainer (@containerlist)
printf ">>%s\n", $thiscontainer;
if ( ( $thiscontainer =~ m/^ANR/ ) or ($thiscontainer =~ m/^ANS/) )
{
printf LOGFILE "%s: nothing to do! \n", $time;
printf LOGFILE "%s: got ANR / ANS error! \n", $time;
last container;
}
else
......@@ -151,6 +152,10 @@ printf "CMD:%s\n\n", $command;
{
printf LOGFILE "%s: move data %s (saving %7.2f GB)\n", $time, $container_name, $freeamount;
}
else
{
printf LOGFILE "%s: sometine went wrong: RC %s\n", $time, $rc_test;
}
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment