<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>The NetWorker Blog &#187; inquire</title>
	<atom:link href="http://nsrd.info/blog/tag/inquire/feed/" rel="self" type="application/rss+xml" />
	<link>http://nsrd.info/blog</link>
	<description>EMC NetWorker commentary from a long term backup consultant and theorist</description>
	<lastBuildDate>Mon, 06 Feb 2012 20:14:08 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Basics – Bypassing NetWorker for media movement</title>
		<link>http://nsrd.info/blog/2010/03/15/basics-%e2%80%93%c2%a0bypassing-networker-for-media-movement/</link>
		<comments>http://nsrd.info/blog/2010/03/15/basics-%e2%80%93%c2%a0bypassing-networker-for-media-movement/#comments</comments>
		<pubDate>Mon, 15 Mar 2010 10:26:06 +0000</pubDate>
		<dc:creator>Preston de Guise</dc:creator>
				<category><![CDATA[Basics]]></category>
		<category><![CDATA[NetWorker]]></category>
		<category><![CDATA[inquire]]></category>
		<category><![CDATA[jbconfig]]></category>
		<category><![CDATA[sjimm]]></category>
		<category><![CDATA[sjisn]]></category>

		<guid isPermaLink="false">http://nsrd.info/blog/?p=2012</guid>
		<description><![CDATA[Sometimes NetWorker may not want to cooperate when it comes to moving media in and out of drives, or around in a tape library. While nsrjb -n will do the trick for some media load operations where you don&#8217;t want to mount media, it&#8217;s not always available. Sometimes you will need to do a media <a href='http://nsrd.info/blog/2010/03/15/basics-%e2%80%93%c2%a0bypassing-networker-for-media-movement/'>[...]</a>
No related posts.

Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>Sometimes NetWorker may not want to cooperate when it comes to moving media in and out of drives, or around in a tape library. While <em>nsrjb -n</em> will do the trick for some media load operations where you don&#8217;t want to mount media, it&#8217;s not always available. Sometimes you will need to do a media move operation without NetWorker – either in situations where NetWorker isn&#8217;t running, or at times when NetWorker is disagreeing with the output of <em>sjirdtag</em>.</p>
<p>In these cases, you want to work with <em>sjimm</em>.</p>
<p>The usage for <em>sjimm</em> is:</p>
<pre>[root@tara ~]# sjimm
1642:sjimm: usage: sjimm jukebox {drive|slot|inlt|mt} src {drive|slot|inlt|mt} dst</pre>
<p>In this case, &#8216;jukebox&#8217; will be the <em>x.y.z</em> component of the SCSI device ID as output from <em>inquire</em> (or as determined by checking the control port field for the jukebox.)</p>
<p>For instance, on my lab system, inquire shows me:</p>
<pre>[root@tara ~]# inquire -l | grep Autochanger
scsidev@0.0.0:SPECTRA PYTHON          5500|Autochanger (Jukebox), /dev/sg6</pre>
<p>So I know then that the <em>jukebox</em> component of my <em>sjimm</em> command will be <em>0.0.0</em>.</p>
<p>So say I wanted to move the tape in slot 23 into the first drive in my autochanger. I&#8217;d use the command:</p>
<pre>[root@tara ~]# sjimm 0.0.0 slot 23 drive 1</pre>
<p>Note though that this doesn&#8217;t <em>mount</em> the tape. If I then run nsrjb, for my drive area I see:</p>
<pre>drive 1 (/dev/nst0) slot   :   
drive 2 (/dev/nst1) slot   :   
drive 3 (/dev/nst2) slot   :   
drive 4 (/dev/nst3) slot   :   
drive 5 (/dev/nst4) slot   :   
drive 6 (/dev/nst5) slot   :</pre>
<p>Note too that I didn&#8217;t give the drive to load the tape into as a operating system device, but instead a device number as per the autochanger&#8217;s definition. (I&#8217;ll get to tracing that in a minute.)</p>
<p>I can verify that there is a tape in the given drive at this point by running the command:</p>
<pre>[root@tara ~]# nsrmm -p -f /dev/nst0
Verified LTO Ultrium-4 tape 800823L4 on /dev/nst0</pre>
<p>When you&#8217;re done with the tape, you can then move it back:</p>
<pre>[root@tara ~]# sjimm 0.0.0 drive 1 slot 23</pre>
<p>Note that depending on the drive type, it may be necessary before issuing the above command to issue the <em>mt</em> command to take the media &#8220;offline&#8221;, which usually issues an eject command to the drive &#8211; e.g.,:</p>
<pre>[root@tara ~]# mt -f /dev/nst0 rewoff</pre>
<p>Other than that, there&#8217;s actually not a lot to <em>sjimm</em>. You can move tapes from slots to drives, slots to CAP slots, drives to slots, slots to slots, etc.</p>
<p>However, I did mention that I&#8217;d help you work out what drive number corresponds to what operating system device. Obviously if you&#8217;ve got the library configured, you can just use nsrjb&#8217;s output to see see the autochanger device &lt;-&gt; OS device path mapping. If you don&#8217;t yet have a tape library configured in NetWorker, or the issue is determining which drive is currently mapped to which path (after say, a tape drive replacement), you need to do a little more digging.</p>
<p>So, in this case you&#8217;d run <em>sjisn</em> – which is designed to report serial numbers and device details for tape library components. Like <em>sjimm</em>, <em>sjisn</em> takes the control port of the tape library we want to communicate with &#8211; e.g.:</p>
<pre>
<pre>[root@tara ~]# sjisn 0.0.0</pre>
<p>Serial Number data for 0.0.0 (SPECTRA  PYTHON          ):<br />
Library:<br />
Serial Number: XYZZY<br />
SCSI-3 Device Identifiers:<br />
ATNN=SPECTRA PYTHON          XYZZY<br />
WWNN=11223344ABCDEF00<br />
Drive at element address 1:<br />
SCSI-3 Device Identifiers:                         ATNN=ZF7584364<br />
Drive at element address 2:<br />
SCSI-3 Device Identifiers:<br />
ATNN=ZF7584366<br />
Drive at element address 3:<br />
SCSI-3 Device Identifiers:<br />
ATNN=ZF7584368<br />
Drive at element address 4:<br />
SCSI-3 Device Identifiers:<br />
ATNN=ZF7584370<br />
Drive at element address 5:<br />
SCSI-3 Device Identifiers:<br />
ATNN=ZF7584372<br />
Drive at element address 6:<br />
SCSI-3 Device Identifiers:<br />
ATNN=ZF7584374</pre>
<p>The number given in the &#8220;Drive at element address&#8221; line for each drive represents, literally, the drive number according to the tape library itself. I.e., when it refers to drive 1, it means the drive with serial number ZF7584364.</p>
<p>Moving on, we can then run <em>inquire -l</em> to provide the device details so as to align internal library drive numbers to operating system paths, cross-referencing by the serial numbers (or WWNs when using a fibre-channel tape library).  In this case, I&#8217;ll just show the details for two of the tape drives:</p>
<pre>scsidev@0.3.0:IBM     ULT3580-TD4     5500|Tape, /dev/nst2
                                           S/N:    ZF7584368
                                           ATNN=IBM     ULT3580-TD4     ZF7584368
                                           WWNN=11223344ABCDEF03
scsidev@0.4.0:IBM     ULT3580-TD4     5500|Tape, /dev/nst3
                                           S/N:    ZF7584370
                                           ATNN=IBM     ULT3580-TD4     ZF7584370
                                           WWNN=11223344ABCDEF04</pre>
<p>So, you can see from the above that we can map the drives as follows:</p>
<ul>
<li>The drive known to the OS as /dev/nst2, which has a serial number of ZF7584368 maps to the library device number 3.</li>
<li>The drive known to the OS as /dev/nst3, which has a serial number of ZF7584370 maps to the library device number 4.</li>
</ul>
<p>So this would give us the drive numbers to use in <em>sjimm</em> if we needed to move tapes in or out of those drives without using NetWorker&#8217;s NMC or <em>nsrjb</em>.</p>
<p>As a side-note, that&#8217;s also how you&#8217;d go about identifying the correct device order for a manual <em>jbconfig</em> operation when the library device order is out of sync with the operating system devices – cross-checking via <em>sjisn</em> and <em>inquire</em>.</p>
<!-- Social Bookmarks BEGIN -->
<div class="social_bookmark">
<a><strong><em>Share this using...</em></strong></a>
<br />
<div class="d">
<br />
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://buzz.yahoo.com/submit?submitUrl=http%3A%2F%2Fnsrd.info%2Fblog%2F2010%2F03%2F15%2Fbasics-%25e2%2580%2593%25c2%25a0bypassing-networker-for-media-movement%2F&amp;submitHeadline=Basics+%E2%80%93%C2%A0Bypassing+NetWorker+for+media+movement&amp;submitSummary=" rel="nofollow" title="Add to&nbsp;Buzz"><img class="social_img" src="http://nsrd.info/blog/wp-content/plugins/social-bookmarks/images/buzz.png" title="Add to&nbsp;Buzz" alt="Add to&nbsp;Buzz" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://del.icio.us/post?url=http%3A%2F%2Fnsrd.info%2Fblog%2F2010%2F03%2F15%2Fbasics-%25e2%2580%2593%25c2%25a0bypassing-networker-for-media-movement%2F&amp;title=Basics+%E2%80%93%C2%A0Bypassing+NetWorker+for+media+movement" rel="nofollow" title="Add to&nbsp;Del.icio.us"><img class="social_img" src="http://nsrd.info/blog/wp-content/plugins/social-bookmarks/images/delicious.png" title="Add to&nbsp;Del.icio.us" alt="Add to&nbsp;Del.icio.us" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fnsrd.info%2Fblog%2F2010%2F03%2F15%2Fbasics-%25e2%2580%2593%25c2%25a0bypassing-networker-for-media-movement%2F&amp;title=Basics+%E2%80%93%C2%A0Bypassing+NetWorker+for+media+movement" rel="nofollow" title="Add to&nbsp;digg"><img class="social_img" src="http://nsrd.info/blog/wp-content/plugins/social-bookmarks/images/digg.png" title="Add to&nbsp;digg" alt="Add to&nbsp;digg" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.facebook.com/sharer.php?u=http%3A%2F%2Fnsrd.info%2Fblog%2F2010%2F03%2F15%2Fbasics-%25e2%2580%2593%25c2%25a0bypassing-networker-for-media-movement%2F" rel="nofollow" title="Add to&nbsp;Facebook"><img class="social_img" src="http://nsrd.info/blog/wp-content/plugins/social-bookmarks/images/facebook.png" title="Add to&nbsp;Facebook" alt="Add to&nbsp;Facebook" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http%3A%2F%2Fnsrd.info%2Fblog%2F2010%2F03%2F15%2Fbasics-%25e2%2580%2593%25c2%25a0bypassing-networker-for-media-movement%2F&amp;title=Basics+%E2%80%93%C2%A0Bypassing+NetWorker+for+media+movement" rel="nofollow" title="Add to&nbsp;Google Bookmarks"><img class="social_img" src="http://nsrd.info/blog/wp-content/plugins/social-bookmarks/images/google.png" title="Add to&nbsp;Google Bookmarks" alt="Add to&nbsp;Google Bookmarks" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.mister-wong.com/index.php?action=addurl&amp;bm_url=http%3A%2F%2Fnsrd.info%2Fblog%2F2010%2F03%2F15%2Fbasics-%25e2%2580%2593%25c2%25a0bypassing-networker-for-media-movement%2F&amp;bm_description=Basics+%E2%80%93%C2%A0Bypassing+NetWorker+for+media+movement" rel="nofollow" title="Add to&nbsp;Mister Wong"><img class="social_img" src="http://nsrd.info/blog/wp-content/plugins/social-bookmarks/images/misterwong.png" title="Add to&nbsp;Mister Wong" alt="Add to&nbsp;Mister Wong" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.netscape.com/submit/?U=http%3A%2F%2Fnsrd.info%2Fblog%2F2010%2F03%2F15%2Fbasics-%25e2%2580%2593%25c2%25a0bypassing-networker-for-media-movement%2F&amp;T=Basics+%E2%80%93%C2%A0Bypassing+NetWorker+for+media+movement" rel="nofollow" title="Add to&nbsp;Netscape"><img class="social_img" src="http://nsrd.info/blog/wp-content/plugins/social-bookmarks/images/netscape.png" title="Add to&nbsp;Netscape" alt="Add to&nbsp;Netscape" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://reddit.com/submit?url=http%3A%2F%2Fnsrd.info%2Fblog%2F2010%2F03%2F15%2Fbasics-%25e2%2580%2593%25c2%25a0bypassing-networker-for-media-movement%2F&amp;title=Basics+%E2%80%93%C2%A0Bypassing+NetWorker+for+media+movement" rel="nofollow" title="Add to&nbsp;reddit"><img class="social_img" src="http://nsrd.info/blog/wp-content/plugins/social-bookmarks/images/reddit.png" title="Add to&nbsp;reddit" alt="Add to&nbsp;reddit" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fnsrd.info%2Fblog%2F2010%2F03%2F15%2Fbasics-%25e2%2580%2593%25c2%25a0bypassing-networker-for-media-movement%2F&amp;title=Basics+%E2%80%93%C2%A0Bypassing+NetWorker+for+media+movement" rel="nofollow" title="Add to&nbsp;Stumble Upon"><img class="social_img" src="http://nsrd.info/blog/wp-content/plugins/social-bookmarks/images/stumbleupon.png" title="Add to&nbsp;Stumble Upon" alt="Add to&nbsp;Stumble Upon" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.technorati.com/faves?add=http%3A%2F%2Fnsrd.info%2Fblog%2F2010%2F03%2F15%2Fbasics-%25e2%2580%2593%25c2%25a0bypassing-networker-for-media-movement%2F" rel="nofollow" title="Add to&nbsp;Technorati"><img class="social_img" src="http://nsrd.info/blog/wp-content/plugins/social-bookmarks/images/technorati.png" title="Add to&nbsp;Technorati" alt="Add to&nbsp;Technorati" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://tipd.com/submit.php?url=http%3A%2F%2Fnsrd.info%2Fblog%2F2010%2F03%2F15%2Fbasics-%25e2%2580%2593%25c2%25a0bypassing-networker-for-media-movement%2F" rel="nofollow" title="Add to&nbsp;Tip'd"><img class="social_img" src="http://nsrd.info/blog/wp-content/plugins/social-bookmarks/images/tipd.png" title="Add to&nbsp;Tip'd" alt="Add to&nbsp;Tip'd" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://twitter.com/home/?status=Check+out+Basics+%E2%80%93%C2%A0Bypassing+NetWorker+for+media+movement+@+http%3A%2F%2Fnsrd.info%2Fblog%2F2010%2F03%2F15%2Fbasics-%25e2%2580%2593%25c2%25a0bypassing-networker-for-media-movement%2F" rel="nofollow" title="Add to&nbsp;Twitter"><img class="social_img" src="http://nsrd.info/blog/wp-content/plugins/social-bookmarks/images/twitter.png" title="Add to&nbsp;Twitter" alt="Add to&nbsp;Twitter" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://myweb2.search.yahoo.com/myresults/bookmarklet?u=http%3A%2F%2Fnsrd.info%2Fblog%2F2010%2F03%2F15%2Fbasics-%25e2%2580%2593%25c2%25a0bypassing-networker-for-media-movement%2F&amp;t=Basics+%E2%80%93%C2%A0Bypassing+NetWorker+for+media+movement" rel="nofollow" title="Add to&nbsp;Yahoo My Web"><img class="social_img" src="http://nsrd.info/blog/wp-content/plugins/social-bookmarks/images/yahoo.png" title="Add to&nbsp;Yahoo My Web" alt="Add to&nbsp;Yahoo My Web" /></a>
<br />
</div>
</div>
<!-- Social Bookmarks END -->
<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://nsrd.info/blog/2010/03/15/basics-%e2%80%93%c2%a0bypassing-networker-for-media-movement/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Basics &#8211; Peeking inside your jukebox without leaving your desk</title>
		<link>http://nsrd.info/blog/2009/09/10/basics-peeking-inside-your-jukebox-without-leaving-your-desk/</link>
		<comments>http://nsrd.info/blog/2009/09/10/basics-peeking-inside-your-jukebox-without-leaving-your-desk/#comments</comments>
		<pubDate>Thu, 10 Sep 2009 09:42:03 +0000</pubDate>
		<dc:creator>Preston de Guise</dc:creator>
				<category><![CDATA[Basics]]></category>
		<category><![CDATA[NetWorker]]></category>
		<category><![CDATA[autochanger]]></category>
		<category><![CDATA[cache]]></category>
		<category><![CDATA[inquire]]></category>
		<category><![CDATA[jukebox]]></category>
		<category><![CDATA[sjirdtag]]></category>

		<guid isPermaLink="false">http://nsrd.wordpress.com/?p=718</guid>
		<description><![CDATA[In order to speed up jukebox operations, NetWorker maintains a cache, or a map, if you will, of the current expected jukebox state based on the operations that have happened since it was last fully queried. This avoids having to do (time) costly SCSI probes before every operation. (This, for what it&#8217;s worth, is why <a href='http://nsrd.info/blog/2009/09/10/basics-peeking-inside-your-jukebox-without-leaving-your-desk/'>[...]</a>
No related posts.

Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>In order to speed up jukebox operations, NetWorker maintains a cache, or a map, if you will, of the current expected jukebox state based on the operations that have happened since it was last fully queried. This avoids having to do (time) costly SCSI probes before every operation.</p>
<p>(This, for what it&#8217;s worth, is why you can&#8217;t have another process, or another person, playing with the jukebox as well as NetWorker. For instance, a customer once had their jukebox accessible to all the developers on-site. They found on average the jukebox got into a terrible state several times a day, and thought they had a lemon of a product (either NetWorker or the STK L700) until they found out that having developers open the library door, arbitrarily pull tapes out and put new tapes in was not a good idea.)</p>
<p>Coming back to jukeboxes though, there are times when the cache is out of sync with reality. A few of the more common scenarios where this will happen are:</p>
<ul>
<li>In disaster recovery situations</li>
<li>In situations where someone has manually moved around media</li>
<li>In situations where NetWorker has lost track of state due to a lengthy timeout on an error</li>
</ul>
<p>In situations such as these, there&#8217;s an invaluable tool called sjirdtag that can come to the rescue. Instead of checking with the NetWorker cached contents of the library, sjirdtag instead delves down into what the library describes as its own content. I.e., it&#8217;s like peeking inside the library without having to leave your desk.</p>
<p>In order to use sjirdtag, you need to know the SCSI control port of the library; this is reported in the library properties in NetWorker management console, or you can find it out relatively quickly via inquire:</p>
<pre>[root@tara ~]# inquire -l

-l flag found: searching all LUNs, which may take over 10 minutes per adapter
 for some fibre channel adapters.  Please be patient.

scsidev@0.0.0:STK     L700            5500|Autochanger (Jukebox), /dev/sg1
                                           S/N:    XYZZY     
                                           ATNN=STK     L700            XYZZY     
                                           WWNN=5123456003030303
scsidev@0.1.0:QUANTUM SDLT600         5500|Tape, /dev/nst0
                                           S/N:    ZF7584364
                                           ATNN=QUANTUM SDLT600         ZF7584364
                                           WWNN=5123456003030303</pre>
<p>In this case, our library (a VTL presenting itself as an STK L700) is on scsidev@0.0.0. So, when we want to check the contents of the library, we run the command sjirdtag 0.0.0 – which looks like the following:</p>
<pre>[root@tara ~]# sjirdtag 0.0.0
Tag Data for 0.0.0, Element Type DATA TRANSPORT:
        Elem[001]: tag_val=0 pres_val=1 med_pres=0 med_side=0
Tag Data for 0.0.0, Element Type STORAGE:
        Elem[001]: tag_val=1 pres_val=1 med_pres=1 med_side=0
                   VolumeTag=&lt;800843S3                       &gt;
        Elem[002]: tag_val=1 pres_val=1 med_pres=1 med_side=0
                   VolumeTag=&lt;800844S3                       &gt;
        Elem[003]: tag_val=1 pres_val=1 med_pres=1 med_side=0
                   VolumeTag=&lt;800845S3                       &gt;
        Elem[004]: tag_val=1 pres_val=1 med_pres=1 med_side=0
                   VolumeTag=&lt;800846S3                       &gt;
        Elem[005]: tag_val=1 pres_val=1 med_pres=1 med_side=0
                   VolumeTag=&lt;800847S3                       &gt;
        Elem[006]: tag_val=1 pres_val=1 med_pres=1 med_side=0
                   VolumeTag=&lt;800848S3                       &gt;
        Elem[007]: tag_val=1 pres_val=1 med_pres=1 med_side=0
                   VolumeTag=&lt;800849S3                       &gt;
        Elem[008]: tag_val=1 pres_val=1 med_pres=1 med_side=0
                   VolumeTag=&lt;800850S3                       &gt;
        Elem[009]: tag_val=1 pres_val=1 med_pres=1 med_side=0
                   VolumeTag=&lt;800851S3                       &gt;
        Elem[010]: tag_val=1 pres_val=1 med_pres=1 med_side=0
                   VolumeTag=&lt;800852S3                       &gt;
        Elem[011]: tag_val=1 pres_val=1 med_pres=1 med_side=0
                   VolumeTag=&lt;800853S3                       &gt;
        Elem[012]: tag_val=1 pres_val=1 med_pres=1 med_side=0
                   VolumeTag=&lt;800854S3                       &gt;
        Elem[013]: tag_val=1 pres_val=1 med_pres=1 med_side=0
                   VolumeTag=&lt;800855S3                       &gt;
        Elem[014]: tag_val=1 pres_val=1 med_pres=1 med_side=0
                   VolumeTag=&lt;800856S3                       &gt;
        Elem[015]: tag_val=1 pres_val=1 med_pres=1 med_side=0
                   VolumeTag=&lt;800857S3                       &gt;
        Elem[016]: tag_val=1 pres_val=1 med_pres=1 med_side=0
                   VolumeTag=&lt;800858S3                       &gt;
        Elem[017]: tag_val=1 pres_val=1 med_pres=1 med_side=0
                   VolumeTag=&lt;800859S3                       &gt;
        Elem[018]: tag_val=1 pres_val=1 med_pres=1 med_side=0
                   VolumeTag=&lt;800860S3                       &gt;
        Elem[019]: tag_val=1 pres_val=1 med_pres=1 med_side=0
                   VolumeTag=&lt;800861S3                       &gt;
        Elem[020]: tag_val=1 pres_val=1 med_pres=1 med_side=0
                   VolumeTag=&lt;800862S3                       &gt;
        Elem[021]: tag_val=1 pres_val=1 med_pres=1 med_side=0
                   VolumeTag=&lt;BIG990S3                       &gt;
        Elem[022]: tag_val=1 pres_val=1 med_pres=1 med_side=0
                   VolumeTag=&lt;BIG991S3                       &gt;
        Elem[023]: tag_val=1 pres_val=1 med_pres=1 med_side=0
                   VolumeTag=&lt;BIG992S3                       &gt;
        Elem[024]: tag_val=1 pres_val=1 med_pres=1 med_side=0
                   VolumeTag=&lt;BIG993S3                       &gt;
        Elem[025]: tag_val=1 pres_val=1 med_pres=1 med_side=0
                   VolumeTag=&lt;BIG994S3                       &gt;
        Elem[026]: tag_val=1 pres_val=1 med_pres=1 med_side=0
                   VolumeTag=&lt;BIG995S3                       &gt;
        Elem[027]: tag_val=1 pres_val=1 med_pres=1 med_side=0
                   VolumeTag=&lt;BIG996S3                       &gt;
        Elem[028]: tag_val=1 pres_val=1 med_pres=1 med_side=0
                   VolumeTag=&lt;BIG997S3                       &gt;
        Elem[029]: tag_val=1 pres_val=1 med_pres=1 med_side=0
                   VolumeTag=&lt;BIG998S3                       &gt;
        Elem[030]: tag_val=1 pres_val=1 med_pres=1 med_side=0
                   VolumeTag=&lt;BIG999S3                       &gt;
        Elem[031]: tag_val=1 pres_val=1 med_pres=1 med_side=0
                   VolumeTag=&lt;CLN001L1                       &gt;
        Elem[032]: tag_val=1 pres_val=1 med_pres=1 med_side=0
                   VolumeTag=&lt;CLN002L1                       &gt;
Tag Data for 0.0.0, Element Type MEDIA TRANSPORT:
        Elem[001]: tag_val=0 pres_val=1 med_pres=0 med_side=0
Tag Data for 0.0.0, Element Type IMPORT/EXPORT:
        Elem[001]: tag_val=0 pres_val=1 inp_enab=1 exp_enab=1 access=1 full=0 imp_exp=1
        Elem[002]: tag_val=0 pres_val=1 inp_enab=1 exp_enab=1 access=1 full=0 imp_exp=1
        Elem[003]: tag_val=0 pres_val=1 inp_enab=1 exp_enab=1 access=1 full=0 imp_exp=1
        Elem[004]: tag_val=0 pres_val=1 inp_enab=1 exp_enab=1 access=1 full=0 imp_exp=1</pre>
<p>For those who are unfamiliar with sjirdtag, let&#8217;s break this up into the four sections presented (using the capitalisation in the output – not shouting):</p>
<ul>
<li>DATA TRANSPORT – Refers to the tape drives within the library &#8211; i.e., the units responsible for transporting the data.</li>
<li>STORAGE – The slots used by the library for storage of cartridges. This does not refer to the slot(s) in the CAP/MAS.</li>
<li>MEDIA TRANSPORT – The robot head(s). There&#8217;ll be one per robot head.</li>
<li>IMPORT/EXPORT – The contents of the slots in the CAP/MAS.</li>
</ul>
<p>If you&#8217;re wondering about those element numbers, they&#8217;re essentially the positions or numbers of the units as assigned by the library. In particular, for the drives (DATA TRANSPORT) section, these refer to the drives in order as they are presented by the tape library; this means that if your operating system drive mappings don&#8217;t match the library sequence, the output here also won&#8217;t match the operating system sequence of devices.</p>
<p>Now for each element other than the CAP/MAS areas, we get the following selection of information:</p>
<p>tag_val=[0|1] pres_val=[0|1] med_pres=[0|1] med_side=[0|1]</p>
<p>Each of these items mean:</p>
<ul>
<li>tag_val – Indicates that there&#8217;s SCSI tag data for that element. 1 for yes, 0 for no.</li>
<li>med_pres – Jukebox state indicates that there is media present in this location. 1 for yes, 0 for no.</li>
<li>pres_val – A bit of an airy-fairy value; if set to 1, then it means that the med_pres value should be fairly believable. If set to 0 but the med_pres value is 1, then while there may be media present, there may also be an error condition. If set to 0, and med_pres is set to 0, then it also means that the med_pres value should be fairly believable.</li>
<li>med_side – For jukeboxes/media that supports double-sided media (e.g., older optical disk libraries), this indicates which side of the media is in use; for tape based libraries, this will always be 0.</li>
</ul>
<p>For any element that has a volume with a barcode, this will be shown on the line underneath the element details with the format:</p>
<p>VolumeTag=&lt;PCL                 &gt;</p>
<p>For our import/export regions, the additional options, inp_enab, exp_enab, access, full and imp_exp are effectively undocumented, but my assumption on these items are:</p>
<ul>
<li>inp_enab – Slot can be used for import.</li>
<li>exp_enab – Slot can be used for export.</li>
<li>access – Slot is accessible.</li>
<li>imp_exp – Slot is an import/export slot.</li>
</ul>
<p>(The other option, &#8220;full&#8221;, most definitely indicates whether the slot is occupied or not.)</p>
<p>As can be evidenced by the &#8220;airy-fairy&#8221; nature of the pres_val tag, there&#8217;s no 100% guarantee that this information is physically accurate. However, it is an accurate reflection of the state that the library thinks it&#8217;s in, and thus is an accurate reflection of how the library will behave in response to requested operations. Furthermore, if the state shown by sjirdtag differs from the state shown by nsrjb, then it&#8217;s a good indication that it&#8217;s time to reset/reinventory the library. I.e., time to run:</p>
<pre># nsrjb -HEvvv
# nsrjb -II</pre>
<p>(The reset instructs NetWorker to throw away its state information, tell the library to reinitialise itself, and then refreshes the volume state.The inventory command specified is assuming a barcode-supported library with barcoded volumes.)</p>
<p>Things that I routinely use (or get customers to use) sjirdtag for include:</p>
<ul>
<li>Checking to see if there is a tape in a drive that NetWorker thinks is empty.</li>
<li>Checking to see if the tape NetWorker thinks is in a drive really is in the drive.</li>
<li>Checking to see if operators at a remote library have loaded media into the CAP/MAS.</li>
<li>Checking to see if there is a tape stuck in the robot gripper.</li>
<li>Finding the bootstrap volume when a disaster recovery (mmrecov) is required.</li>
</ul>
<p>If you&#8217;ve not used sjirdtag before, it&#8217;s worthwhile scheduling a time where there&#8217;s minimal activity in the library so you can check it out.</p>
<!-- Social Bookmarks BEGIN -->
<div class="social_bookmark">
<a><strong><em>Share this using...</em></strong></a>
<br />
<div class="d">
<br />
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://buzz.yahoo.com/submit?submitUrl=http%3A%2F%2Fnsrd.info%2Fblog%2F2009%2F09%2F10%2Fbasics-peeking-inside-your-jukebox-without-leaving-your-desk%2F&amp;submitHeadline=Basics+%26%238211%3B+Peeking+inside+your+jukebox+without+leaving+your+desk&amp;submitSummary=" rel="nofollow" title="Add to&nbsp;Buzz"><img class="social_img" src="http://nsrd.info/blog/wp-content/plugins/social-bookmarks/images/buzz.png" title="Add to&nbsp;Buzz" alt="Add to&nbsp;Buzz" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://del.icio.us/post?url=http%3A%2F%2Fnsrd.info%2Fblog%2F2009%2F09%2F10%2Fbasics-peeking-inside-your-jukebox-without-leaving-your-desk%2F&amp;title=Basics+%26%238211%3B+Peeking+inside+your+jukebox+without+leaving+your+desk" rel="nofollow" title="Add to&nbsp;Del.icio.us"><img class="social_img" src="http://nsrd.info/blog/wp-content/plugins/social-bookmarks/images/delicious.png" title="Add to&nbsp;Del.icio.us" alt="Add to&nbsp;Del.icio.us" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fnsrd.info%2Fblog%2F2009%2F09%2F10%2Fbasics-peeking-inside-your-jukebox-without-leaving-your-desk%2F&amp;title=Basics+%26%238211%3B+Peeking+inside+your+jukebox+without+leaving+your+desk" rel="nofollow" title="Add to&nbsp;digg"><img class="social_img" src="http://nsrd.info/blog/wp-content/plugins/social-bookmarks/images/digg.png" title="Add to&nbsp;digg" alt="Add to&nbsp;digg" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.facebook.com/sharer.php?u=http%3A%2F%2Fnsrd.info%2Fblog%2F2009%2F09%2F10%2Fbasics-peeking-inside-your-jukebox-without-leaving-your-desk%2F" rel="nofollow" title="Add to&nbsp;Facebook"><img class="social_img" src="http://nsrd.info/blog/wp-content/plugins/social-bookmarks/images/facebook.png" title="Add to&nbsp;Facebook" alt="Add to&nbsp;Facebook" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http%3A%2F%2Fnsrd.info%2Fblog%2F2009%2F09%2F10%2Fbasics-peeking-inside-your-jukebox-without-leaving-your-desk%2F&amp;title=Basics+%26%238211%3B+Peeking+inside+your+jukebox+without+leaving+your+desk" rel="nofollow" title="Add to&nbsp;Google Bookmarks"><img class="social_img" src="http://nsrd.info/blog/wp-content/plugins/social-bookmarks/images/google.png" title="Add to&nbsp;Google Bookmarks" alt="Add to&nbsp;Google Bookmarks" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.mister-wong.com/index.php?action=addurl&amp;bm_url=http%3A%2F%2Fnsrd.info%2Fblog%2F2009%2F09%2F10%2Fbasics-peeking-inside-your-jukebox-without-leaving-your-desk%2F&amp;bm_description=Basics+%26%238211%3B+Peeking+inside+your+jukebox+without+leaving+your+desk" rel="nofollow" title="Add to&nbsp;Mister Wong"><img class="social_img" src="http://nsrd.info/blog/wp-content/plugins/social-bookmarks/images/misterwong.png" title="Add to&nbsp;Mister Wong" alt="Add to&nbsp;Mister Wong" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.netscape.com/submit/?U=http%3A%2F%2Fnsrd.info%2Fblog%2F2009%2F09%2F10%2Fbasics-peeking-inside-your-jukebox-without-leaving-your-desk%2F&amp;T=Basics+%26%238211%3B+Peeking+inside+your+jukebox+without+leaving+your+desk" rel="nofollow" title="Add to&nbsp;Netscape"><img class="social_img" src="http://nsrd.info/blog/wp-content/plugins/social-bookmarks/images/netscape.png" title="Add to&nbsp;Netscape" alt="Add to&nbsp;Netscape" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://reddit.com/submit?url=http%3A%2F%2Fnsrd.info%2Fblog%2F2009%2F09%2F10%2Fbasics-peeking-inside-your-jukebox-without-leaving-your-desk%2F&amp;title=Basics+%26%238211%3B+Peeking+inside+your+jukebox+without+leaving+your+desk" rel="nofollow" title="Add to&nbsp;reddit"><img class="social_img" src="http://nsrd.info/blog/wp-content/plugins/social-bookmarks/images/reddit.png" title="Add to&nbsp;reddit" alt="Add to&nbsp;reddit" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fnsrd.info%2Fblog%2F2009%2F09%2F10%2Fbasics-peeking-inside-your-jukebox-without-leaving-your-desk%2F&amp;title=Basics+%26%238211%3B+Peeking+inside+your+jukebox+without+leaving+your+desk" rel="nofollow" title="Add to&nbsp;Stumble Upon"><img class="social_img" src="http://nsrd.info/blog/wp-content/plugins/social-bookmarks/images/stumbleupon.png" title="Add to&nbsp;Stumble Upon" alt="Add to&nbsp;Stumble Upon" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.technorati.com/faves?add=http%3A%2F%2Fnsrd.info%2Fblog%2F2009%2F09%2F10%2Fbasics-peeking-inside-your-jukebox-without-leaving-your-desk%2F" rel="nofollow" title="Add to&nbsp;Technorati"><img class="social_img" src="http://nsrd.info/blog/wp-content/plugins/social-bookmarks/images/technorati.png" title="Add to&nbsp;Technorati" alt="Add to&nbsp;Technorati" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://tipd.com/submit.php?url=http%3A%2F%2Fnsrd.info%2Fblog%2F2009%2F09%2F10%2Fbasics-peeking-inside-your-jukebox-without-leaving-your-desk%2F" rel="nofollow" title="Add to&nbsp;Tip'd"><img class="social_img" src="http://nsrd.info/blog/wp-content/plugins/social-bookmarks/images/tipd.png" title="Add to&nbsp;Tip'd" alt="Add to&nbsp;Tip'd" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://twitter.com/home/?status=Check+out+Basics+%26%238211%3B+Peeking+inside+your+jukebox+without+leaving+your+desk+@+http%3A%2F%2Fnsrd.info%2Fblog%2F2009%2F09%2F10%2Fbasics-peeking-inside-your-jukebox-without-leaving-your-desk%2F" rel="nofollow" title="Add to&nbsp;Twitter"><img class="social_img" src="http://nsrd.info/blog/wp-content/plugins/social-bookmarks/images/twitter.png" title="Add to&nbsp;Twitter" alt="Add to&nbsp;Twitter" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://myweb2.search.yahoo.com/myresults/bookmarklet?u=http%3A%2F%2Fnsrd.info%2Fblog%2F2009%2F09%2F10%2Fbasics-peeking-inside-your-jukebox-without-leaving-your-desk%2F&amp;t=Basics+%26%238211%3B+Peeking+inside+your+jukebox+without+leaving+your+desk" rel="nofollow" title="Add to&nbsp;Yahoo My Web"><img class="social_img" src="http://nsrd.info/blog/wp-content/plugins/social-bookmarks/images/yahoo.png" title="Add to&nbsp;Yahoo My Web" alt="Add to&nbsp;Yahoo My Web" /></a>
<br />
</div>
</div>
<!-- Social Bookmarks END -->
<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://nsrd.info/blog/2009/09/10/basics-peeking-inside-your-jukebox-without-leaving-your-desk/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: basic

Served from: nsrd.info @ 2012-02-09 12:55:10 -->
