NetApp Community Update
This site will enter Read Only mode on July 23 as we prepare to move to a new platform. You will still be able to view content, but posting and replying will be temporarily disabled.
We're excited to launch our new Community experience on July 30 and more information will follow soon.
Stay connected during the transition - Join our Discord community today.

Active IQ Unified Manager Discussions

Determine next SnapMirror timeslot

markrob
3,919 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
3,920 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
3,920 Views

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

Public