home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / usr / share / doc / sg3-utils / examples / transport_ids.txt < prev   
Encoding:
Text File  |  2007-02-23  |  1.6 KB  |  42 lines

  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 revison 9 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 separted hex list:
  13. 1,0,0,7,0,0,0,1      # SPI, initiator address=0x7, relative_port_num=1
  14.  
  15.         # Leading spaces and tabs before a '#' or ok
  16.              
  17. # Leading spaces and tabs are ignored as are redundant separators (space,
  18. # comma or tab).
  19. #        1,2    ,,,3,4,5,6,7,8,9
  20.  
  21. # Playing around with an iSCSI transportID which is the only one defined
  22. # (in SPC-3 rev20) that can be more than 24 bytes in length.
  23. #5, 0, 0, 18, 41,42,43,0, 0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0
  24.  
  25. # Just playing around with protocol identifiers that aren't defined
  26. #1c,22,33,44,55,66,77,88,99
  27. #a b    ,        c d e f
  28.  
  29. # 'report and move' requires one (and only one) transprtID.
  30. # 'register' and 'register and ignore existing key' can optionally take
  31. # one or more transportIDs.
  32.  
  33. # This file should work for something like this:
  34. # sg_persist --out --register-move --prout-type=1 --transport-id=-
  35. #            --param-rk=111 --param-sark=fff --unreg
  36. #            /dev/sda < examples/transport_ids.txt
  37. #
  38. # ... since there is only one line in this file that has a
  39. # transportID on it that will be decoded (i.e. the "SPI" one above).
  40.  
  41. # dpg 20070223
  42.