User Manual

Rev 2.0-3.0.0
Mellanox Technologies
43
ibsrpdm
ibsrpdm is using for the following tasks:
1. Detecting reachable targets
a. To detect all targets reachable by the SRP initiator via the default umad device (/dev/umad0), execute the
following command:
This command will output information on each SRP Target detected, in human-readable form.
Sample output:
b. To detect all the SRP Targets reachable by the SRP Initiator via another umad device, use the following
command:
2. Assistance in creating an SRP connection
a. To generate output suitable for utilization in the “echo” command of Section 4.1.2.2, add the
‘-c’ option to ibsrpdm:
Sample output:
b. To establish a connection with an SRP Target using the output from the ‘ibsrpdm -c’ example above,
execute the following command:
The SRP connection should now be up; the newly created SCSI devices should appear in the listing
obtained from the ‘fdisk -l’ command.
ibsrpdm
IO Unit Info:
port LID: 0103
port GID: fe800000000000000002c90200402bd5
change ID: 0002
max controllers: 0x10
controller[ 1]
GUID: 0002c90200402bd4
vendor ID: 0002c9
device ID: 005a44
IO class : 0100
ID: LSI Storage Systems SRP Driver 200400a0b81146a1
service entries: 1
service[ 0]: 200400a0b81146a1 / SRP.T10:200400A0B81146A1
ibsrpdm -d <umad device>
ibsrpdm -c
id_ext=200400A0B81146A1,ioc_guid=0002c90200402bd4,
dgid=fe800000000000000002c90200402bd5,pkey=ffff,service_id=200400a0b81146a1
echo -n id_ext=200400A0B81146A1,ioc_guid=0002c90200402bd4,
dgid=fe800000000000000002c90200402bd5,pkey=ffff, service_id=200400a0b81146a1 > /sys/
class/infiniband_srp/srp-mthca0-1/add_target