Monday, November 19, 2018

Wfa workflows & Powershell script for SVM Dr

Svm Dr : before svm dr was embedded in ontap, we created our own scripts.  Then the embedded svm dr popped up and the scripts faded away.  But with fabricpool and MCC, svm dr is not supported.  In the background Olivier Masson continued the svm dr script of Jerome Blanchet.  And I had 2 customers having the need for it, so I jumped on the train...

Tuesday, November 13, 2018

Wfa Setup Workflow Generator

If you create advanced workflows, you might have the need to upload you own files. Typically modules, or some config files. Modules need to be copied tot the \posh\modules directory. Other files you might want to copy to the WFA root directoy or maybe just a custom directory. That means that you need to create a setup manual saying where the customer should copy the files you provide.

But why not just create a workflow that does this for you. it can be done, if the content is limited in size (Max 2MB).

Friday, November 9, 2018

Workflow encrypt all volumes

New workflow added to github that will encrypt all volumes that are not yet encrypted.

Requires cdot & ocum 9.3 and cdot pack 1.5.2 (don't use 1.5.1 => has a bug in vol move command)

download at :

Sunday, October 21, 2018

Autotiering with WFA

Autotiering in NetApp is no longer unknown.  With FlashPool and FabricPool we have actual autotiering where hot blocks get moved to a faster medium (FlashPool) or cold blocks get moved to an S3 bucket (FabricPool).

But that's about it.  I'm not saying its not awesome, because it is.  I'm just saying, there can be more.

If you just think about it, NetApp already has a Cluster concept (Cdot) which allow different tiers (For example mixing an AFF with a FAS) and we already have the capability to move volumes between those tiers (vol move).

Thursday, July 26, 2018

Powershell Rest Calls (invoke-restapi) fail with latest versions - Force TLS

If you start experiencing Rest-call failures in PowerShell (Invoke-RestApi, Invoke-WebRequest, ...), you should realize that NetApp has dropped SSL support.

So you must force TLS now.

This is done by adding this code at the beginning :

# Force TLS
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12

Wednesday, July 25, 2018

Tuning WFA 4.2

My collegue José is working on one of the largest WFA installs I know of and he told me this after migrating from 4.0 to 4.2 :

After a migration from WFA 4.0 to a different server on WFA 4.2 we started to see slowness up to the point where the application was unusable.

The execution log was taking minutes to populate, and when it was populating for one user, the rest could do nothing, get timeout errors and messages about "server busy".

Tuesday, July 24, 2018

Grab WFA execution log with powershell

For logging purposes, you might want the need to grab a WFA execution log.  I initially wrote this to dump those in an OCI database, but for this post, I narrowed it down to just dumping them in CSV-files (jobinfo, input parameters & return parameters).  The original script also updates statuses (for example, when a jobstatus changes from failed => resume => completed), but that compare is only possible when we dump in a database and i can query it again, so for this csv-output method, an update won't work (but I kept the code in comment).

I did make the script incremental.  Job logs can take a while to grab, so I allow a timeout.  I keep the last jobid in a simple text-file.  Original, obviously, I stored this in the database.  I you are interested in the the database version, give me a ping.

Friday, July 20, 2018

Get rid of Get-WfaLogger and override Write-Host

A customer recently asked if it's possible to override write-host, avoiding Get-WfaLogger and thus be able to convert existing PowerShell scripts to Wfa-commands by a simple copy-paste.

I tried it, and yes it's possible.  Well, you would still need to add 2-lines of code, and this doesn't necessarily mean that you can just copy paste any piece of code in there (for example the parameters of your script must be strong-typed and must match the support parameters, there are other native wfa cmdlets like "connect-wfacluster", ...)

Wednesday, June 20, 2018

How to calculate a sum in a repeat row in WFA

Ever needed to add a repeat row and calculate a sum on the fly ?
This is built into wfa already.

For example, you want a user input table, where you add qtrees and their sizes, but you would need a sum at some point so create the volume (where the size is the sum of the qtrees).

Monday, June 18, 2018

Wfa Invoke-NcSsh broken

In WFA4.2 you might have noticed Invoke-NcSsh doesn't work as it used to.  You need putty, and even then there seems to be a memory leak.

WFA has a custom cmdlet called "Invoke-WfaClusterCli", which is
doing the same thing, assuming you wanted to SSH to a Netapp Cluster ofcourse :)

I posted the code below, just for reference.  Obviously in WFA you can just call it, as it's embedded in the WFAWrapper module.