2015-10-18 02:01 AM
Why to upgrade or modify DataONTAP PSTK module in WFA?
WFA bundles the latest version of the available DataONTAP Powershell Toolkit(PSTK) with the WFA installer package. However WFA users may require to use a different version of PSTK following reasons.
How to check the current version of DataONTAP PSTK in WFA?
PS C:\Program Files\NetApp\WFA\bin> Get-natoolkitversion
Major Minor Build Revision
----- ----- ----- --------
3 3 0 62
Where is the DataONTAP PSTK located within WFA?
<WFA Installation directory>\WFA\POSH\Module you'll see a folder names DataONTAP. This is the ONTAP PSTK module. So all you need is to replace this folder( and its contents) with the new one.
The WFA Powershell Profile
A powershell profile provides way for customization on what all all modules to be loaded when the powershell session starts. The WFA powershell profile is the file
<WFA Installation directory>\WFA\POSH\profile.ps1
If you open it for editing you'll see all the modules that its importing. DataONTAP PSTK is one of them.
How to Upgrdae the Data Ontap PSTK version using the MSI installer?
ONTAP powershell Tool kit these days is only available as .msi installers. So if you want to upgrde the DataONTAP PSTK of your WFA server, do the following steps.
You are done.
Alternately and if you don't want to copy the folder, you can modify the WFA powershell profile i.e. profile.ps1 to start pointing to the new DataONTAP module location
1. Open \WFA\POSH\profile.ps1 using some editor
2. Comment the line
Add the below line
Import-Module "C:\Program Files (x86)\NetApp\NetApp PowerShell Toolkit\Modules\DataONTAP"
4. Save it.
No need to retart WFA services etc with either ways.
How to upgrade WFA but stay with the older version on DataONTAP PSTK or have an older version of Data ONTAP PSTK?
As explained above the folder DataONTAP is the concerned module. To retain your existing PSTK:
You are done.