How to verify you have a recent Mksysb Backup for every NIM client
brian_s 270002K5X3 Comment (1) Visits (13670)
The last thing you want to happen is to realize you don't have a mksysb backup of a server when you really need it, or realize the only mksysb backup you have is very out of date. This post will show you one method to verify you have recent mksysb's for all your NIM clients.
The process to check this basically works like this:
First we want to get a list of all NIM client machines. Then for each NIM client machine we look through all the mksysb resources and see if there is a mksysb with the servers name on it. If one or more mksysb files is found, we look at the file modification dates for each of the backing mksysb files and find the one that is most recent, which indicates how long ago the server last had a mksysb backup taken.
The script below will do this, and sort the output. The servers with no mksysb's are at the top, followed by the servers that have been the longest descending down to the ones who have most recently had a mksysb. This way all the problem machines are listed at the top of the report, and the machines with recent backups are at the bottom.
Note: The script is setup with the assumption that your mksysb resources have the naming format of: <ser
Here is the script:
Here is what the output looks like: