hdtvguy wrote:
I am attaching a batch file that will help you. It accepts 3 parameters, the array name, a volume name (accepts wildcards) and then an expiration time. We run this every day against various volume wildcard strings to take daily snapshots of volumes on our array. Really simplifies massive snapshot creation. By accepting expiration duration it allows you to not have to worry about clean up. I am converting this to powershell in the near future. We run this on a windows box using Windows Scheduled task and have the 3par CLI installed. You will need to look at the script to find the name of e password file you use and change it. The default the %arrayname%_admin.pwfile and %ARRAYNAME% is loaded from the first variable passed.
I have some Remote Copy scripts as well and one that syncs snapshots on a target array of remote copies once all volumes in an RC group are done replicating it will refresh teh snaps off that RC group in the target.
SOrry for my dumb question, but how do I execute this ? Do I need the 3PAR Cli ? or via SSH ?
Please, this is my first time runnning a script.
Thks.