All, (or Luc lol)
I am wanting to use the detach disk function, but instead of passing naa.id I'd like to be able to pass the datastore name of an already unmounted datastore to get the naa id . I would also like to pass a list of hosts as opposed to doing every host that has it attached. I have looked at Alan's functions but his will do every host as opposed to being able to pass a specific host.
I had taken a whack at it a while back, but am a bit stumped on how to do it.
http://www.lucd.info/2011/11/25/lun-juggling-in-vsphere-5/
Any help?