I'd like to share a thought about the current Snapdrive implementation of SDCLI. Currently there is (as far as i know) no support for direct access of snapdrive through powershell (plz correct me if i'm wrong). But I needed a way to get the disk list of a server to be able to do some crazy stuff with dataontap powershell toolkit. (like kicking in qtree snapmirror on all connected volumes, stuff like this)
as far as i see there is no easy way to get all output of sdcli to a powershell object so I tried it myself and would be happy if anybody may give me a hint if what i do is the right way or if there is a much easier way to accomplish what i'd like to do.
Thanks for the info, but the problem is not to get information about the disk the problem is to run a script on a windows machine and do the following steps:
- get all luns connected to the windows machine which we are running on
- create SDW consistent snapshot on this machine
- update the qtree snapmirror with the created snapshot as a base
i don't want to configure the script every time, there should be as much intelligence as possible to get all necessary information not configure it through any type of configuration file or so.... As far as i understand there should be everything on the machine itself to get the job done.
SDCLI creates the consistent snapshot
SDCLI can get the disk with source filer and volume path (which i try to give some professional look with creating a powershell way to get the necessary information)
DataOntap Toolkit should be able to connect to the source filer, get the corresponding snapmirror connection
use the information from the snapmirror connection to update the snapmirror with base snapshot on the destination filer
(as far as i know the snapmirror update trigger needs to be done on the destination filer or ?)