2016-06-01 07:02 AM
Need to know if exists a cmdlet in powershell toolkit for enable and disable (set true or false snapdir-access property) access to snapdir for volumes.
We are trying to configure snapdiff backup but to achieve this is necessary to have enabled snapdir access to volumes (obious) and by default we have it disabled to prevent users to access snapshots through windows pervious versions tab.
We are looking for a way to enable and disable snapdir access for volumes using scripting.
Solved! SEE THE SOLUTION
2016-06-01 08:37 AM
You absolutely can modify the setting using the PowerShell Toolkit.
Get-NcVol $volumeName | Set-NcVolOption -Key nosnapdir -Value off
I blogged about this here if you're interested in some other options.
Hope that helps.
2016-06-01 11:26 PM - edited 2016-06-01 11:28 PM
Hi Andrew !
Million thanks for your help. Poweshell toolkit has a lot of cmdlets and I'm a poweshell newbie.
I have browsed your blog and it's going to be very usefull for me also. You have a new follower.
Next step for me is achieve to connect a poweshell session to a cluster without interact to enter credentials
Connect-NaController seems to be the option, but I only receive by the moment a RPC error 0x6BA
2016-06-02 02:09 AM
Connect-NcController is the correct cmdlet to connect to a clustered Data ONTAP system. It defaults to HTTPS, whereas Connect-NaController defaults to RPC (which was supported on 7-mode, but not on cDOT, and hence the error).
You may find the Add-NcCredential cmdlet and this link useful to connect to a controller without interaction.
Hope this helps,