<?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: check the dat tape or dlt tape in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/check-the-dat-tape-or-dlt-tape/m-p/2658155#M47641</link>
    <description>mt -t /dev/rmt/1mnb status       don't work&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Mon, 04 Feb 2002 14:52:42 GMT</pubDate>
    <dc:creator>matteo casarino</dc:creator>
    <dc:date>2002-02-04T14:52:42Z</dc:date>
    <item>
      <title>check the dat tape or dlt tape</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/check-the-dat-tape-or-dlt-tape/m-p/2658150#M47636</link>
      <description>Hi to all,&lt;BR /&gt;          I need to check if a DAT TAPE or DLT TAPE is ready to write o read. &lt;BR /&gt;Is there a ux command that returned me the state of the tape ???&lt;BR /&gt;&lt;BR /&gt;Thank you&lt;BR /&gt;Matteo</description>
      <pubDate>Mon, 04 Feb 2002 14:22:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/check-the-dat-tape-or-dlt-tape/m-p/2658150#M47636</guid>
      <dc:creator>matteo casarino</dc:creator>
      <dc:date>2002-02-04T14:22:42Z</dc:date>
    </item>
    <item>
      <title>Re: check the dat tape or dlt tape</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/check-the-dat-tape-or-dlt-tape/m-p/2658151#M47637</link>
      <description>hi,&lt;BR /&gt;&lt;BR /&gt;Try,&lt;BR /&gt;&lt;BR /&gt;# mt -f /dev/rmt/0m status&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;&lt;BR /&gt;Regds&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 04 Feb 2002 14:25:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/check-the-dat-tape-or-dlt-tape/m-p/2658151#M47637</guid>
      <dc:creator>Sanjay_6</dc:creator>
      <dc:date>2002-02-04T14:25:45Z</dc:date>
    </item>
    <item>
      <title>Re: check the dat tape or dlt tape</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/check-the-dat-tape-or-dlt-tape/m-p/2658152#M47638</link>
      <description>I use shell code like the following-&lt;BR /&gt;&lt;BR /&gt;if /usr/bin/mt -t /dev/rmt/0m rew 2&amp;gt;/dev/null ; then&lt;BR /&gt;  echo "tape is mounted ..."&lt;BR /&gt;else&lt;BR /&gt;  echo "tape is &amp;gt; &amp;gt; NOT &amp;lt; &amp;lt; mounted ..."&lt;BR /&gt;  exit&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;-- Rod Hills</description>
      <pubDate>Mon, 04 Feb 2002 14:27:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/check-the-dat-tape-or-dlt-tape/m-p/2658152#M47638</guid>
      <dc:creator>Rodney Hills</dc:creator>
      <dc:date>2002-02-04T14:27:07Z</dc:date>
    </item>
    <item>
      <title>Re: check the dat tape or dlt tape</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/check-the-dat-tape-or-dlt-tape/m-p/2658153#M47639</link>
      <description>mt -f /dev/rmt/0m status don't work</description>
      <pubDate>Mon, 04 Feb 2002 14:34:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/check-the-dat-tape-or-dlt-tape/m-p/2658153#M47639</guid>
      <dc:creator>matteo casarino</dc:creator>
      <dc:date>2002-02-04T14:34:56Z</dc:date>
    </item>
    <item>
      <title>Re: check the dat tape or dlt tape</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/check-the-dat-tape-or-dlt-tape/m-p/2658154#M47640</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Try instead&lt;BR /&gt;&lt;BR /&gt;mt -f /dem/rnt/0mnb status &lt;BR /&gt;&lt;BR /&gt;If -f doesnot work then use -t. Look for the man pages of mt for more information on -f -t. &lt;BR /&gt;&lt;BR /&gt;Some of my server doesn't support -f but works with -t.&lt;BR /&gt;&lt;BR /&gt;Goodluck,&lt;BR /&gt;-USA..</description>
      <pubDate>Mon, 04 Feb 2002 14:49:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/check-the-dat-tape-or-dlt-tape/m-p/2658154#M47640</guid>
      <dc:creator>Uday_S_Ankolekar</dc:creator>
      <dc:date>2002-02-04T14:49:01Z</dc:date>
    </item>
    <item>
      <title>Re: check the dat tape or dlt tape</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/check-the-dat-tape-or-dlt-tape/m-p/2658155#M47641</link>
      <description>mt -t /dev/rmt/1mnb status       don't work&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 04 Feb 2002 14:52:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/check-the-dat-tape-or-dlt-tape/m-p/2658155#M47641</guid>
      <dc:creator>matteo casarino</dc:creator>
      <dc:date>2002-02-04T14:52:42Z</dc:date>
    </item>
    <item>
      <title>Re: check the dat tape or dlt tape</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/check-the-dat-tape-or-dlt-tape/m-p/2658156#M47642</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;do a "ioscan -fnC tape" and check the device file for the tape drive and then use it with the mt command.&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;&lt;BR /&gt;Regds&lt;BR /&gt;</description>
      <pubDate>Mon, 04 Feb 2002 14:56:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/check-the-dat-tape-or-dlt-tape/m-p/2658156#M47642</guid>
      <dc:creator>Sanjay_6</dc:creator>
      <dc:date>2002-02-04T14:56:18Z</dc:date>
    </item>
    <item>
      <title>Re: check the dat tape or dlt tape</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/check-the-dat-tape-or-dlt-tape/m-p/2658157#M47643</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;HP does not support the status option.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The rewind is the best supported solution&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;                    Steve Steel</description>
      <pubDate>Mon, 04 Feb 2002 14:56:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/check-the-dat-tape-or-dlt-tape/m-p/2658157#M47643</guid>
      <dc:creator>Steve Steel</dc:creator>
      <dc:date>2002-02-04T14:56:30Z</dc:date>
    </item>
    <item>
      <title>Re: check the dat tape or dlt tape</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/check-the-dat-tape-or-dlt-tape/m-p/2658158#M47644</link>
      <description>direct way ( with tape overwrite):&lt;BR /&gt;&lt;BR /&gt;echo " testing write tape ..." | dd of=/dev/rmt/Xmn&lt;BR /&gt;&lt;BR /&gt;if [ $? -ne 0 ] ; then&lt;BR /&gt;&lt;BR /&gt;echo " tape is write protected .."&lt;BR /&gt;&lt;BR /&gt;else &lt;BR /&gt;&lt;BR /&gt;echo " tape is overwrite ..... :(("&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;C code way :&lt;BR /&gt;&lt;BR /&gt;#incluse &lt;STDIO.H&gt;&lt;BR /&gt;#include &lt;FCNTL.H&gt;&lt;BR /&gt;main () &lt;BR /&gt;{&lt;BR /&gt;&lt;BR /&gt;int dat;&lt;BR /&gt;&lt;BR /&gt;        dat=open ("/dev/rmt/0mn", O_RDWR);                                                                                                                                              &lt;BR /&gt;                                                                                                                                    &lt;BR /&gt;if ( dat == -1 )                                                                                                                    &lt;BR /&gt;        {                                                                                                                           &lt;BR /&gt;        printf (" no tape or tape protected\n");                                                                                                 &lt;BR /&gt;        exit (1);                                                                                                                   &lt;BR /&gt;        }                         &lt;BR /&gt;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/FCNTL.H&gt;&lt;/STDIO.H&gt;</description>
      <pubDate>Mon, 04 Feb 2002 15:20:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/check-the-dat-tape-or-dlt-tape/m-p/2658158#M47644</guid>
      <dc:creator>Carlos Fernandez Riera</dc:creator>
      <dc:date>2002-02-04T15:20:41Z</dc:date>
    </item>
    <item>
      <title>Re: check the dat tape or dlt tape</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/check-the-dat-tape-or-dlt-tape/m-p/2658159#M47645</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Try &lt;BR /&gt;&lt;BR /&gt;ioscan -fnKc tape&lt;BR /&gt;This would display  results similar to  this:&lt;BR /&gt;Class     I  H/W Path     Driver S/W State   H/W Type     Description&lt;BR /&gt;=====================================================================&lt;BR /&gt;tape      0  1/4/0/0.0.0  stape CLAIMED     DEVICE       QUANTUM DLT7000&lt;BR /&gt;                         /dev/rmt/0m             /dev/rmt/0mnb           /dev/rmt/c16t0d0BESTn &lt;BR /&gt;                         /dev/rmt/0mb            /dev/rmt/c16t0d0BEST    /dev/rmt/c16t0d0BESTnb&lt;BR /&gt;                         /dev/rmt/0mn            /dev/rmt/c16t0d0BESTb &lt;BR /&gt;&lt;BR /&gt;Then run mt -f /dev/rmt/&lt;DEVICE name=""&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/DEVICE&gt;</description>
      <pubDate>Mon, 04 Feb 2002 15:31:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/check-the-dat-tape-or-dlt-tape/m-p/2658159#M47645</guid>
      <dc:creator>Uday_S_Ankolekar</dc:creator>
      <dc:date>2002-02-04T15:31:59Z</dc:date>
    </item>
    <item>
      <title>Re: check the dat tape or dlt tape</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/check-the-dat-tape-or-dlt-tape/m-p/2658160#M47646</link>
      <description>oops...&lt;BR /&gt;&lt;BR /&gt;It should be&lt;BR /&gt;&lt;BR /&gt;ioscan -fnkC tape</description>
      <pubDate>Mon, 04 Feb 2002 15:32:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/check-the-dat-tape-or-dlt-tape/m-p/2658160#M47646</guid>
      <dc:creator>Uday_S_Ankolekar</dc:creator>
      <dc:date>2002-02-04T15:32:48Z</dc:date>
    </item>
    <item>
      <title>Re: check the dat tape or dlt tape</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/check-the-dat-tape-or-dlt-tape/m-p/2658161#M47647</link>
      <description>HP does support the 'status' option of the mt command, but only at HP-UX 11.x, I believe.&lt;BR /&gt;&lt;BR /&gt;Also, the '-f ' option is only supported at 11.x, 10.x used the '-t ' option.&lt;BR /&gt;&lt;BR /&gt;So, if you are at HP-UX 10.20 do something like:&lt;BR /&gt;&lt;BR /&gt;# mt -t /dev/rmt/?m rew&lt;BR /&gt;&lt;BR /&gt;where the ? is the appropriate number for your tape drive.&lt;BR /&gt;&lt;BR /&gt;At 11.0 you can do:&lt;BR /&gt;&lt;BR /&gt;# mt -f /dev/rmt/?m status&lt;BR /&gt;&lt;BR /&gt;again, where ? is the appropriate number for you tape drive.</description>
      <pubDate>Mon, 04 Feb 2002 15:42:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/check-the-dat-tape-or-dlt-tape/m-p/2658161#M47647</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2002-02-04T15:42:47Z</dc:date>
    </item>
    <item>
      <title>Re: check the dat tape or dlt tape</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/check-the-dat-tape-or-dlt-tape/m-p/2658162#M47648</link>
      <description>thank you all&lt;BR /&gt;i resolved my problem with a csh script.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 04 Feb 2002 15:56:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/check-the-dat-tape-or-dlt-tape/m-p/2658162#M47648</guid>
      <dc:creator>matteo casarino</dc:creator>
      <dc:date>2002-02-04T15:56:53Z</dc:date>
    </item>
  </channel>
</rss>

