• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# This file is an example for the sg_persist utility.
2# It discusses using "TransportID"s which are defined (most recently)
3# in SPC-4 revision 20 section 7.5.4 titled: "TransportID identifiers".
4#
5# The sg_persist utility can take one or more "transportID"s from stdin when
6# either the '--transport-id=-" or "-X -" option is given on the command
7# line.
8
9# To see transport IDs decoded after they have been read in (e.g. to check
10# they are well formed) use the verbose flag 3 times (i.e. "... -vvv ...").
11
12# Here is a simple example (for SPI) of a comma separated hex list:
131,0,0,7,0,0,0,1         # SPI, initiator address=7, relative_port_num=1
14
15# and here is the transport specific format for the same thing:
16# spi,1,7
17
18# An example for SAS follows, first as a hex string, then in transport
19# specific format (incremented by 1)
206,0,0,0,50,6,5,b0,0,6,f2,60
21sas,500605b00006f261
22
23# For iSCSI the hex list form is awkward, better to use the transport
24# specific format. [The leading spaces are ignored.]
25    iqn.5886.com.acme.diskarrays-sn-a8675309
26
27
28        # Leading spaces and tabs before a '#' are ok.
29
30
31# dpg 20090824
32