<?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 Re: Do we have any DataONTAP powershell toolkit cmdlet to set privilege level for cluster? in Software Development Kit (SDK) and API Discussions</title>
    <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Do-we-have-any-DataONTAP-powershell-toolkit-cmdlet-to-set-privilege-level-for/m-p/116810#M1841</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To get the volume UUID from the command results when using the -fields UUID parameter was a bit tricky, perhaps there is a better way of doing it but here is how it worked for me:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Import-Module DataONTAP
$credentials = Get-Credential
$clusterName = "cluster1.testlab.local"
$vserverName = "vserver1"
$volumeName  = "volume_001"
$command     = "set -privilege diag;volume show -vserver $vserverName -volume $volumeName -fields UUID"
Connect-NcController -Name $clusterName -Credential $credentials -HTTPS | Out-Null
$result = Invoke-NcSsh -Command $command
$line   = ($result -Replace "\s+", " ").Trim();
$uuid   = $line.SubString($line.LastIndexOf(" ")).Trim();&lt;BR /&gt;$uuid&lt;BR /&gt;5906a317-8ec5-11e5-94fa-005056ac2b80&lt;/PRE&gt;&lt;P&gt;Then you would need to add to a line to your WFA Command code to add the return paramater. EG&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Add-WfaWorkflowParameter -Name "VolumeUUID" -Value $uuid -AddAsReturnParameter $True&lt;/P&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>Tue, 08 Mar 2016 13:20:04 GMT</pubDate>
    <dc:creator>mbeattie</dc:creator>
    <dc:date>2016-03-08T13:20:04Z</dc:date>
    <item>
      <title>Do we have any DataONTAP powershell toolkit cmdlet to set privilege level for cluster?</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Do-we-have-any-DataONTAP-powershell-toolkit-cmdlet-to-set-privilege-level-for/m-p/116795#M1836</link>
      <description>&lt;P&gt;I am creating a workflow in which customer needs to get &lt;STRONG&gt;volume uuid&lt;/STRONG&gt; when the workflow execution is finished. I have seen that in DataONTAP, to extract the volume uuid we need to set the privilege level as advanced or diag. Do we have any alternative to get volume uuid without setting privilege level?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried &lt;STRONG&gt;Invoke-NcSsh -command "set -privilege advanced" and Invoke-NcSsh -command "volume show -instance"&lt;/STRONG&gt;. But it does not return&amp;nbsp;volume UUID.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any inputs on this would help.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 21:51:43 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Do-we-have-any-DataONTAP-powershell-toolkit-cmdlet-to-set-privilege-level-for/m-p/116795#M1836</guid>
      <dc:creator>Rutul</dc:creator>
      <dc:date>2025-06-04T21:51:43Z</dc:date>
    </item>
    <item>
      <title>Re: Do we have any DataONTAP powershell toolkit cmdlet to set privilege level for cluster?</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Do-we-have-any-DataONTAP-powershell-toolkit-cmdlet-to-set-privilege-level-for/m-p/116797#M1837</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When you launch your command "Invoke-NcSsh -command "set -privilege advanced"", test with the argument "-confirmations off".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Mar 2016 09:46:47 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Do-we-have-any-DataONTAP-powershell-toolkit-cmdlet-to-set-privilege-level-for/m-p/116797#M1837</guid>
      <dc:creator>BSCHWARTZBART</dc:creator>
      <dc:date>2016-03-08T09:46:47Z</dc:date>
    </item>
    <item>
      <title>Re: Do we have any DataONTAP powershell toolkit cmdlet to set privilege level for cluster?</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Do-we-have-any-DataONTAP-powershell-toolkit-cmdlet-to-set-privilege-level-for/m-p/116799#M1838</link>
      <description>&lt;P&gt;That is not the issue. Right now I am trying to pull UUID outside of WFA in powershell ISE but not getting UUID of volume. and If I get volume UUID&amp;nbsp;successfully then will use this cmdlet in WFA command.&lt;/P&gt;&lt;P&gt;Below is the screenshot and vol show -instance command does not give me UUID in the result&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.netapp.com/t5/image/serverpage/image-id/4961iFFD2D07F96576726/image-size/original?v=mpbl-1&amp;amp;px=-1" border="0" alt="Capture.PNG" title="Capture.PNG" /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Mar 2016 10:49:38 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Do-we-have-any-DataONTAP-powershell-toolkit-cmdlet-to-set-privilege-level-for/m-p/116799#M1838</guid>
      <dc:creator>Rutul</dc:creator>
      <dc:date>2016-03-08T10:49:38Z</dc:date>
    </item>
    <item>
      <title>Re: Do we have any DataONTAP powershell toolkit cmdlet to set privilege level for cluster?</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Do-we-have-any-DataONTAP-powershell-toolkit-cmdlet-to-set-privilege-level-for/m-p/116803#M1839</link>
      <description>&lt;P&gt;Ok,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have you test with the command : Invoke-Ncssh -command "vol show -fields UUId" ?&lt;/P&gt;</description>
      <pubDate>Tue, 08 Mar 2016 11:25:18 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Do-we-have-any-DataONTAP-powershell-toolkit-cmdlet-to-set-privilege-level-for/m-p/116803#M1839</guid>
      <dc:creator>BSCHWARTZBART</dc:creator>
      <dc:date>2016-03-08T11:25:18Z</dc:date>
    </item>
    <item>
      <title>Re: Do we have any DataONTAP powershell toolkit cmdlet to set privilege level for cluster?</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Do-we-have-any-DataONTAP-powershell-toolkit-cmdlet-to-set-privilege-level-for/m-p/116807#M1840</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try adding a semi colon to your command. EG:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Import-Module DataONTAP
