I'm trying to use a script to add of lots of volumes to a dataset within OnCommand. From the GUI I would find the volume from the "Unprotected" window and add it to an existing dataset. However, since there are so many I am hoping to somewhat automate it by just invoking a bunch of "DFPM dataset add" commands. Unfortunately, I am running into a problem in that DFPM can't seem to find a volume by its name, only its ID:
You haven't qualified your volume names, that being the reason you weren't able to add it. If your intentions is to add multiple volumes and if they are from them same aggr/filer instead of adding the volume individually you could rather add the aggr or the filer.
This way of adding an aggr or filer to a dataset is called indirect referencing.