Networker

Re: [Networker] using 'relem' to get a list of inserted tapes

2007-01-12 12:55:12
Subject: Re: [Networker] using 'relem' to get a list of inserted tapes
From: Tim Mooney <Tim.Mooney AT NDSU DOT EDU>
To: NETWORKER AT LISTSERV.TEMPLE DOT EDU
Date: Fri, 12 Jan 2007 11:49:09 -0600
In regard to: [Networker] using 'relem' to get a list of inserted tapes, Ty...:

Hi folks,

NetWorker 7.2.1 Power Edition (server) running on Solaris 10
Sun/StorageTek L500 library (5 x LTO3 FC drives)

I'm able to see the contents of my L500's CAP (loadport) by using 'relem -
a 2.0.0 -Ftr 10.15', although the output's a little bit more verbose than
I need.   Only issue is that the output of the 'Primary Tag' section is in
hex, not ASCII, so I have to manually (oops, I mean with Perl :-) convert
it into something meaningful.

The goal, then, is to end up with a human-readable list of tapes currently
in the CAP of a library.

I've always used the underlying OS's media-changer commands to get
information about what's in the cap.  On Linux, that's MTX

        mtx.sourceforge.net

It claims to support Solaris, though I've never tried it on Solaris.
MTX outputs it in a human readable format:

$sudo mtx -f /dev/sg0 status
  Storage Changer /dev/sg0:2 Drives, 270 Slots ( 10 Import/Export )
Data Transfer Element 0:Empty
Data Transfer Element 1:Empty
      Storage Element 1:Full :VolumeTag=ITS039
      Storage Element 2:Full :VolumeTag=ITS000
      Storage Element 3:Full :VolumeTag=ITS001
      Storage Element 4:Full :VolumeTag=ITS004
      Storage Element 5:Full :VolumeTag=ITS003

[deleted]

      Storage Element 259:Empty
      Storage Element 260:Empty
      Storage Element 261 IMPORT/EXPORT:Empty
      Storage Element 262 IMPORT/EXPORT:Empty
      Storage Element 263 IMPORT/EXPORT:Empty
      Storage Element 264 IMPORT/EXPORT:Empty
      Storage Element 265 IMPORT/EXPORT:Empty
      Storage Element 266 IMPORT/EXPORT:Empty
      Storage Element 267 IMPORT/EXPORT:Empty
      Storage Element 268 IMPORT/EXPORT:Empty
      Storage Element 269 IMPORT/EXPORT:Empty
      Storage Element 270 IMPORT/EXPORT:Empty


Tim
--
Tim Mooney                                           Tim.Mooney AT ndsu DOT edu
Information Technology Services                      (701) 231-1076 (Voice)
Room 242-J6, IACC Building                           (701) 231-8541 (Fax)
North Dakota State University, Fargo, ND 58105-5164

To sign off this list, send email to listserv AT listserv.temple DOT edu and type 
"signoff networker" in the body of the email. Please write to networker-request 
AT listserv.temple DOT edu if you have any problems with this list. You can access the 
archives at http://listserv.temple.edu/archives/networker.html or
via RSS at http://listserv.temple.edu/cgi-bin/wa?RSS&L=NETWORKER