5. Microsoft iSCSI Initiator

 

 


Microsoft iSCSI Initiator

 

Tools:

  • GUI Tools: iscsicpl.cpl
  • CMD Tools: iscsicli.exe

OS 開機時發現 Targets 的時間:

Persistent Targets < Bound Volumes

CLI Example:

iscsicli ListTargets

Microsoft iSCSI Initiator Version 6.1 Build 7601

Targets List:
    iqn.2007-09.jp.ne.peach.istgt:mydisk
The operation completed successfully.

iscsicli LoginTarget <TargetName> <ReportToPNP><TargetPortalAddress> <TargetPortalSocket> <InitiatorInstance>

If ReportToPnP is F, the device will not appear in device manager.(T / F)

 

iscsicli SessionList

Microsoft iSCSI Initiator Version 6.1 Build 7601

Total of 1 sessions

Session Id             : fffffa80028aa428-4000013700000001
Initiator Node Name    : iqn.2013-06.scfulfil.local:winsrv02
Target Node Name       : (null)
Target Name            : iqn.2007-09.jp.ne.peach.istgt:mydisk
ISID                   : 40 00 01 37 00 01
TSID                   : 04 00
Number Connections     : 1

    Connections:

        Connection Id     : fffffa80028aa428-0
        Initiator Portal  : 0.0.0.0/24013
        Target Portal     : 192.168.88.201/3260
        CID               : 01 00

    Devices:
        Device Type            : Disk
        Device Number          : 1
        Storage Device Type    : 7
        Partition Number       : 0
        Friendly Name          : FreeBSD iSCSI DISK SCSI Disk Device
        Device Description     : Disk drive
        Reported Mappings      : Port 3, Bus 0, Target Id 0, LUN 0
        Location               : Bus Number 0, Target Id 0, LUN 0
        Initiator Name         : Root\ISCSIPRT\0000_0
        Target Name            : iqn.2007-09.jp.ne.peach.istgt:mydisk
        Device Interface Name  : \\?\scsi#disk&ven_freebsd&prod_iscsi_disk#1&1c121344&0&000000#{53f56307-b6bf-11d0-94f2-00a0c91efb8b}
        Legacy Device Name     : \\.\PhysicalDrive1
        Device Instance        : 0x82c
        Volume Path Names      :
                                 S:\

 

iscsicli ListTargetPortals

Microsoft iSCSI Initiator Version 6.1 Build 7601

Total of 1 portals are persisted:

    Address and Socket   : 192.168.88.201 3260
    Symbolic Name        : ??
    Initiator Name       :
    Port Number          : <Any Port>
    Security Flags        : 0x0
    Version              : 0
    Information Specified: 0x0
    Login Flags          : 0x0

The operation completed successfully.

 

iscsicli LogoutTarget <SessionId>

 

 

Favorite Targets & Volumes and Devices

 

Favorite Targets:

always attempt to reconnect to a target whenever the computer is rebooted

Volumes and Devices:

currently persistently bound by Microsoft iSCSI Initiator.
(If a volume in the list is currently mounted, then the drive letter and mount point are shown.)
(If a volume is not mounted, the device interface is not shown. For each device, the device interface name is shown.)

Server08:

工具: iscsicpl.exe

Error: CHAP secret geven does not conform to the standard

12 bytes required by the spec.(12-16 characters)

Example:

123456789012

 


 

 

Creative Commons license icon Creative Commons license icon