Script to check Remote Copy Groups are started
Script to check Remote Copy Groups are started
So I do not pretend to be a script person, it has been years since I did any real scripting/coding so take this for what is is worth. I have created a script that will check the status of all remote copy groups and create output files and return an error code if any remote copy group is not in a Started status. I figured that there are others like me that need some scripts so anything I can find and plagiarize I am open to offering the same from my work. The one output file is also a good way to get a list of all your remote copy groups without all the noise of the showrcopy command.
- Attachments
-
- checkrcstate.txt
- (2.22 KiB) Downloaded 3933 times
- Richard Siemers
- Site Admin
- Posts: 1333
- Joined: Tue Aug 18, 2009 10:35 pm
- Location: Dallas, Texas
Re: Script to check Remote Copy Groups are started
Excellent. Thanks for sharing.
Richard Siemers
The views and opinions expressed are my own and do not necessarily reflect those of my employer.
The views and opinions expressed are my own and do not necessarily reflect those of my employer.
Re: Script to check Remote Copy Groups are started
OK again apologies for rough scripting, but here is a newer modified version. This is a bit cleaner (IMO) and also will now output the last sync time and replication interval to the console and the output file will have the group name, status and interval converted to minutes. With over 100 remote copy groups this makes it easy to get a csv that can be sorted by a uniform interval.
- Attachments
-
- checkrcstate.txt
- (3.59 KiB) Downloaded 4035 times