<?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 Re: how to get device path in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-get-device-path/m-p/4157928#M685657</link>
    <description>While the above answers are standard and can be found in the HP-UX FAQs, they are unsatisfying. Why? Because you are making assumptions about the ioscan output which may or may not be valid - you are at the mercy of whatever description the manufacturer puts there.&lt;BR /&gt;&lt;BR /&gt;For example, I have an rx2600 with a DVD drive for which ioscan gives the output 'TEAC    DV-28E-N'. Neither 'CD' nor 'DVD' nor 'ROM' are in the string. [And someday soon (maybe already?) there will be Blu-ray.]&lt;BR /&gt;&lt;BR /&gt;There ought to be a better way to tell when scripting whether the sdisk device is a CD/DVD-type removable media disk or a 'regular' disk. Anybody have one?</description>
    <pubDate>Fri, 06 Jun 2008 18:32:13 GMT</pubDate>
    <dc:creator>WWarren</dc:creator>
    <dc:date>2008-06-06T18:32:13Z</dc:date>
    <item>
      <title>how to get device path</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-get-device-path/m-p/4157919#M685648</link>
      <description>Hello,&lt;BR /&gt;This is the section of code in tru64 to get the respective device path.&lt;BR /&gt;dev_name=$(hwmgr -view devices |grep DVD-ROM |awk '{print $2}')&lt;BR /&gt;&lt;BR /&gt;how can i do it in hp-ux. i believe we need to use ioscan for this.but still i am not familiar with it.</description>
      <pubDate>Sun, 09 Mar 2008 04:08:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-get-device-path/m-p/4157919#M685648</guid>
      <dc:creator>manasa_1</dc:creator>
      <dc:date>2008-03-09T04:08:52Z</dc:date>
    </item>
    <item>
      <title>Re: how to get device path</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-get-device-path/m-p/4157920#M685649</link>
      <description>If you want to see your DVD hardware path&lt;BR /&gt;issue this command&lt;BR /&gt;&lt;BR /&gt;#ioscan -fnC disk|grep DVD</description>
      <pubDate>Sun, 09 Mar 2008 04:25:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-get-device-path/m-p/4157920#M685649</guid>
      <dc:creator>Jeeshan</dc:creator>
      <dc:date>2008-03-09T04:25:00Z</dc:date>
    </item>
    <item>
      <title>Re: how to get device path</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-get-device-path/m-p/4157921#M685650</link>
      <description>&lt;!--!*#--&gt;Hi Manasa,&lt;BR /&gt;     #Ioscan -fn  command output will give all Hardware installed in the system. For more details refer the man page of ioscan. &lt;BR /&gt;&lt;BR /&gt; Regards,&lt;BR /&gt; Davis Paul&lt;BR /&gt;</description>
      <pubDate>Sun, 09 Mar 2008 09:19:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-get-device-path/m-p/4157921#M685650</guid>
      <dc:creator>Davis Paul</dc:creator>
      <dc:date>2008-03-09T09:19:23Z</dc:date>
    </item>
    <item>
      <title>Re: how to get device path</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-get-device-path/m-p/4157922#M685651</link>
      <description>if u want to see a list of hardware attache to your system before adding or deleting any device u can use ioscan command&lt;BR /&gt;for example &lt;BR /&gt;i added a disk from eva&lt;BR /&gt;now i want to see to &lt;BR /&gt;i can use ioscan -funC disk(here disk is a category&lt;BR /&gt;it will show claimed or not&lt;BR /&gt;once it is claimed it means it is loaded in the kernal&lt;BR /&gt;ohterwise u have to create device files&lt;BR /&gt;by using insf -e or insf -e disk&lt;BR /&gt;ok&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 26 Mar 2008 08:39:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-get-device-path/m-p/4157922#M685651</guid>
      <dc:creator>Sajjad Sahir</dc:creator>
      <dc:date>2008-03-26T08:39:07Z</dc:date>
    </item>
    <item>
      <title>Re: how to get device path</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-get-device-path/m-p/4157923#M685652</link>
      <description>one more thing once u added a disk u have to use insf -e otherwise it will not claim&lt;BR /&gt;normally u can use ioscan -funC disk&lt;BR /&gt;then it will show all hardware path,class,driver etc...</description>
      <pubDate>Wed, 26 Mar 2008 08:41:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-get-device-path/m-p/4157923#M685652</guid>
      <dc:creator>Sajjad Sahir</dc:creator>
      <dc:date>2008-03-26T08:41:08Z</dc:date>
    </item>
    <item>
      <title>Re: how to get device path</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-get-device-path/m-p/4157924#M685653</link>
      <description>In tru64, this would get the absolute file pathname of the given device. &lt;BR /&gt;&lt;BR /&gt;Ex: /dev/disk/floppy0c (for a floppy)&lt;BR /&gt;&lt;BR /&gt;In hpux, the ioscan output displays the path, but not on the same line.&lt;BR /&gt;&lt;BR /&gt;Ex:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;disk        3  0/0/2/1.3.0    sdisk     CLAIMED     DEVICE       HP      DVD-ROM 305&lt;BR /&gt;                             /dev/dsk/c1t3d0   /dev/rdsk/c1t3d0&lt;BR /&gt;&lt;BR /&gt;Here the device path name comes in the line after the 'DVD' string. So, I think you may have to do some extra filtering to get the pathname correctly.&lt;BR /&gt;&lt;BR /&gt;I am not aware of any ioscan option that displays it the tru64 way.&lt;BR /&gt;</description>
      <pubDate>Wed, 26 Mar 2008 08:54:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-get-device-path/m-p/4157924#M685653</guid>
      <dc:creator>Venkatesh BL</dc:creator>
      <dc:date>2008-03-26T08:54:21Z</dc:date>
    </item>
    <item>
      <title>Re: how to get device path</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-get-device-path/m-p/4157925#M685654</link>
      <description>manasa u have to assiang points to the peoples&lt;BR /&gt;</description>
      <pubDate>Wed, 26 Mar 2008 08:59:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-get-device-path/m-p/4157925#M685654</guid>
      <dc:creator>Sajjad Sahir</dc:creator>
      <dc:date>2008-03-26T08:59:13Z</dc:date>
    </item>
    <item>
      <title>Re: how to get device path</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-get-device-path/m-p/4157926#M685655</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;For getting hardware path of DVD you can use ioscan.&lt;BR /&gt;&lt;BR /&gt;The third field in ioscan output is hardware path which you can extract using normal awk thing. Try:&lt;BR /&gt;#ioscan -fnC disk|grep -i DVD|awk '{print $3}'</description>
      <pubDate>Wed, 26 Mar 2008 10:14:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-get-device-path/m-p/4157926#M685655</guid>
      <dc:creator>Shrikant Lavhate</dc:creator>
      <dc:date>2008-03-26T10:14:35Z</dc:date>
    </item>
    <item>
      <title>Re: how to get device path</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-get-device-path/m-p/4157927#M685656</link>
      <description>ioscan will (by default) query every driver in the system for every possible hardware device (which means slow). Always use the -k option for ioscan for instant response. Drop the -k when you add or delete devices without rebooting (advisable only with hotswap hardware).&lt;BR /&gt; &lt;BR /&gt;The DVD may or may not have a SCSI ID string that says DVD since this string is provided from the drive manufacturer. You can limit the output to just disks with this command:&lt;BR /&gt; &lt;BR /&gt;ioscan -kfC disk&lt;BR /&gt; &lt;BR /&gt;Once you see the ID for the DVD, you can narrow the search using grep to match the string. If this is part of a general script to look at many machines, grep'ing for DVD will eventually overlook some devices because of their ID string. Try something like this:&lt;BR /&gt; &lt;BR /&gt;ioscan -kfC disk | grep -ie dvd -e cd -e rom&lt;BR /&gt; &lt;BR /&gt;That should get most all CD/DVD drives.</description>
      <pubDate>Wed, 26 Mar 2008 13:42:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-get-device-path/m-p/4157927#M685656</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2008-03-26T13:42:39Z</dc:date>
    </item>
    <item>
      <title>Re: how to get device path</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-get-device-path/m-p/4157928#M685657</link>
      <description>While the above answers are standard and can be found in the HP-UX FAQs, they are unsatisfying. Why? Because you are making assumptions about the ioscan output which may or may not be valid - you are at the mercy of whatever description the manufacturer puts there.&lt;BR /&gt;&lt;BR /&gt;For example, I have an rx2600 with a DVD drive for which ioscan gives the output 'TEAC    DV-28E-N'. Neither 'CD' nor 'DVD' nor 'ROM' are in the string. [And someday soon (maybe already?) there will be Blu-ray.]&lt;BR /&gt;&lt;BR /&gt;There ought to be a better way to tell when scripting whether the sdisk device is a CD/DVD-type removable media disk or a 'regular' disk. Anybody have one?</description>
      <pubDate>Fri, 06 Jun 2008 18:32:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-get-device-path/m-p/4157928#M685657</guid>
      <dc:creator>WWarren</dc:creator>
      <dc:date>2008-06-06T18:32:13Z</dc:date>
    </item>
    <item>
      <title>Re: how to get device path</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-get-device-path/m-p/4157929#M685658</link>
      <description>Well, as mentioned before, you cannot assume "DVD" or "CD_ROM" or anything in the name.&lt;BR /&gt;&lt;BR /&gt;How about this?&lt;BR /&gt;&lt;BR /&gt;This is an USB DVD drive in 11.31:&lt;BR /&gt;&lt;BR /&gt;disk         7  0/0/2/1.0.16   UsbScsiAdaptor    CLAIMED     DEVICE       USB SCSI Stack Adaptor&lt;BR /&gt;                              /dev/deviceFileSystem/Usb/MassStorage/dsk/disk@hp-1008+294=A60020000001 &lt;BR /&gt;                              /dev/deviceFileSystem/Usb/MassStorage/rdsk/disk@hp-1008+294=A60020000001&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;But if I test my CD/DVD drive I get&lt;BR /&gt;&lt;BR /&gt;# diskinfo /dev/rdsk/c1t2d0 | grep type&lt;BR /&gt;type: CD-ROM&lt;BR /&gt;&lt;BR /&gt;for the disk I get&lt;BR /&gt;&lt;BR /&gt;type: direct access&lt;BR /&gt;&lt;BR /&gt;But do I really need a script for this?&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 06 Jun 2008 19:11:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-get-device-path/m-p/4157929#M685658</guid>
      <dc:creator>Torsten.</dc:creator>
      <dc:date>2008-06-06T19:11:02Z</dc:date>
    </item>
  </channel>
</rss>

