Updated Summary: Listing Tape devices?

From: Sun Tyro (suntyro@ureach.com)
Date: Wed Mar 05 2003 - 10:49:28 EST


An update on the summary: There is a command which does this
straight:

/opt/SUNWexplo/tools/bin/diskinfo.sparc |grep rmt

 -> it lists the tape device path (i.e /dev/rmt/0x and the
vendor, product, rev, serial number. almost similar to ioscan
output of HP.

Thanks to Bertrand_Hutin for this tip.
 

________________________________________________
Get your own "800" number
Voicemail, fax, email, and a lot more
http://www.ureach.com/reg/tag

---- On Tue, 4 Mar 2003, Sun Tyro (suntyro@ureach.com) wrote:

> Thanks for all the responders. Too many to mention.
>
> The correct solution was to run the command:
> iostat -En
>
> eg: iostat -En |grep -e rmt -e DLT -e STK
> rmt/0 ...
> Vendor:STK Product: T9840B Revision ..
> -> which implies there is one tape drive /dev/rmt/0ub of STK
> model; It's h/w path can be got by the commands mentioned
in
> my original post.
> Incidentally the iostat -En is used to list errors
occuring
> in the i/o devices. Ironic, that this command is the
easiest
> way to list tape devices ;-)
>
> Other responses included:
>
> mt status -> doesn't work out well, since it depends on
tapes
> being present in the drives; and also does not work well with
> SAN drives.
>
> /usr/sbin/smc -> gui utility which is disabled on many of
my
> servers. Also, not the ideal solution when a command line is
> what i am looking for.
>
>
> cfgadm -alv -> does not show any reference to rmt.
>
> Install sysinfo from http://www.magnicomp.com/sysinfo/
> -> haven't yet tried it. Wish it was a free product.
>
> use ssciinfo tool -> haven't tried it as yet.
>
> thanks again!
>
>
>
> ________________________________________________
> Get your own "800" number
> Voicemail, fax, email, and a lot more
> http://www.ureach.com/reg/tag
>
>
> ---- On Tue, 4 Mar 2003, Sun Tyro (suntyro@ureach.com) wrote:
>
> > Hi!
> >
> > How to find out what are the model of tape drives
> connected
> > to a SUN system?? is there a command(s) equivalent
> to "ioscan -
> > nkfC tape" of hpux ?
> >
> > I need to configure tape drives for backup on couple of
sun
> > systems (e4500) and my first step is to figure out whether
> > there are any DLT7000 tape drives connected to the system.
> How
> > do i do this, without physically checking the cables and
> > tracing them? In HP, the ioscan command lists the tape
> > devices, their paths and the model information.
> >
> > I checked the following two commands :
> > #prtconf |grep "st," |grep -v not
> > st, instance #269
> > st, instance #268
> >
> > ->> does this mean that there are two tape drives
> connected
> > to the system?
> >
> > # grep "269" /etc/path_to_inst |grep st
> > "/sbus@7,0/fce@0,400000/st@0,1" 269 "st"
> >
> > #ls -l /dev/rmt/*ub |grep "fce@0,400000/st@0,1"
> > /dev/rmt/3ub
> >
> > So, with the above 3 commands, i find that /dev/rmt/3ub
is
> a
> > tape drive connected to the system. How do i find out what
> type
> > or model of drive it is?? Is it a DLT, a dat drive ?
> >
> > Is there any easier way to do this all in one
> script/command?
> >
> >
> > thanks for the help.
> > styro
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:25:56 EDT