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:
The operation completed successfully.
Who is Participating?
hbaberConnect With a Mentor Author Commented:
found it.  

iscsicli listtargets t

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

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

Would have thought this would have worked thou.
iscsicli RemoveTarget 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.
hbaberAuthor Commented:
Answered it myself
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.