title: Interpreting LUN id and Target id in AIX using lsattr
body: <p>I am very new to AIX, I found a command in AIX, lsattr, which is helpful to get the SCSI id and LUN id of a device. I can not understand how to interpret the value of SCSI id and LUN id. Here is a sample output:</p>
  
  <pre><code>
  bash-4.2# lsattr -El hdisk693
  .......
  lun_id        0x25f000000000000             Logical Unit Number ID           False
  scsi_id       0x21300                       SCSI ID                          False
  .......
  </code></pre>
  
  <p>I have skipped the lines that are not relevant. </p>
  
  <p>1) <strong>The LUN id is 0x25f000000000000 which is huge</strong>, read in some blogs that we have to right shift this by 48 bits to get the actual value, where is this documented?</p>
  
  <p>2) Also what about the <strong>SCSI id, even this value looks huge, 0x21300</strong></p>
  
  <p>Can someone please help me on this?</p>
  
  <p>Thanks &amp; Regards,</p>
  
  <p>Arun Vijapur</p>