Good Morning,
I'd like to write a script that can be used to check the morning status of the backup zones without the GUI.
The output should contain:
status;group name; last run; % complete (!); -> basically what's shown on the GUI.
if I use
printf "show name; start time; status \np type:nsr group;autostart: Enabled\n" | /usr/sbin/nsradmin -s server_name -i-
it will tell only Running or Idle for the status. most of them are idle, but cannot tell if it succeeded of failed.
and completion status is missing.
If I use jobquery
printf " show name; job state; completion status \nprint type:savegroup job\n" | /usr/sbin/jobquery -s server_name -i-
it will give proper completion status, but the problem is that in one group multiple jobs run, and one might fail one might succeed and not sure how to consolidate these info.
% complete would be the most important question.
thanks
Gergely
