Today I was asked if it were possible to add a switch to multi-instance checks, such as the check for volumes or aggregates, that returns a list of instance names which could then be used for other purposes (e.g. creating checks using the op5 API).

I am leaning towards creating a separate script for this feature.

$ print_netapp_instances.pl -H <filer> -o volume|aggregate|disk|...

Example:

$ print_netapp_instances.pl -H sim83 -o volume
vol0
vol1
vol_bak01
vol_bak03
vol_sales
vol_contracts
...

The output would include a newline-separated list of instance names. One could keep the output format flexible, if needed, using --format=list|csv|...

Feedback is appreciated, by E-Mail or comment.