<?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: Get-NCAggr and permissions in Microsoft Virtualization Discussions</title>
    <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Get-NCAggr-and-permissions/m-p/118162#M4815</link>
    <description>&lt;P&gt;Hello Richard,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You appear to be connecting to an &lt;STRONG&gt;SVM mangement interface&lt;/STRONG&gt;, the APIs (and consequentially cmdlets) available at the SVM level do not include aggregates. &amp;nbsp;This means that you can not list/show aggregates, and is the same experience that you would have when connecting to an SVM's mangement&amp;nbsp;interface using vsadmin (or an equivalent)..."aggr show" doesn't work. &amp;nbsp;To be fair, that may work at the CLI by enabling permissions...I haven't tested.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can still see which aggregates are assigned (including available capacity) to the SVM using the Get-NcVserver cmdlet:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;(Get-NcVserver).VserverAggrInfoList&lt;/PRE&gt;&lt;P&gt;This changes if you connect to the &lt;STRONG&gt;cluster management interface&lt;/STRONG&gt; using a user who has the necessary permissions. &amp;nbsp;You would then be able to enumerate aggregates and view/modify the properties which they have been entitled to, both at the CLI and using the PSTK.&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;Andrew&lt;/P&gt;</description>
    <pubDate>Mon, 11 Apr 2016 16:47:59 GMT</pubDate>
    <dc:creator>asulliva</dc:creator>
    <dc:date>2016-04-11T16:47:59Z</dc:date>
    <item>
      <title>Get-NCAggr and permissions</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Get-NCAggr-and-permissions/m-p/118154#M4814</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to get the command get-ncaggr (and get-ncvol) &amp;nbsp;to run with the minimum of permissions, but i am currently running into the error message:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;PS E:\&amp;gt; get-ncaggr&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;get-ncaggr :&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;==================================================================================&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;| This cmdlet must be directed to the cluster admin vserver. You are currently |&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;| connected to a data vserver. See the Toolkit web docs (Show-NcHelp) or online |&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;| help (Get-Help Connect-NcController -Examples) to learn more about directing |&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;| Toolkit cmdlets to a cluster or data vserver as required by Data ONTAP. |&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;==================================================================================&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;I am directing the command to the correct vserver. The command will run with my admin &lt;SPAN&gt;privileged&amp;nbsp;&lt;/SPAN&gt;account.&lt;/FONT&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The privileges assigned so far are:&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;PS C:\&amp;gt; Get-NcRole -Role Role1&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;RoleName Vserver AccessLevel CommandDirectoryName&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;-------- ------- ----------- --------------------&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Role1 &amp;nbsp; &amp;nbsp;Admin &amp;nbsp; none &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;DEFAULT&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Role1 &amp;nbsp; &amp;nbsp;Admin &amp;nbsp; readonly &amp;nbsp; &amp;nbsp;storage aggregate&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Role1 &amp;nbsp; &amp;nbsp;Admin &amp;nbsp; readonly &amp;nbsp; &amp;nbsp;storage aggregate create&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Role1 &amp;nbsp; &amp;nbsp;Admin &amp;nbsp; readonly &amp;nbsp; &amp;nbsp;storage aggregate modify&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Role1 &amp;nbsp; &amp;nbsp;Admin &amp;nbsp; readonly &amp;nbsp; &amp;nbsp;storage aggregate show&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Role1 &amp;nbsp; &amp;nbsp;Admin &amp;nbsp; readonly &amp;nbsp; &amp;nbsp;version&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Role1 &amp;nbsp; &amp;nbsp;Admin &amp;nbsp; readonly &amp;nbsp; &amp;nbsp;volume create&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Role1 &amp;nbsp; &amp;nbsp;Admin &amp;nbsp; readonly &amp;nbsp; &amp;nbsp;volume modify&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Role1 &amp;nbsp; &amp;nbsp;Admin &amp;nbsp; readonly &amp;nbsp; &amp;nbsp;volume show&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;These permissions are adequate for getting the aggregate information via SSH.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;Does anyone have any ideas?&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;Thanks,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;Richard&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Apr 2016 15:21:56 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Get-NCAggr-and-permissions/m-p/118154#M4814</guid>
      <dc:creator>Dizz-E</dc:creator>
      <dc:date>2016-04-11T15:21:56Z</dc:date>
    </item>
    <item>
      <title>Re: Get-NCAggr and permissions</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Get-NCAggr-and-permissions/m-p/118162#M4815</link>
      <description>&lt;P&gt;Hello Richard,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You appear to be connecting to an &lt;STRONG&gt;SVM mangement interface&lt;/STRONG&gt;, the APIs (and consequentially cmdlets) available at the SVM level do not include aggregates. &amp;nbsp;This means that you can not list/show aggregates, and is the same experience that you would have when connecting to an SVM's mangement&amp;nbsp;interface using vsadmin (or an equivalent)..."aggr show" doesn't work. &amp;nbsp;To be fair, that may work at the CLI by enabling permissions...I haven't tested.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can still see which aggregates are assigned (including available capacity) to the SVM using the Get-NcVserver cmdlet:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;(Get-NcVserver).VserverAggrInfoList&lt;/PRE&gt;&lt;P&gt;This changes if you connect to the &lt;STRONG&gt;cluster management interface&lt;/STRONG&gt; using a user who has the necessary permissions. &amp;nbsp;You would then be able to enumerate aggregates and view/modify the properties which they have been entitled to, both at the CLI and using the PSTK.&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;Andrew&lt;/P&gt;</description>
      <pubDate>Mon, 11 Apr 2016 16:47:59 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Get-NCAggr-and-permissions/m-p/118162#M4815</guid>
      <dc:creator>asulliva</dc:creator>
      <dc:date>2016-04-11T16:47:59Z</dc:date>
    </item>
    <item>
      <title>Re: Get-NCAggr and permissions</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Get-NCAggr-and-permissions/m-p/118201#M4816</link>
      <description>&lt;P&gt;Thanks for the reply Andrew. &amp;nbsp;&lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://community.netapp.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was connecting to the cluster management interface and not so any specific SVM. The error message itself seems to be&lt;/P&gt;&lt;P&gt;incorrect.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If i connect using a user with the Admin role the command will work. But not with my minimally permissioned user.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;PS E:\&amp;gt; connect-nccontroller -name 10.20.32.214 -Credential admin.user
