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|...
$ print_netapp_instances.pl -H sim83 -o volume
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.