Array Setup and Networking
cancel
Showing results for 
Search instead for 
Did you mean: 

remove Target name manually with get-esxcli

 
SOLVED
Go to solution
vmw9
Frequent Advisor

remove Target name manually with get-esxcli

any idea how I can manually remove Static discovery target names via command line?

I am removing some volumes from all my esxi host and need to remove the static discovery target name Capture.JPG

I am trying to do it with get-esxcli but I do not see these static discovery target names

$esxcli.iscsi.adapter.discovery.statictarget.list()

Capture.JPG

1 REPLY
kkupfer52
Occasional Advisor
Solution

Re: remove Target name manually with get-esxcli

Hi Tony,

I just cleaned my lab and removing the Dynamic Discovery Address removed all static entries. You just must make sure that really nothing is connected to these static entries.

Bildschirmfoto 2015-07-23 um 23.23.58.png

The static entries:

Bildschirmfoto 2015-07-23 um 23.24.16.png

Then I ran:

~ # esxcli iscsi adapter discovery sendtarget remove --adapter=vmhba33 --address=192.168.179.13

And there you go:

Bildschirmfoto 2015-07-23 um 23.24.32.png

I hope this helps.

-Klaus