iscsicli help

How do I remove the 2nd target from the list of targets?  The GUI says it is inactive and if I click refresh in the GUI it will disappear.  How do I do this refresh from CLI?
C:\LH_backup_script>iscsicli ListTargets
Microsoft iSCSI Initiator version 2.0 Build 3497

Targets List:
    iqn.2003-10.com.lefthandnetworks:hqsan:39379:nas-restore
    iqn.2003-10.com.lefthandnetworks:hqsan:39906:snapbak-fs1
    iqn.2003-10.com.lefthandnetworks:hqsan:39929:snap-bak-fs1
The operation completed successfully.
LVL 1
hbaberAsked:
Who is Participating?
 
hbaberConnect With a Mentor Author Commented:
found it.  

iscsicli listtargets t

Im not sure what the 't' does.  Not in documentation
0
 
Subhashish LahaCommented:
Try running below command

iscsicli RefreshTargetPortal <TargetPortalAddress> <TargetPortalSocket> [HBA Name] [Port Number]
0
 
hbaberAuthor Commented:
This didn't work
iscsicli RefreshTargetPortal 10.10.10.175 3260

Would have thought this would have worked thou.
iscsicli RemoveTarget iqn.2003-10.com.lefthandnetworks:hqsan:39906:snapbak-fs1 returns
Microsoft iSCSI Initiator version 2.0 Build 3497
The target name is not found or is marked as hidden from login.

Again, GUI shows this target as inactive.
0
 
hbaberAuthor Commented:
Answered it myself
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.