Discuss NetApp solutions for Microsoft Private Cloud and the Hyper-V platform, including FlexPod Datacenter, OnCommand Plug-in for Microsoft, and ONTAP PowerShell Toolkit.
Discuss NetApp solutions for Microsoft Private Cloud and the Hyper-V platform, including FlexPod Datacenter, OnCommand Plug-in for Microsoft, and ONTAP PowerShell Toolkit.
I create a snapshot policy name mypolicy1 PS C:\File> Get-NcSnapshotPolicymypolicy1 Policy Enabled SnapshotPolicySchedules ------ ------- ----------------------- mypolicy1True {1min (5)} and I have volume name vol1 PS C:\File> get-ncvol -Vserver svm1 -name vol1 Name State TotalSize Used Available Dedupe Aggregate Vserver ---- ----- --------- ---- --------- ------ --------- ------- vol1 online 1.0 GB 972.3 MB aggr1 svm1 the vol1's snapshot policy is default now PS C:\File> (Get-Ncvol -Vserver svm1 -Name vol1).SnapshotPolicy Name Uuid ---- ---- default ba1e9fa1-e597-11ed-bc7b-00a098e1d252 when I want to change the vol1's snapshot policy to mypolicy1 I use the powershell command PS C:\File> Get-Ncvol -Vserver svm1 -Name vol1 |Set-NcSnapshotPolicy -Name mypolicy1 Policy Enabled SnapshotPolicySchedules ------ ------- ----------------------- mypolicy1 True {1min (5)} but it still use the default snapshot policy PS C:\File> (Get-Ncvol -Vserver svm1 -Name vol1).SnapshotPolicy Name Uuid ---- ---- default ba1e9fa1-e597-11ed-bc7b-00a098e1d252 I try to change the snapshot policy in GUI, and it's work Can anyone help me, how to change snapshot policy by powershell?
... View more
The link to download the powershell toolkit as per forums is https://mysupport-beta.netapp.com/ui/tools/tool-eula/5dd4e425ea373600018f94be
but when I get to that link, its a blank page.
I am trying to download the latest powershell toolkit to be able to perform snapmirror actions like break and restore etc.
Thanks
Satish
... View more
Hi All,
I need some help for a powershell script. I like to do a report for some Netapp Clusters to receive Information about Name,Ip,Location, Nodes, Nodes IP mgmt ip , aso. and all helpfull stuff
How can I extract this data, and the best way would be to do this in a biger foreach loop with multible clusters..
$myCol = @()
Connect-NaController $clusters -Credential $ControllerCredential
[System.Array]$Nodes = Get-NcNode Foreach($Node in $Nodes){ $x = "" | Select Node,Model,NodeSerialNumber,NodeSystemId,Version,IP
$x.Node = $Node.Node $x.model = $Node.NodeModel $x.NodeSerialNumber = $Node.NodeSerialNumber $x.NodeSystemId = $Node.NodeSystemId $x.Version = $Node.ProductVersion.Split(":")[0] $x.IP = $Node | Get-NcNetInterface -Role node_mgmt | select Address
$mycol += $x
}
$mycol
... View more
Hello all, Need some help. I want to run the following: volume snapshot show -fields create-time, size, state, is-constituent Using the Ontap Powershell and redirect it to a local Excel format. I can get connected to my Clusters using the Connect-NcController, just cannot get the syntax correct for the volume command. Any help would be great.
... View more