<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Retrieving disk serial number programmatically in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/retrieving-disk-serial-number-programmatically/m-p/2853044#M487142</link>
    <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;I am trying to retrieve the disk serial number programmatically.&lt;BR /&gt;I saw a post&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xc4bf0bce6f33d6118fff0090279cd0f9,00.html" target="_blank"&gt;http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xc4bf0bce6f33d6118fff0090279cd0f9,00.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;that gives a way (run cstm tool and parse the output).&lt;BR /&gt;&lt;BR /&gt;Can we retrieve the serial number by calling some API in C&lt;BR /&gt;or a kernel call?&lt;BR /&gt;&lt;BR /&gt;How does cstm find the serial number? (I tried running tusc,&lt;BR /&gt;but couldn't extract much info). Is it doing ioctl? If yes,&lt;BR /&gt;then what IOCTL code can be used to get the serial number?&lt;BR /&gt;&lt;BR /&gt;Any help will be appreciated.&lt;BR /&gt;&lt;BR /&gt;With regards,&lt;BR /&gt; Nikhil&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;P.S. this thread has been moved&amp;nbsp;from Disk to HP-UX &amp;gt; sysadmin. - Hp forum moderator&lt;/P&gt;</description>
    <pubDate>Tue, 03 Jun 2014 04:31:54 GMT</pubDate>
    <dc:creator>Nikhil_1</dc:creator>
    <dc:date>2014-06-03T04:31:54Z</dc:date>
    <item>
      <title>Retrieving disk serial number programmatically</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/retrieving-disk-serial-number-programmatically/m-p/2853044#M487142</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;I am trying to retrieve the disk serial number programmatically.&lt;BR /&gt;I saw a post&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xc4bf0bce6f33d6118fff0090279cd0f9,00.html" target="_blank"&gt;http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xc4bf0bce6f33d6118fff0090279cd0f9,00.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;that gives a way (run cstm tool and parse the output).&lt;BR /&gt;&lt;BR /&gt;Can we retrieve the serial number by calling some API in C&lt;BR /&gt;or a kernel call?&lt;BR /&gt;&lt;BR /&gt;How does cstm find the serial number? (I tried running tusc,&lt;BR /&gt;but couldn't extract much info). Is it doing ioctl? If yes,&lt;BR /&gt;then what IOCTL code can be used to get the serial number?&lt;BR /&gt;&lt;BR /&gt;Any help will be appreciated.&lt;BR /&gt;&lt;BR /&gt;With regards,&lt;BR /&gt; Nikhil&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;P.S. this thread has been moved&amp;nbsp;from Disk to HP-UX &amp;gt; sysadmin. - Hp forum moderator&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jun 2014 04:31:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/retrieving-disk-serial-number-programmatically/m-p/2853044#M487142</guid>
      <dc:creator>Nikhil_1</dc:creator>
      <dc:date>2014-06-03T04:31:54Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieving disk serial number programmatically</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/retrieving-disk-serial-number-programmatically/m-p/2853045#M487143</link>
      <description>Nikhil,&lt;BR /&gt;I saw this information in disk log pages. How to get it from C - ask in languages forum on ITRC&lt;BR /&gt;Eugeny</description>
      <pubDate>Wed, 27 Nov 2002 09:49:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/retrieving-disk-serial-number-programmatically/m-p/2853045#M487143</guid>
      <dc:creator>Eugeny Brychkov</dc:creator>
      <dc:date>2002-11-27T09:49:52Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieving disk serial number programmatically</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/retrieving-disk-serial-number-programmatically/m-p/2853046#M487144</link>
      <description>Thanks Eugeny.&lt;BR /&gt;Could you please point me to the exact forum name?&lt;BR /&gt;&lt;BR /&gt;With regards,&lt;BR /&gt; Nikhil</description>
      <pubDate>Wed, 27 Nov 2002 10:33:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/retrieving-disk-serial-number-programmatically/m-p/2853046#M487144</guid>
      <dc:creator>Nikhil_1</dc:creator>
      <dc:date>2002-11-27T10:33:55Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieving disk serial number programmatically</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/retrieving-disk-serial-number-programmatically/m-p/2853047#M487145</link>
      <description>&lt;A href="http://forums.itrc.hp.com/cm/CategoryHome/1,,150,00.html" target="_blank"&gt;http://forums.itrc.hp.com/cm/CategoryHome/1,,150,00.html&lt;/A&gt;&lt;BR /&gt;hpux languages&lt;BR /&gt;Eugeny</description>
      <pubDate>Wed, 27 Nov 2002 10:54:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/retrieving-disk-serial-number-programmatically/m-p/2853047#M487145</guid>
      <dc:creator>Eugeny Brychkov</dc:creator>
      <dc:date>2002-11-27T10:54:38Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieving disk serial number programmatically</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/retrieving-disk-serial-number-programmatically/m-p/2853048#M487146</link>
      <description>Thanks a lot Eugeny!&lt;BR /&gt;I have posted my query on that forum.&lt;BR /&gt;&lt;BR /&gt;Do you have any refs/links about the "disk log pages" that I can read? (I am not familiar with this concept).&lt;BR /&gt;&lt;BR /&gt;With regards,&lt;BR /&gt; Nikhil</description>
      <pubDate>Wed, 27 Nov 2002 11:06:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/retrieving-disk-serial-number-programmatically/m-p/2853048#M487146</guid>
      <dc:creator>Nikhil_1</dc:creator>
      <dc:date>2002-11-27T11:06:40Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieving disk serial number programmatically</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/retrieving-disk-serial-number-programmatically/m-p/2853049#M487147</link>
      <description>Unfortunately I have no clue. I guess that these pages are stored in disk's NVRAM or servo area.&lt;BR /&gt;I saw SCSI advanced application (don't ask me which one) which can access these pages. Disk is set-up through these log pages - you can find disk size, disk inquiry string, fw revision, disk statistics, caching parameters etc. I remember I killed one Maxtor disk reducing number of cylinders to 1 :o( So please play carefully with them&lt;BR /&gt;Eugeny</description>
      <pubDate>Wed, 27 Nov 2002 11:52:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/retrieving-disk-serial-number-programmatically/m-p/2853049#M487147</guid>
      <dc:creator>Eugeny Brychkov</dc:creator>
      <dc:date>2002-11-27T11:52:26Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieving disk serial number programmatically</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/retrieving-disk-serial-number-programmatically/m-p/2853050#M487148</link>
      <description>Nikhil, try searching vendors' sites: seagate, ibm for low-level disk manuals&lt;BR /&gt;Eugeny</description>
      <pubDate>Wed, 27 Nov 2002 11:54:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/retrieving-disk-serial-number-programmatically/m-p/2853050#M487148</guid>
      <dc:creator>Eugeny Brychkov</dc:creator>
      <dc:date>2002-11-27T11:54:45Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieving disk serial number programmatically</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/retrieving-disk-serial-number-programmatically/m-p/2853051#M487149</link>
      <description>Nikhil,&lt;BR /&gt;&lt;BR /&gt;The serial number appears in the "mode sense" pages of the device.  The mode sense pages are retrieved from the device via direct SCSI commands.  You will need to build the SCSI command to retrieve the pages manually - meaning define a struct{} for the record(s), build a CDB, and issue this via the SCSI Pass-Thru interface.  The Pass-Thru interface allows you to send raw SCSI commands directly to a device.&lt;BR /&gt;&lt;BR /&gt;It's been years since I've done this myself, but it wasn't all that complicated.&lt;BR /&gt;&lt;BR /&gt;There is lots of docs on how to do this, and it would be too much to post here.  Look up the SCSI command specifications on the 'net, and see docs.hp.com for the Pass-Thru interface documentation.&lt;BR /&gt;&lt;BR /&gt;Good luck!&lt;BR /&gt;</description>
      <pubDate>Wed, 27 Nov 2002 14:09:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/retrieving-disk-serial-number-programmatically/m-p/2853051#M487149</guid>
      <dc:creator>Vincent Fleming</dc:creator>
      <dc:date>2002-11-27T14:09:08Z</dc:date>
    </item>
  </channel>
</rss>

