NetAppPowershellToolkit FAQ 9.8
NetAppPowershellToolkit FAQ 9.8
FAQ
Abstract
This document is the FAQ for NetApp PowerShell Toolkit. The document covers frequently
asked questions about the NetApp PowerShell Toolkit and its known issues
1 Overview
What Is NetApp PowerShell Toolkit?
nswer: NetApp PowerShell Toolkit (PSTK) is a PowerShell module that provides end-to-end automation
and enables storage administration of NetApp Storage controllers. PSTK is a unified package containing
the PowerShell modules for ONTAP and SANtricity. The ONTAP module contains over 2340 cmdlets and
helps administering FAS, AFF, commodity hardware and cloud. The SANtricity module contains over 300
cmdlets and helps administering the E-Series storage arrays and EF-Series flash arrays.
2 Technical Specifications
Which NetApp Platforms Does PSTK Support?
Answer: PSTK supports E-Series and FAS storage systems (running in either Data ONTAP 7-Mode or
Cluster-Mode).
2 NetApp PowerShell Toolkit – FAQ © 2016 NetApp, Inc. All Rights Reserved.
3 Support
How do I Get Support for PSTK?
Answer: PSTK is supported through community discussions. You can post your queries on ONTAP
Community Discussions and SANtricity Community Discussions.
4 Additional Resources
Where do I find additional resources for PSTK?
Answer: Following are the resources for PSTK:
Getting Started with PSTK
Making the most of PSTK
PSTK Primer
PSTK Best Practices
3 NetApp PowerShell Toolkit – FAQ © 2016 NetApp, Inc. All Rights Reserved.
How do I know which cmdlets to run against the controller and which cmdlets to run against
Vserver?
nswer: Each cmdlet is associated with a Family (cluster or vserver). To view the Family for the cmdlets
use Cmdlets Get-NcHelp or Get-NcCommand. If the family is ‘cluster’ for a cmdlet, then the cmdlet must
be directed to the cluster. If the family is ‘vserver’ for a cmdlet, then the cmdlet must be directed to the
vserver. If the family is ‘cluster,vserver’ for a cmdlet, then the cmdlet can be directed to both cluster and
vserver.
Why does the size returned by Get-NcAggr, Get-NcVol and Get-NcLun differing while it displays
on console and when it is exported to a CSV or stored in a local variable?
nswer: When these cmdlets outputs the size to console, it will be formatted. But when it is stored in a local
variable or exported to csv format, the size is returned in bytes. Use cmdlet ConvertTo-FormattedNumber
to format the size as per your requirement.
4 NetApp PowerShell Toolkit – FAQ © 2016 NetApp, Inc. All Rights Reserved.
6 Common Issues
While installing PSTK on Windows 10, I get an error saying “the application requires PowerShell
3.0 or above.
nswer: Run the PSTK installer with admin privileges.
While converting virtual hard disks using cmdlets ConvertTo-NcVmdk and ConvertTo-NcVhd, I get
an error saying “source and destination offsets are not WAFL block-aligned”.
nswer: The size of the disk must be a multiple of 4Kb. Resize the size of disk to a multiple of 4Kb using
cmdlet Resize-VHD.
While converting a dynamic VHD to VMDK using cmdlet ConvertTo-NcVmdk, I get an error saying
“specified argument was out of the range of valid values. File is not a fixed-size VHD”.
nswer: PSTK does not support dynamic VHD conversion. Convert the dynamic VHD to fixed using cmdlet
Convert-VHD.
While converting virtual disks whose size is greater than 128MB using cmdlets ConvertTo-NcVhd
and ConvertTo-NcVmdk on ONTAP 9.0 and up, I get an error mentioning conversion failure.
Answer: Follow the following steps to resolve this known issue:
Take a snapshot of the volume where the VHD or VMDK resides
Pass the snapshot as a parameter to the cmdlet ConvertTo-NcVhd or ConvertTo-NcVmdk
Delete the snapshot created after the conversion succeeds
Few of the cmdlets are throwing errors on older version of ONTAP saying “Unable to find API”,
although the syntax for the cmdlet is proper.
nswer: Some newer cmdlets are meant only for ONTAP 9.8 and they won’t work for the earlier release of
ONTAP. Please check the release notes for more information.
While using filenames with non-ASCII characters in a volume, they are not handled correctly by
the cmdlets.
nswer: Use “UTF-8” instead.
7 Known Issues
In SANtricity PSTK:
Get-NeAuditLog cmdlet – Fails with a return response of “Value cannot be null” referencing a
parameter named disposition.
Workaround: Use the SANtricity Web Services API endpoint Get
/storage-systemc/{system-id}/audit-log.
Get-NeLocalUsersInfo cmdlet – The returned value for minimumPasswordLength field is null.
Future new releases of the SANtricity OS will return a valid value for the field.
Workaround: Upgrade to the next release of SANtricity OS when available.
Update-NeExternalKeyServerCertificateCsr cmdlet – An exception will be thrown only if
required parameters are used for the cmdlet, no optional parameters.
Workaround: Use the cmdlet with all required and optional parameters.
5 NetApp PowerShell Toolkit – FAQ © 2016 NetApp, Inc. All Rights Reserved.
Get-NeLdapRoles cmdlet – Typo in the synopsis statement on the get-help output for the
cmdlet.
Update-NeSslconfigReset cmdlet Typo in the synopsis statement on the get-help output for the
cmdlet.
© 2012 NetApp, Inc. All rights reserved. No portions of this document may be reproduced without prior written consent of NetApp,
Inc. Specifications are subject to change without notice. NetApp, the NetApp logo, Go further, faster, AutoSupport, Data ONTAP,
and MetroCluster are trademarks or registered trademarks of NetApp, Inc. in the United States and/or other countries. Windows is a
registered trademark of Microsoft Corporation. Mac is a registered trademark of Apple Inc. All other brands or products are
trademarks or registered trademarks of their respective holders and should be treated as such.
6 NetApp PowerShell Toolkit – FAQ © 2016 NetApp, Inc. All Rights Reserved.