I am trying to automate the HMC (Hardware Management Console) backup on AIX. We have 6 HMC's in each Data Center and I need to back the HMC console data to the NIM server every month.
I am able to automate this part using HMC itself, wherein it SFTP's the console file which is a *.tgz file on to the NIM server every month. I am trying to write a script wherin it needs to check if I have successful HMC backup for all the 6 HMC's in each Data Center and send a notification email if there is no HMC backup file. It also needs to rotate/delete the old HMC backup (tgz file) older than 30 days.
Hopefully, I am clear in what I am trying to do, any help/advise to to do this in a better/efficient way would be appreciated.