Name Address Vserver Version
---- ------- ------- -------
10.20.32.214 10.20.32.214 NetApp Release 8.3.1P2: Wed Dec 09 03:10:24 UTC 2015

PS E:\&amp;gt; get-ncaggr
Name State TotalSize Used Available Disks RaidType RaidSize Volumes
---- ----- --------- ---- --------- ----- -------- -------- -------
aggr0_filer01 online 1.4 TB 95% 69.4 GB 3 raid_dp, normal 16 1
**** Snip some more aggregates *****

PS E:\&amp;gt; connect-nccontroller -name 10.20.32.214 -Credential normal.user
Name Address Vserver Version
---- ------- ------- -------
10.20.32.214 10.20.32.214 NetApp Release 8.3.1P2: Wed Dec 09 03:10:24 UTC 2015

PS E:\&amp;gt; get-ncaggr
get-ncaggr :
==================================================================================
| This cmdlet must be directed to the cluster admin vserver. You are currently |
| connected to a data vserver. See the Toolkit web docs (Show-NcHelp) or online |
| help (Get-Help Connect-NcController -Examples) to learn more about directing |
| Toolkit cmdlets to a cluster or data vserver as required by Data ONTAP. |
==================================================================================&lt;/PRE&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;It seems to want some extra permissions. But i can't work out what they are.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;The get-ncvserver command also fails with my minumal user with a permissions error as the current role assigned to the user has literally just the commands listed above.&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;Thanks,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;Richard&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Apr 2016 09:20:26 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Get-NCAggr-and-permissions/m-p/118201#M4816</guid>
      <dc:creator>Dizz-E</dc:creator>
      <dc:date>2016-04-12T09:20:26Z</dc:date>
    </item>
    <item>
      <title>Re: Get-NCAggr and permissions</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Get-NCAggr-and-permissions/m-p/118227#M4817</link>
      <description>&lt;P&gt;Does the user have ontapi permissions for the role you created?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;security login modify -user-or-group-name normal.user -application ontapi -authmethod password -role Role1&lt;/PRE&gt;&lt;P&gt;Andrew&lt;/P&gt;</description>
      <pubDate>Tue, 12 Apr 2016 17:51:13 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Get-NCAggr-and-permissions/m-p/118227#M4817</guid>
      <dc:creator>asulliva</dc:creator>
      <dc:date>2016-04-12T17:51:13Z</dc:date>
    </item>
    <item>
      <title>Re: Get-NCAggr and permissions</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Get-NCAggr-and-permissions/m-p/118245#M4818</link>
      <description>&lt;P&gt;Hi Andrew,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The user does have the Ontapi application listed in its logon privs.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Richard&lt;/P&gt;</description>
      <pubDate>Wed, 13 Apr 2016 08:44:38 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Get-NCAggr-and-permissions/m-p/118245#M4818</guid>
      <dc:creator>Dizz-E</dc:creator>
      <dc:date>2016-04-13T08:44:38Z</dc:date>
    </item>
    <item>
      <title>Re: Get-NCAggr and permissions</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Get-NCAggr-and-permissions/m-p/118256#M4819</link>
      <description>&lt;P&gt;OK. So i seem to have had this solved.... I recreated the permissions using the folllowing:&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;PS C:\&amp;gt; $roles = get-ncrole -Role Role1

PS C:\&amp;gt; foreach ($role in $roles) {Remove-NcRole -Role Role1 -Vserver Cluster1 -CommandDirectory $role.CommandDirectoryName -Confirm:$false}

PS C:\&amp;gt; foreach ($role in $roles) {New-NcRole -Role Role1 -Vserver Cluster1 -CommandDirectory $role.CommandDirectoryName -AccessLevel readonly}&lt;/PRE&gt;&lt;P&gt;And it can now run get-ncaggr without errors.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The permissions assigned to my role are identical to as above but now it works.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I wonder if there is something specific, unexpected or odd about the order in which i created the permissions in the first place? &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Apr 2016 10:15:54 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Get-NCAggr-and-permissions/m-p/118256#M4819</guid>
      <dc:creator>Dizz-E</dc:creator>
      <dc:date>2016-04-13T10:15:54Z</dc:date>
    </item>
    <item>
      <title>Re: Get-NCAggr and permissions</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Get-NCAggr-and-permissions/m-p/157827#M6206</link>
      <description>&lt;P&gt;Four years later and with Ontap 9.5 I encountered the same odd behaviour.&lt;BR /&gt;I applied your trick and deleted and recreated the role with the same permissions.&lt;/P&gt;
&lt;P&gt;I worked!&lt;/P&gt;
&lt;P&gt;Thanks for saving me&amp;nbsp; a lot of time searching for the "missing" permission!&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jul 2020 09:37:25 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Get-NCAggr-and-permissions/m-p/157827#M6206</guid>
      <dc:creator>dietermann</dc:creator>
      <dc:date>2020-07-17T09:37:25Z</dc:date>
    </item>
  </channel>
</rss>

