satheeshsatz
Enthusiast
Enthusiast

Remove Detached LUN from esxi

i am using esxcli storage core device detached remove -d NAA.ID to remove the detached(status=off) LUNs from each esxi hosts individually.

how can i use powercli script to identify the detached LUNs(esxcli storage core device detached list) and remove it from the host.

LucD

Regards, Satheesh