<?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: ioctl call on HPUX to get tape device LUN, Target ID and Bus Number in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/ioctl-call-on-hpux-to-get-tape-device-lun-target-id-and-bus/m-p/4634494#M613794</link>
    <description>Hi&lt;BR /&gt;To my knowledge, there is no such API&lt;BR /&gt;the only way looks to be to popen() the "ioscan -fnkC disk", or "ioscan -funC disk"&lt;BR /&gt;and process the output.&lt;BR /&gt;&lt;BR /&gt;you can also process /stand/ioconfig like indicated in man ioconfig.</description>
    <pubDate>Mon, 17 May 2010 13:33:11 GMT</pubDate>
    <dc:creator>Laurent Menase</dc:creator>
    <dc:date>2010-05-17T13:33:11Z</dc:date>
    <item>
      <title>ioctl call on HPUX to get tape device LUN, Target ID and Bus Number</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ioctl-call-on-hpux-to-get-tape-device-lun-target-id-and-bus/m-p/4634493#M613793</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Can some one please let me know if there is a way to get the SCSI tape device information like the Target ID, LUN number, Bus number using an ioctl call on the raw device file ( similar to SIOC_INQUIRY which gives us the vendor and product name).&lt;BR /&gt;&lt;BR /&gt;"ioscan -fun" gives us the above information as the H/W Path, But I'm looking for an ioctl that provides the information.&lt;BR /&gt;&lt;BR /&gt;Any help is highly appreciated&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Naveen.&lt;BR /&gt;</description>
      <pubDate>Mon, 17 May 2010 10:28:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ioctl-call-on-hpux-to-get-tape-device-lun-target-id-and-bus/m-p/4634493#M613793</guid>
      <dc:creator>Navecric</dc:creator>
      <dc:date>2010-05-17T10:28:33Z</dc:date>
    </item>
    <item>
      <title>Re: ioctl call on HPUX to get tape device LUN, Target ID and Bus Number</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ioctl-call-on-hpux-to-get-tape-device-lun-target-id-and-bus/m-p/4634494#M613794</link>
      <description>Hi&lt;BR /&gt;To my knowledge, there is no such API&lt;BR /&gt;the only way looks to be to popen() the "ioscan -fnkC disk", or "ioscan -funC disk"&lt;BR /&gt;and process the output.&lt;BR /&gt;&lt;BR /&gt;you can also process /stand/ioconfig like indicated in man ioconfig.</description>
      <pubDate>Mon, 17 May 2010 13:33:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ioctl-call-on-hpux-to-get-tape-device-lun-target-id-and-bus/m-p/4634494#M613794</guid>
      <dc:creator>Laurent Menase</dc:creator>
      <dc:date>2010-05-17T13:33:11Z</dc:date>
    </item>
    <item>
      <title>Re: ioctl call on HPUX to get tape device LUN, Target ID and Bus Number</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ioctl-call-on-hpux-to-get-tape-device-lun-target-id-and-bus/m-p/4634495#M613795</link>
      <description>Hi Laurent,&lt;BR /&gt;&lt;BR /&gt;Thanks for the reply. Yeah, Even i have found that there is no ioctl call that gives you the LUN, Target ID, Bus number . so, I have found a way to get these information using the major number and minor number of the device file. I think that would do it for me.&lt;BR /&gt;&lt;BR /&gt;Now I have got another issue now with open command on tape device file.&lt;BR /&gt; &lt;BR /&gt;I have a tape library with tape drives and there is no volume loaded in any of these drives. When I issue a open command on one of the device file of a tape drive , I'm getting an error saying "No such device or address".&lt;BR /&gt;&lt;BR /&gt;And the mt output says that "the tape media is not present"&lt;BR /&gt;Drive:  IBM ULTRIUM-TD3&lt;BR /&gt;Format: &lt;BR /&gt;Status: Tape media is not present&lt;BR /&gt;File:   0&lt;BR /&gt;Block:  0&lt;BR /&gt;&lt;BR /&gt;But, When I load a volume in to one of the tape drives and issue a open command, its working fine and i could use any ioctl on that tape device.&lt;BR /&gt;&lt;BR /&gt;So, Is it like we can do an open on a tape device file only when a volume is loaded in the tape drive. And How is iostat giving us the information even when there is no volume loaded in the tape drive .&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Naveen&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;</description>
      <pubDate>Tue, 18 May 2010 04:34:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ioctl-call-on-hpux-to-get-tape-device-lun-target-id-and-bus/m-p/4634495#M613795</guid>
      <dc:creator>Navecric</dc:creator>
      <dc:date>2010-05-18T04:34:48Z</dc:date>
    </item>
    <item>
      <title>Re: ioctl call on HPUX to get tape device LUN, Target ID and Bus Number</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ioctl-call-on-hpux-to-get-tape-device-lun-target-id-and-bus/m-p/4634496#M613796</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;If you are using HP-UX 11.31, you have an excellent tool. For example, start with this&lt;BR /&gt;command:&lt;BR /&gt;&lt;BR /&gt;# scsimgr -get_info -D /dev/rtape/tape0_BEST&lt;BR /&gt;&lt;BR /&gt;scsimgr(1M) is very powerful.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;&lt;BR /&gt;VK2COT</description>
      <pubDate>Tue, 18 May 2010 08:50:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ioctl-call-on-hpux-to-get-tape-device-lun-target-id-and-bus/m-p/4634496#M613796</guid>
      <dc:creator>VK2COT</dc:creator>
      <dc:date>2010-05-18T08:50:33Z</dc:date>
    </item>
    <item>
      <title>Re: ioctl call on HPUX to get tape device LUN, Target ID and Bus Number</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ioctl-call-on-hpux-to-get-tape-device-lun-target-id-and-bus/m-p/4634497#M613797</link>
      <description>what device do you open and what device do you make the mt too?&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 18 May 2010 09:03:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ioctl-call-on-hpux-to-get-tape-device-lun-target-id-and-bus/m-p/4634497#M613797</guid>
      <dc:creator>Laurent Menase</dc:creator>
      <dc:date>2010-05-18T09:03:47Z</dc:date>
    </item>
    <item>
      <title>Re: ioctl call on HPUX to get tape device LUN, Target ID and Bus Number</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ioctl-call-on-hpux-to-get-tape-device-lun-target-id-and-bus/m-p/4634498#M613798</link>
      <description>@ Laurent &lt;BR /&gt;&lt;BR /&gt;I did an mt and open on one of the tape drive device files listed by the "ioscan -funC tape" command.&lt;BR /&gt;&lt;BR /&gt;tape       77  *****   stape        CLAIMED     DEVICE       IBM     ULTRIUM-TD3&lt;BR /&gt;                             /dev/rmt/77m            /dev/rmt/77mn           /dev/rmt/c13t3d6BEST    /dev/rmt/c13t3d6BESTn &lt;BR /&gt;                             /dev/rmt/77mb           /dev/rmt/77mnb          /dev/rmt/c13t3d6BESTb   /dev/rmt/c13t3d6BESTnb&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I have tried the mt and open on all the device files listed above for the tape drive but with the same issue.&lt;BR /&gt;&lt;BR /&gt;and mt rew is giving the same error.&lt;BR /&gt;&lt;BR /&gt;bash-4.0$ mt -f /dev/rmt/77mb rew&lt;BR /&gt;/dev/rmt/77mb: No such device or address&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Naveen</description>
      <pubDate>Tue, 18 May 2010 09:13:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ioctl-call-on-hpux-to-get-tape-device-lun-target-id-and-bus/m-p/4634498#M613798</guid>
      <dc:creator>Navecric</dc:creator>
      <dc:date>2010-05-18T09:13:30Z</dc:date>
    </item>
    <item>
      <title>Re: ioctl call on HPUX to get tape device LUN, Target ID and Bus Number</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ioctl-call-on-hpux-to-get-tape-device-lun-target-id-and-bus/m-p/4634499#M613799</link>
      <description>@VK2COT&lt;BR /&gt;&lt;BR /&gt;Thanks for the reply. I'm using 11.31 and the tool is really helpful. &lt;BR /&gt;&lt;BR /&gt;But I'm looking for an ioctl call or a C function that gives the information as displayed by the tool for my application.&lt;BR /&gt;&lt;BR /&gt;Can you let me know the list of ioctl calls or C functions the tool uses to get the information like the Vendor name, Product name, Target ID, Bus number, LUN, device class .&lt;BR /&gt;&lt;BR /&gt;thanks,&lt;BR /&gt;Naveen.</description>
      <pubDate>Tue, 18 May 2010 09:18:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ioctl-call-on-hpux-to-get-tape-device-lun-target-id-and-bus/m-p/4634499#M613799</guid>
      <dc:creator>Navecric</dc:creator>
      <dc:date>2010-05-18T09:18:10Z</dc:date>
    </item>
  </channel>
</rss>

