VMware Cloud Community
lvln
Enthusiast
Enthusiast

esxcli remove/add scsi device

hello,

I have this king of device plugged to my esx :

naa.500110a00161fee2

   Device Display Name: HP Serial Attached SCSI Tape (naa.500110a00161fee2)

   Storage Array Type: VMW_SATP_ALUA

   Storage Array Type Device Config: {implicit_support=on;explicit_support=off; explicit_allow=on;alua_followover=on;{TPG_id=0,TPG_state=AO}}

   Path Selection Policy: VMW_PSP_MRU

   Path Selection Policy Device Config: Current Path=vmhba2:C2:T0:L0

   Path Selection Policy Device Custom Config:

   Working Paths: vmhba2:C2:T0:L0

and sometimes my vm can't reach the device from   :

mt -f /dev/nst0 status

/dev/nst0: No such file or directory

what I used to do is to detach and attach the device to the vm from ui.

my question is if i could do it with power cli ?

Regards

Reply
0 Kudos
2 Replies
lvln
Enthusiast
Enthusiast

my question is first related for esxcli and ... I haven't found the response but maybe its in powercli that I should look first.

Reply
0 Kudos
lvln
Enthusiast
Enthusiast

I am digging with this :

vmware-cmd.pl -U root -P XXXXX -H XXXX  /vmfs/volumes/516ecbf0-144f8977-c8df-441ea13a93ca/WEB/vm.vmx connectdevice "SCSI Tape HP"

But the device is not found, maybe I have the wrong name and  I can't find a cmd to list the device to get the good name ..

Reply
0 Kudos