<?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: device file information in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/device-file-information/m-p/2752887#M70653</link>
    <description>ioscan -fnH your_hardware_path&lt;BR /&gt;will give you details.&lt;BR /&gt;&lt;BR /&gt;Regards,</description>
    <pubDate>Wed, 26 Jun 2002 21:21:18 GMT</pubDate>
    <dc:creator>RAC_1</dc:creator>
    <dc:date>2002-06-26T21:21:18Z</dc:date>
    <item>
      <title>device file information</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/device-file-information/m-p/2752886#M70652</link>
      <description>Hi Gurus,&lt;BR /&gt;&lt;BR /&gt;Given hardware path I want to find out device file information using some commands or script.&lt;BR /&gt;For example HW=0/7/0/0.6.0 I want to find out /dev/dsk/cNtNdN info. I want to automate this in the script for some tasks. Help.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks.</description>
      <pubDate>Wed, 26 Jun 2002 21:12:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/device-file-information/m-p/2752886#M70652</guid>
      <dc:creator>SAM_24</dc:creator>
      <dc:date>2002-06-26T21:12:25Z</dc:date>
    </item>
    <item>
      <title>Re: device file information</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/device-file-information/m-p/2752887#M70653</link>
      <description>ioscan -fnH your_hardware_path&lt;BR /&gt;will give you details.&lt;BR /&gt;&lt;BR /&gt;Regards,</description>
      <pubDate>Wed, 26 Jun 2002 21:21:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/device-file-information/m-p/2752887#M70653</guid>
      <dc:creator>RAC_1</dc:creator>
      <dc:date>2002-06-26T21:21:18Z</dc:date>
    </item>
    <item>
      <title>Re: device file information</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/device-file-information/m-p/2752888#M70654</link>
      <description>As Anil mentioned you can use that command to find out the device file name from HW path. &lt;BR /&gt;&lt;BR /&gt; If you have device file name by using the following command you can get more info about the device file.&lt;BR /&gt;&lt;BR /&gt;#lssf &amp;lt; device file&amp;gt;&lt;BR /&gt;&lt;BR /&gt;eg:&lt;BR /&gt;&lt;BR /&gt;#lssf /dev/rmt/0mn</description>
      <pubDate>Wed, 26 Jun 2002 21:39:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/device-file-information/m-p/2752888#M70654</guid>
      <dc:creator>Arockia Jegan</dc:creator>
      <dc:date>2002-06-26T21:39:06Z</dc:date>
    </item>
    <item>
      <title>Re: device file information</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/device-file-information/m-p/2752889#M70655</link>
      <description>One point of clarification: The hardware path does not necessairily point to a known device node. The 'c' part refers to controller 'instance' number rather than a particular slot. The instance means the order is which the system 'discovered' this device. &lt;BR /&gt;&lt;BR /&gt;Let's say that you have a machine with two SCSI controllers (c0 and c1). Now you add a new controller - c3. Next, you decide to reload the OS. You might actually find that what was c1 is now c2!. While the order the hardware is searched is fixed, there is no definite mapping of a hardware path to a logical path.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 27 Jun 2002 01:57:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/device-file-information/m-p/2752889#M70655</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2002-06-27T01:57:25Z</dc:date>
    </item>
    <item>
      <title>Re: device file information</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/device-file-information/m-p/2752890#M70656</link>
      <description>Hi Raj,&lt;BR /&gt;&lt;BR /&gt;maybe this is what you need:&lt;BR /&gt;&lt;BR /&gt;---begin script---&lt;BR /&gt;#!/bin/sh&lt;BR /&gt;#&lt;BR /&gt;#set -x&lt;BR /&gt;&lt;BR /&gt;PATH=/usr/bin:/bin:/usr/sbin:/sbin&lt;BR /&gt;OUTFILE=/var/conf/stminfo.disk&lt;BR /&gt;&lt;BR /&gt;if [ -f ${OUTFILE} ]&lt;BR /&gt;then&lt;BR /&gt;        echo "NOTE: overwriting existing file ${OUTFILE}"&lt;BR /&gt;else&lt;BR /&gt;        echo "Creating ${OUTFILE}"&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;cstm &amp;lt;/dev/null 2&amp;gt;&amp;amp;1&lt;BR /&gt;scl type disk&lt;BR /&gt;info&lt;BR /&gt;wait&lt;BR /&gt;infolog&lt;BR /&gt;saveas&lt;BR /&gt;${OUTFILE}&lt;BR /&gt;done&lt;BR /&gt;quit&lt;BR /&gt;ok&lt;BR /&gt;!&lt;BR /&gt;echo "Disk HW-Path, device files and Serial No."&lt;BR /&gt;echo "--------------------------------------------------------"&lt;BR /&gt;grep -e ^Hardware -e ^Serial ${OUTFILE} | awk '{print $3}' | while read VALUE ; do&lt;BR /&gt;echo $VALUE | grep -q '[0-9]/'&lt;BR /&gt;if [ $? -eq 0 ] ; then&lt;BR /&gt;HWPATH=$VALUE&lt;BR /&gt;ioscan -fnH${VALUE} | sed -n 's+.*\(/dev/dsk/[^ ]*\).*+\1+p' | read DEVICE&lt;BR /&gt;else&lt;BR /&gt;printf "%20s %15s %15s\n" $HWPATH $DEVICE $VALUE&lt;BR /&gt;fi&lt;BR /&gt;done&lt;BR /&gt;echo "NOTE: STM disk information has been saved to ${OUTFILE}."&lt;BR /&gt;echo "--------------------------------------------------------"&lt;BR /&gt;&lt;BR /&gt;---end script---&lt;BR /&gt;&lt;BR /&gt;Ensure that you have installed the online diagnostics bundle. This script puts out a table with the HW-Path, dsk devicefiles and serial number.&lt;BR /&gt;It should regard Clay's statement that devicefiles are not static.&lt;BR /&gt;BTW: Clay, i hope i understood your post.&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;RGDS, Holger</description>
      <pubDate>Thu, 27 Jun 2002 10:38:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/device-file-information/m-p/2752890#M70656</guid>
      <dc:creator>Holger Knoppik</dc:creator>
      <dc:date>2002-06-27T10:38:46Z</dc:date>
    </item>
    <item>
      <title>Re: device file information</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/device-file-information/m-p/2752891#M70657</link>
      <description>If he doesnot have stm this script will not work</description>
      <pubDate>Thu, 27 Jun 2002 19:42:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/device-file-information/m-p/2752891#M70657</guid>
      <dc:creator>Rahul Mehta</dc:creator>
      <dc:date>2002-06-27T19:42:26Z</dc:date>
    </item>
  </channel>
</rss>

