Microsoft Virtualization Discussions

Highlighted

Re: What would YOU like to see in the Data ONTAP PowerShell Toolkit?

You likely have some base set of licenses installed on all your controllers, and some controllers may have additional licenses.  You could configure your script in such a way that you import the base, then do a license check before importing optional settings:

Import-csv base.csv | set-naoption

$Flexcache=get-nalicense |? {$_.Service -eq "flexcache_nfs"}
if($Flexcache.Code -ne $null) {import-csv flexcache.csv | set-naoption}

Imports the base, then checks for a flexcache_nfs license and imports those settings if the license is present.

J

Re: What would YOU like to see in the Data ONTAP PowerShell Toolkit?

I would like to see integration with DFM.  I guess that would be the DFM PowerShell Toolkit though eh?

Highlighted

Re: What would YOU like to see in the Data ONTAP PowerShell Toolkit?

You must be peeking at the NetApp Managability SDK v4 to the right 🙂

J

Highlighted

Re: What would YOU like to see in the Data ONTAP PowerShell Toolkit?

I found out why the options were not importing properly. I had some extra white space after the option in the csv. I did not notice it at first because I was using EXCEL to view the file, but when I opened it in wordpad I was able to clearly see it. I corrected these and then I was able to import.

Highlighted

Re: What would YOU like to see in the Data ONTAP PowerShell Toolkit?

Glad to hear that you've got it.  It you look over in samples, you'll find an example of a small powershell GUI to import options.,  Hope this helps.

Happy Scripting

J

Highlighted

Re: What would YOU like to see in the Data ONTAP PowerShell Toolkit?

As a previous poster noted, being able to configure network objects would be very useful:

  • Interfaces
  • VLANs
  • VIFs
  • IPSpaces

More vfiler capabilities would be useful also.  You don't have to tunnel all of these commands to vfilers especially with Data ONTAP 7.3.2 and later when many more ZAPIs were added to vfilers.

From the root administrator perspective, being able to do these would be much appreciated:

  • vfiler migrate
  • vfiler DR

From a general vfiler perspective, being able to configure CIFS shares or NFS exports would also be ideal.

Highlighted

Re: What would YOU like to see in the Data ONTAP PowerShell Toolkit?

Is there a way to change individual user quotas on a vfiler using the toolkit?  If not, what is the easiest way to do so?

Thanks!!

Highlighted

Re: What would YOU like to see in the Data ONTAP PowerShell Toolkit?

You should be able to connect to the vfiler context like this:


PS C:\> Connect-NaController dunn -Vfiler vfiler1


OntapiMajorVersion : 1
OntapiMinorVersion : 12
Protocol           : RPC
Vfiler             : vfiler1
Name               : dunn
Address            : 10.61.167.60
Port               : 0
Credentials        :
ValidateIncoming   : False
ValidateOutgoing   : False
Trace              : False


PS C:\> Add-NaQuota -Type user -Target vf1user -Volume testvol -Qtree "" -DiskLimit 50g


Name                           Value
----                           -----
Threshold                      -
FileLimit                      -
DiskLimit                      53687091200
PerformUserMapping             False
SoftFileLimit                  -
QuotaError                     NetApp.Ontapi.Filer.Quota.QuotaError
SoftDiskLimit                  -


PS C:\> Get-NaQuotaEntry


Line        : vf1user    user@/vol/testvol    52428800K    -    -    -    -
Qtree       :
QuotaError  : NetApp.Ontapi.Filer.Quota.QuotaError
QuotaTarget : vf1user
QuotaType   : user
Volume      : testvol

Highlighted

Re: What would YOU like to see in the Data ONTAP PowerShell Toolkit?

Thanks for the quick reply!  That worked perfectly.

Highlighted

Re: What would YOU like to see in the Data ONTAP PowerShell Toolkit?

I'd like to have the ability to view the Event logs for the various components, unless I have missed this already! Specifically snapmirror events which could then be parsed for errors etc.

If this already exists please let me know!

Dan

Highlighted

Re: What would YOU like to see in the Data ONTAP PowerShell Toolkit?

You can use read-nafile to place the contents of the snapmirror log in a variable.

$log=read-nafile /vol/vol0/etc/log/snapmirror.0

also see get-nafile

J

Highlighted

Re: What would YOU like to see in the Data ONTAP PowerShell Toolkit?

Thanks fjohn,  exactly what I was after and works a treat. Loving Data ONTAP powershell, brilliant.

Dan

Highlighted

Re: What would YOU like to see in the Data ONTAP PowerShell Toolkit?

I would like to be able to modify cifs shares specifically access permissions.

For example on the command line I would say "cifs access "Share" SID  Full"

Thanks.

Highlighted

Re: What would YOU like to see in the Data ONTAP PowerShell Toolkit?

I would like to be able to use the PSTK against archived autosupport data.

Thanks,

Gene

Highlighted

Re: What would YOU like to see in the Data ONTAP PowerShell Toolkit?

Hi, bcoy, thanks.  It appears the APIs for modifying CIFS shares' access permissions are fairly new.  I'll add that to the list to consider properly for an upcoming release (after Toolkit 1.1).

Highlighted

Re: What would YOU like to see in the Data ONTAP PowerShell Toolkit?

Hi, Gene.  Are you asking about the EMS data in /etc/log/ems?  Those logs are XML formatted, so they shouldn't be difficult to handle in PowerShell.

Check out the KB!
NetApp Insights To Action
All Community Forums