beautypg.com

Dell POWEREDGE M1000E User Manual

Page 486

background image

454

Fabric OS Command Reference

53-1001764-02

iscsiCfg

2

To bind user CHAP to a target:

switch:admin>

iscsicfg --addusername tgt-t iqn.2005-10.com.brocade.tgt1 -u user1

The operation completed successfully.

To unbind user CHAP from a target:

switch:admin>

iscsicfg --deleteusername tgt -t iqn.2005-10.com.brocade.tgt1 -u user1

The operation completed successfully.

To clear the target database:

switch:admin>

iscsicfg --clear tgt

The operation completed successfully.

To create iSCSI targets with all available FC targets:

switch:admin>

iscsicfg --easycreate tgt

This will create iSCSI targets for ALL FC targets.

This could be a long-running operation. Continue [N]: Y

Index FC WWN iSCSI Name Status

[Output truncated]

To add a LUN map:

switch:admin>

iscsicfg --add lun -t iqn.2005-10.com.brocade.tgt1 -w 22:00:00:04:cf:20:5d:33 -l 0:0

The operation completed successfully.

switch:admin>

iscsicfg --add lun -t iqn.2005-12.com.brocade.tgt2 -w 22:00:00:04:cf:75:5b:9a -l 2-5:5-8

The operation completed successfully.

To display LUN maps:

switch:admin>

iscsicfg --show lun

Number of records found: 2

Target: iqn.2005-10.com.brocade.tgt1

Number of LUN Maps: 1

FC WWN Virtual LUN(s) Physical LUN(s)

22:00:00:04:cf:20:5d:33 0 0

Target: iqn.2222-23.com.brocade:50:06:0e:80:00:43:80:a2

Number of LUN Maps: 5

FC WWN Virtual LUN(s) Physical LUN(s)

50:06:0e:80:00:43:80:a2 0

0x0000000000000000

50:06:0e:80:00:43:80:a2 1 0x0001000000000000

50:06:0e:80:00:43:80:a2 2

0x0002000000000000

50:06:0e:80:00:43:80:a2 3 0x0009000000000000

50:06:0e:80:00:43:80:a2 4

0x003e000000000000

To create a DD entry with a specified name and members:

switch:admin>

iscsicfg --create dd -d mynewdd -m iqn.2222 23.mytest1,iqn.234358.newtest1

The operation completed successfully.

To add a new member to an existing DD:

switch:admin>

iscsicfg --add dd -d mynewdd -m iqn.2222-23.mytest3

The operation completed successfully.