Active IQ Unified Manager Discussions

Determine next SnapMirror timeslot

markrob
2,824 Views

Hello,

I am writing a workflow and as part of that I need to determine what the most recently added snapmirror schedule is, for example, 5 * * *, I would then set the next SnapMirror schedule to 5 minutes later, in this case 10 * * *.

Has anyone written anything like this before that they would be happy to share please? Or any ideas about the best way to approach this please?

My thoughs so far are that I could write a custom powershell function that retieves the snapmirror.conf file from the filer and then parses the file to determine the schedule for the most recently added mirror...

Many Thanks,

Mark

2 REPLIES 2

yaronh
2,825 Views

Hi Mark,

Yes, you can certainly alter the Snapmirror command to do that part as well.

You can alternatively use a function to create a wide but equal range of timetable based on another

factor (Volume name, volume count, time of day etc.)

Unfortunately, we don't cache the snapmirror relationship information at the moment.

Best,

Yaron

markrob
2,825 Views

Thanks Yaron, I'll take a look at modifying the snapmirror command...

Public