Monday, May 6, 2019

Powershell script to detect non logged-in initiators of lun on a netapp cdot cluster

A colleague of mine got a customer request to find a way to alert when luns had initiators that were not logged-in.

I wrote him this little piece of code that will dump this information.
It could be easily embedded in WFA and ran on all clusters.
You can then report on it as you please.

Tuesday, April 9, 2019

Find first available object with number suffix

Sometimes you need to find a first available "something" with number.  For example you have a naming conventions for volumes like "prefix" + number ("myvolume002" for example).

So you probably want to find the next available.  Usually you probably use the incremental naming procedure (

That works great.  But sometimes objects (like volumes) get removed and then you get gaps.  Some customers don't like that and want to refill those gaps.

Tuesday, March 5, 2019

Setting ontap volume options such as atime-update

Sometimes you need to set a simple volume option such as :

  • maxdirsize
  • nosnap
  • nvfail
  • no_atime_update
  • fs_size_fixed
  • ...
and you might not immediately know where to do this. 
Chances are that you want to set these options the moment you create the volume.  Because there so many, wfa took a shortcut and bundled them all together in 1 variable called "options". 

Friday, February 22, 2019

Wfa Aggregate Filter on capacity and performance

Filter not only on capacity but also on performance

By default you probably only filter on capacity when searching for an aggregate.  With this filter you can also filter on performance.

To use this filter you need to implement an included datasource that collects the performance data.

Thursday, January 31, 2019

Runas in WFA command

One of my colleagues asked me this week how he could run a PowerShell action as another user.

He wanted to move files between CIFS shares but this specific action required specific windows credentials and they didn't want to give the WFA service those rights.

Here is what is possible and what not...

Monday, January 7, 2019

WFA maintenance workflow (powershell only)

If you are working with WFA quite a lot, there are some maintenance tasks that might be handy.  And they are either not possible in the GUI, or they take a lot of manual work.

This is an updated version from v1.0.1 tot v1.0.2 (added more options)
  • Clean ALL or some execution logs
  • Clean ALL or some reservations
  • Enable Full RBAC
here is a workflow to do this...