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.
A new version of PSTK is available and the user may want to try that out. WFA and DataONTAP PSTK being separate products, their releases are not always aligned. So its always possible that new version of ONTAP PSTK are released. Users may want to use the new featuresor and fixes the new PSTK provides without having to wait for the new WFA to have it bundled. So the way is to upgrade your WFA's DataONTAP PSTK
There might also be a reason to move to an older PSTK version that from what WFA has bundled along. Or perhaps stay with the existing DataONTAP PSTK but upgrade your WFA to a new version. The new PSTK has some bugs and its breaking my existing contents. I rather stay with the old one till NetApp fixes the PSTK bugs. This should not stop me from using the new WFA features. You Move to new WFA, but use the old DataONTAP PSTK.
How to check the current version of DataONTAP PSTK in WFA?
Login to your WFA windows machine and to to WFA/bin folder
Double-click to launch ps.cmd file . It will launch a powershell session with the all the WFA modules loaded.
Run the below cmdlets. You should get the output as given below in green.
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.
On your WFA server, download the lastest PSTK version from mysupport.netapp.com. Its an MSI file.
Install the .MSI leaving all defaults
Go to location C:\Program Files (x86)\NetApp\NetApp PowerShell Toolkit\Modules\ and copy the folder DataONTAP
Go to location: <WFA_install_location\NetApp\NetApp PowerShell Toolkit\Modules\ and replace existing the DataONTAP folder with the copied one.
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