$credentials = Get-Credential
$clusterName = "cluster1.testlab.local"
$vserverName = "vserver1"
$volumeName  = "volume_001"
$command     = "set -privilege diag;volume show -vserver $vserverName -volume $volumeName"
Connect-NcController -Name $clusterName -Credential $credentials -HTTPS | Out-Null
$results = Invoke-NcSsh -Command $command
$results&lt;/PRE&gt;&lt;P&gt;/matt&lt;/P&gt;</description>
      <pubDate>Tue, 08 Mar 2016 12:33:28 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Do-we-have-any-DataONTAP-powershell-toolkit-cmdlet-to-set-privilege-level-for/m-p/116807#M1840</guid>
      <dc:creator>mbeattie</dc:creator>
      <dc:date>2016-03-08T12:33:28Z</dc:date>
    </item>
    <item>
      <title>Re: Do we have any DataONTAP powershell toolkit cmdlet to set privilege level for cluster?</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Do-we-have-any-DataONTAP-powershell-toolkit-cmdlet-to-set-privilege-level-for/m-p/116810#M1841</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To get the volume UUID from the command results when using the -fields UUID parameter was a bit tricky, perhaps there is a better way of doing it but here is how it worked for me:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Import-Module DataONTAP
$credentials = Get-Credential
$clusterName = "cluster1.testlab.local"
$vserverName = "vserver1"
$volumeName  = "volume_001"
$command     = "set -privilege diag;volume show -vserver $vserverName -volume $volumeName -fields UUID"
Connect-NcController -Name $clusterName -Credential $credentials -HTTPS | Out-Null
$result = Invoke-NcSsh -Command $command
$line   = ($result -Replace "\s+", " ").Trim();
$uuid   = $line.SubString($line.LastIndexOf(" ")).Trim();&lt;BR /&gt;$uuid&lt;BR /&gt;5906a317-8ec5-11e5-94fa-005056ac2b80&lt;/PRE&gt;&lt;P&gt;Then you would need to add to a line to your WFA Command code to add the return paramater. EG&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Add-WfaWorkflowParameter -Name "VolumeUUID" -Value $uuid -AddAsReturnParameter $True&lt;/P&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>Tue, 08 Mar 2016 13:20:04 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Do-we-have-any-DataONTAP-powershell-toolkit-cmdlet-to-set-privilege-level-for/m-p/116810#M1841</guid>
      <dc:creator>mbeattie</dc:creator>
      <dc:date>2016-03-08T13:20:04Z</dc:date>
    </item>
    <item>
      <title>Re: Do we have any DataONTAP powershell toolkit cmdlet to set privilege level for cluster?</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Do-we-have-any-DataONTAP-powershell-toolkit-cmdlet-to-set-privilege-level-for/m-p/116811#M1842</link>
      <description>&lt;P&gt;The Get-NcVol cmdlet returns the volume UUID by default:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;(Get-NcVol $volumeName).VolumeIdAttributes.Uuid&lt;/PRE&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Andrew&lt;/P&gt;</description>
      <pubDate>Tue, 08 Mar 2016 14:12:45 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Do-we-have-any-DataONTAP-powershell-toolkit-cmdlet-to-set-privilege-level-for/m-p/116811#M1842</guid>
      <dc:creator>asulliva</dc:creator>
      <dc:date>2016-03-08T14:12:45Z</dc:date>
    </item>
    <item>
      <title>Re: Do we have any DataONTAP powershell toolkit cmdlet to set privilege level for cluster?</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Do-we-have-any-DataONTAP-powershell-toolkit-cmdlet-to-set-privilege-level-for/m-p/116812#M1843</link>
      <description>&lt;P&gt;Also, be aware there are multiple UUIDs associated with a volume...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;UUID = identifier associated with a volume *for it's current location*...this UUID will change after a volume move operation&lt;/LI&gt;&lt;LI&gt;Instance UUID = identifier associated with a volume which will not change&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Andrew&lt;/P&gt;</description>
      <pubDate>Tue, 08 Mar 2016 14:15:59 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Do-we-have-any-DataONTAP-powershell-toolkit-cmdlet-to-set-privilege-level-for/m-p/116812#M1843</guid>
      <dc:creator>asulliva</dc:creator>
      <dc:date>2016-03-08T14:15:59Z</dc:date>
    </item>
    <item>
      <title>Re: Do we have any DataONTAP powershell toolkit cmdlet to set privilege level for cluster?</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Do-we-have-any-DataONTAP-powershell-toolkit-cmdlet-to-set-privilege-level-for/m-p/116911#M1850</link>
      <description>&lt;P&gt;Hi Andrew,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You are right, it's definately much easier to get the UUID using Get-NcVol:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;PS C:\&amp;gt; $volume = Get-NcVol -Name volume_001 -Vserver vserver1
