<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Customer question in Microsoft Virtualization Discussions</title>
    <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Customer-question/m-p/452336#M6883</link>
    <description>&lt;P&gt;Customer is asking the following question. Any thoughts are appreciated. REST has already been suggested, but the customer is focused on PS.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Is there a PS cmdlet equiv to the following cli cmds:&lt;/P&gt;&lt;P&gt;volume flexcache create -vserver eu-vfilerc-01 -volume amc_cifs_prd_apps01 -origin-volume cifs_prd_apps01 -size 50GB -origin-vserver am-vfilerc-01 -aggr-list aggr1_sata_19&lt;/P&gt;&lt;P&gt;#&lt;/P&gt;&lt;P&gt;flexcache prepopulate start -cache-vserver eu-vfilerc-01 -cache-volume amc_cifs_prd_apps01 -path-list &amp;lt;path&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We can’t see anything obvious in the PS toolkit help.&lt;/P&gt;</description>
    <pubDate>Wed, 04 Jun 2025 09:38:37 GMT</pubDate>
    <dc:creator>harrya</dc:creator>
    <dc:date>2025-06-04T09:38:37Z</dc:date>
    <item>
      <title>Customer question</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Customer-question/m-p/452336#M6883</link>
      <description>&lt;P&gt;Customer is asking the following question. Any thoughts are appreciated. REST has already been suggested, but the customer is focused on PS.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Is there a PS cmdlet equiv to the following cli cmds:&lt;/P&gt;&lt;P&gt;volume flexcache create -vserver eu-vfilerc-01 -volume amc_cifs_prd_apps01 -origin-volume cifs_prd_apps01 -size 50GB -origin-vserver am-vfilerc-01 -aggr-list aggr1_sata_19&lt;/P&gt;&lt;P&gt;#&lt;/P&gt;&lt;P&gt;flexcache prepopulate start -cache-vserver eu-vfilerc-01 -cache-volume amc_cifs_prd_apps01 -path-list &amp;lt;path&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We can’t see anything obvious in the PS toolkit help.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 09:38:37 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Customer-question/m-p/452336#M6883</guid>
      <dc:creator>harrya</dc:creator>
      <dc:date>2025-06-04T09:38:37Z</dc:date>
    </item>
    <item>
      <title>Re: Customer question</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Customer-question/m-p/452490#M6885</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can use Invoke-NcSystemApi if there is no CmdLet. Here's an example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;Param(
   [Parameter(Mandatory = $True, HelpMessage = "The ONTAP Cluster Hostname, FQDN or IP Address")]
   [String]$Cluster,
   [Parameter(Mandatory = $True, HelpMessage = "The Aggregate Name")]
   [String]$Aggregate,
   [Parameter(Mandatory = $True, HelpMessage = "The Vserver Name")]
   [String]$Vserver,
   [Parameter(Mandatory = $True, HelpMessage = "The Volume Name")]
   [String]$Volume,
   [Parameter(Mandatory = $True, HelpMessage = "The Volume Size in GigaBytes")]
   [String]$SizeGB,
   [Parameter(Mandatory = $True, HelpMessage = "The Origin Vserver Name")]
   [String]$OriginVserver,
   [Parameter(Mandatory = $True, HelpMessage = "The Origin Volume Name")]
   [String]$OriginVolume,
   [Parameter(Mandatory = $True, HelpMessage = "The Credential to authenticate to the ONTAP cluster")]
   [ValidateNotNullOrEmpty()]
   [System.Management.Automation.PSCredential]$Credential
)
#'------------------------------------------------------------------------------
#'Connect to the cluster.
#'------------------------------------------------------------------------------
Try{
   Connect-NcController -Name $Cluster -ZapiCall -Credential $Credential -ErrorAction Stop
}Catch{
   Write-Warning -Message $("Failed connecting to cluster ""$Cluster"". Error " + $_.Exception.Message)
   Exit -1
}
#'------------------------------------------------------------------------------
#'Create a flexcache volume.
#'------------------------------------------------------------------------------
[Array]$command = $("set advanced;volume flexcache create -vserver $Vserver -volume $Volume -origin-volume $OriginVolume -size " + $($SizeGB + 'GB') + " -origin-vserver $OriginVserver -aggr-list $Aggregate")
Try{
   $api = $("&amp;lt;system-cli&amp;gt;&amp;lt;args&amp;gt;&amp;lt;arg&amp;gt;" + ($command -join "&amp;lt;/arg&amp;gt;&amp;lt;arg&amp;gt;") + "&amp;lt;/arg&amp;gt;&amp;lt;/args&amp;gt;&amp;lt;/system-cli&amp;gt;")
   Write-Host $("Executed Command`: " + $([String]::Join(" ", $command)))
   $response = Invoke-NcSystemApi -Request $api -ErrorAction Stop
}Catch{
   Write-Warning -Message $("Failed Executing Command`: " + $([String]::Join(" ", $command)))
   Break;
}
#'------------------------------------------------------------------------------&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope that helps&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/Matt&lt;/P&gt;</description>
      <pubDate>Thu, 02 May 2024 04:45:13 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Customer-question/m-p/452490#M6885</guid>
      <dc:creator>mbeattie</dc:creator>
      <dc:date>2024-05-02T04:45:13Z</dc:date>
    </item>
  </channel>
</rss>

