I want to set up a crontab to get e-mail from nodes daily.
The e-mail will contain:
fget_config -vA
lspv
lsconf
However, I just found that lsconf can hang due to some errors like below:
0516-1201 lsvg: Warning: Volume group prod3vg is locked. This command
will continue retries until lock is free. If lock is inadvertent
and needs to be removed, execute 'chvg -u prod3vg'.
If there are any errors like aforementioned and lsconf commands are just hanging, then I want to receive e-mail for the outputs from the first two commands (fget_config –vA and lspv) and the output (which is only up to the point where it stops due to the error) from lsconf. The reason is that I don’t want to let the crontab hung w/o sending any messages.
How do you make a cron for this scenario?
Thx much
The e-mail will contain:
fget_config -vA
lspv
lsconf
However, I just found that lsconf can hang due to some errors like below:
0516-1201 lsvg: Warning: Volume group prod3vg is locked. This command
will continue retries until lock is free. If lock is inadvertent
and needs to be removed, execute 'chvg -u prod3vg'.
If there are any errors like aforementioned and lsconf commands are just hanging, then I want to receive e-mail for the outputs from the first two commands (fget_config –vA and lspv) and the output (which is only up to the point where it stops due to the error) from lsconf. The reason is that I don’t want to let the crontab hung w/o sending any messages.
How do you make a cron for this scenario?
Thx much