<?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: Detecting DAT drive tapes in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/detecting-dat-drive-tapes/m-p/2950595#M115865</link>
    <description>I've always used the mt command in my auto make_tape_recovery scripts and then checked its status.&lt;BR /&gt;&lt;BR /&gt;mt -t /dev/rmt/0m rew&lt;BR /&gt;if [ $? !0 ]&lt;BR /&gt;then&lt;BR /&gt;  echo alert | mailx -s ...etc.&lt;BR /&gt;fi</description>
    <pubDate>Mon, 14 Apr 2003 12:14:54 GMT</pubDate>
    <dc:creator>Michael Steele_2</dc:creator>
    <dc:date>2003-04-14T12:14:54Z</dc:date>
    <item>
      <title>Detecting DAT drive tapes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/detecting-dat-drive-tapes/m-p/2950591#M115861</link>
      <description>I need to write a script that will be activated by a cronjob to begin a make_recovery tape. Does anyone know what commands are used to figure out if there is a tape in a drive? I'm not sure where to start.</description>
      <pubDate>Mon, 14 Apr 2003 12:02:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/detecting-dat-drive-tapes/m-p/2950591#M115861</guid>
      <dc:creator>Edward McCouch</dc:creator>
      <dc:date>2003-04-14T12:02:03Z</dc:date>
    </item>
    <item>
      <title>Re: Detecting DAT drive tapes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/detecting-dat-drive-tapes/m-p/2950592#M115862</link>
      <description>I usually use the diskinfo command. It sends also an SIOC_CAPACITY to the drive... which fails if no medium is inserted (no such device or address).&lt;BR /&gt;&lt;BR /&gt;Best regards...&lt;BR /&gt; Dietmar.</description>
      <pubDate>Mon, 14 Apr 2003 12:05:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/detecting-dat-drive-tapes/m-p/2950592#M115862</guid>
      <dc:creator>Dietmar Konermann</dc:creator>
      <dc:date>2003-04-14T12:05:42Z</dc:date>
    </item>
    <item>
      <title>Re: Detecting DAT drive tapes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/detecting-dat-drive-tapes/m-p/2950593#M115863</link>
      <description>You can use the "mt status" command.  Here's the result from an empty drive:&lt;BR /&gt;&lt;BR /&gt;yukon(137)root# mt status&lt;BR /&gt;Drive:  HP C1537A&lt;BR /&gt;Format:&lt;BR /&gt;Status: [0]&lt;BR /&gt;File:   0&lt;BR /&gt;Block:  0&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;And here's the result with a tape present:&lt;BR /&gt;&lt;BR /&gt;yukon(138)root# mt status&lt;BR /&gt;Drive:  HP C1537A&lt;BR /&gt;Format: DDS-1 format&lt;BR /&gt;Status: [45111300] BOT write-protected online compression immediate-report-mode&lt;BR /&gt;&lt;BR /&gt;File:   0&lt;BR /&gt;Block:  0&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Mon, 14 Apr 2003 12:05:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/detecting-dat-drive-tapes/m-p/2950593#M115863</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2003-04-14T12:05:57Z</dc:date>
    </item>
    <item>
      <title>Re: Detecting DAT drive tapes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/detecting-dat-drive-tapes/m-p/2950594#M115864</link>
      <description>istape=`ioscan -fnC tape | wc -l`&lt;BR /&gt;&lt;BR /&gt;if [ istape gt 0 ]&lt;BR /&gt;  echo "I found a tape drive"&lt;BR /&gt;else&lt;BR /&gt;  echo "I didn't find a tape drive"&lt;BR /&gt;  exit 1&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Mon, 14 Apr 2003 12:11:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/detecting-dat-drive-tapes/m-p/2950594#M115864</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2003-04-14T12:11:53Z</dc:date>
    </item>
    <item>
      <title>Re: Detecting DAT drive tapes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/detecting-dat-drive-tapes/m-p/2950595#M115865</link>
      <description>I've always used the mt command in my auto make_tape_recovery scripts and then checked its status.&lt;BR /&gt;&lt;BR /&gt;mt -t /dev/rmt/0m rew&lt;BR /&gt;if [ $? !0 ]&lt;BR /&gt;then&lt;BR /&gt;  echo alert | mailx -s ...etc.&lt;BR /&gt;fi</description>
      <pubDate>Mon, 14 Apr 2003 12:14:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/detecting-dat-drive-tapes/m-p/2950595#M115865</guid>
      <dc:creator>Michael Steele_2</dc:creator>
      <dc:date>2003-04-14T12:14:54Z</dc:date>
    </item>
    <item>
      <title>Re: Detecting DAT drive tapes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/detecting-dat-drive-tapes/m-p/2950596#M115866</link>
      <description>Hi!&lt;BR /&gt;&lt;BR /&gt;Check this out:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xfc5d42308663d611abdb0090277a778c,00.html" target="_blank"&gt;http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xfc5d42308663d611abdb0090277a778c,00.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;DR</description>
      <pubDate>Mon, 14 Apr 2003 12:27:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/detecting-dat-drive-tapes/m-p/2950596#M115866</guid>
      <dc:creator>Dario_1</dc:creator>
      <dc:date>2003-04-14T12:27:02Z</dc:date>
    </item>
    <item>
      <title>Re: Detecting DAT drive tapes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/detecting-dat-drive-tapes/m-p/2950597#M115867</link>
      <description>Thank you all for responding. I was able to use the mt command to do what I wanted.</description>
      <pubDate>Mon, 14 Apr 2003 19:24:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/detecting-dat-drive-tapes/m-p/2950597#M115867</guid>
      <dc:creator>Edward McCouch</dc:creator>
      <dc:date>2003-04-14T19:24:03Z</dc:date>
    </item>
  </channel>
</rss>