PS C:\&amp;gt; $volume.VolumeIdAttributes.Uuid
5906a317-8ec5-11e5-94fa-005056ac2b80&lt;/PRE&gt;&lt;P&gt;As you've stated it's also problematic to use the UUID given it can change from a volume move operation.&lt;/P&gt;&lt;P&gt;So if the initial objective of the WFA workflow is to return a unique identifier that won't change when the volume is moved then a potential workaround would be to use GUID to set the volumes comment. EG&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;PS C:\&amp;gt; [String]$vserverName = "vserver1"
PS C:\&amp;gt; [String]$volumeName  = "volume_001"
PS C:\&amp;gt; $guid                = [guid]::NewGuid()
PS C:\&amp;gt; $query = Get-NcVol -Template
PS C:\&amp;gt; Initialize-NcObjectProperty $query VolumeIdAttributes
PS C:\&amp;gt; $query.VolumeIdAttributes.Name = $volumeName
PS C:\&amp;gt; $query.VolumeIdAttributes.OwningVserverName = $vserverName
PS C:\&amp;gt;
PS C:\&amp;gt; $attributes = Get-NcVol -Template
PS C:\&amp;gt; Initialize-NcObjectProperty $attributes VolumeIdAttributes
PS C:\&amp;gt; $attributes.VolumeIdAttributes.Comment = $guid
PS C:\&amp;gt; Update-NcVol -Query $query -Attributes $attributes


NcController : cluster1
SuccessCount : 1
FailureCount : 0
SuccessList  : {volume_001}
FailureList  : {}



PS C:\&amp;gt; $guid

Guid
----
85de0a6a-a444-41e8-9199-e9c6592d3466


PS C:\&amp;gt; $volume = Get-NcVol -Name volume_001 -Vserver vserver1
PS C:\&amp;gt; $volume.VolumeIdAttributes.Comment
85de0a6a-a444-41e8-9199-e9c6592d3466&lt;/PRE&gt;&lt;P&gt;Then return the GUID as the volumes unique identifer. EG&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Add-WfaWorkflowParameter -Name "VolumeGUID" -Value $guid -AddAsReturnParameter $True&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;One gotcha with using this method to be aware of would be that a volumes comment can be overwritten thereby potentially removing the GUID.&lt;/P&gt;&lt;P&gt;You would need to ensure any processes that set the volume comment appended to it rather than overwriting it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/matt&lt;/P&gt;</description>
      <pubDate>Thu, 10 Mar 2016 00:04:00 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Do-we-have-any-DataONTAP-powershell-toolkit-cmdlet-to-set-privilege-level-for/m-p/116911#M1850</guid>
      <dc:creator>mbeattie</dc:creator>
      <dc:date>2016-03-10T00:04:00Z</dc:date>
    </item>
  </channel>
</rss>

