mtlib command

2003-03-06 Thread Tommy Templeton
Does anyone know the mtlib command to clear erroneous volumes from inventory. These 
volumes were in the library but have been checked out.
We use a 3494 library.

thanks

Tommy Templeton


mtlib command

2002-05-20 Thread Gill, Geoffrey L.

Good day all,

Somewhere I had documented an mtlib command that could be used to query
information about the drives attached to the system. With the changeover of
TSM servers it's hard to figure out what drive is what. I have identified a
few by looking in the side door of the 3494 when a tape got mounted.
Unfortunately I'll never be able to do this with the rest and have misplaced
my mtlib commands.

Can anyone send me the command gives info about the drive itself, as in
serial number, so I can match rmt(whatever) to it. All I can find is mtlib
-l /dev/lmcp0 -qD -f/dev/rmt6, and this one doesn't do it for me. I've got a
bad drive and need to locate it this way.

Thanks,
Geoff Gill
TSM Administrator
NT Systems Support Engineer
SAIC
E-Mail:<mailto:[EMAIL PROTECTED]> [EMAIL PROTECTED]
Phone:  (858) 826-4062
Pager:   (877) 905-7154



Re: mtlib command

2003-03-06 Thread Conko, Steven
i believe we had the same problem. try this:

mtlib -l /dev/lmcp0 -vC -Vvolser -tFFFB


steve conko
-Original Message-
From: Tommy Templeton [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 06, 2003 11:39 AM
To: [EMAIL PROTECTED]
Subject: mtlib command


Does anyone know the mtlib command to clear erroneous volumes from
inventory. These volumes were in the library but have been checked out.
We use a 3494 library.

thanks

Tommy Templeton


Re: mtlib command

2003-03-06 Thread Tommy Templeton
That works well - thanks.

Tommy Templeton

- Original Message -
From: "Conko, Steven" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, March 06, 2003 10:53 AM
Subject: Re: mtlib command


> i believe we had the same problem. try this:
>
> mtlib -l /dev/lmcp0 -vC -Vvolser -tFFFB
>
>
> steve conko
> -Original Message-
> From: Tommy Templeton [mailto:[EMAIL PROTECTED]
> Sent: Thursday, March 06, 2003 11:39 AM
> To: [EMAIL PROTECTED]
> Subject: mtlib command
>
>
> Does anyone know the mtlib command to clear erroneous volumes from
> inventory. These volumes were in the library but have been checked out.
> We use a 3494 library.
>
> thanks
>
> Tommy Templeton


Re: mtlib command

2002-05-20 Thread Jonathan Siegle

I would use lscfg -v and find your serial number that way.



On Mon, 20 May 2002, Gill, Geoffrey L. wrote:

> Good day all,
>
> Somewhere I had documented an mtlib command that could be used to query
> information about the drives attached to the system. With the changeover of
> TSM servers it's hard to figure out what drive is what. I have identified a
> few by looking in the side door of the 3494 when a tape got mounted.
> Unfortunately I'll never be able to do this with the rest and have misplaced
> my mtlib commands.
>
> Can anyone send me the command gives info about the drive itself, as in
> serial number, so I can match rmt(whatever) to it. All I can find is mtlib
> -l /dev/lmcp0 -qD -f/dev/rmt6, and this one doesn't do it for me. I've got a
> bad drive and need to locate it this way.
>
> Thanks,
> Geoff Gill
> TSM Administrator
> NT Systems Support Engineer
> SAIC
> E-Mail:<mailto:[EMAIL PROTECTED]> [EMAIL PROTECTED]
> Phone:  (858) 826-4062
> Pager:   (877) 905-7154
>

Jonathan Siegle Center for Academic Computing
[EMAIL PROTECTED] Penn State University
814-865-5840University Park, Pa 16802



Re: mtlib command

2002-05-20 Thread Richard Cowen

mtlib -l /dev/lmcp0 -f /dev/rmt1 -qD
Device Data:
   mounted volser.none.
   device category012E
   device state...Device installed in Library.
  Device available to Library.
  ACL is installed.
  Auto Fill is enabled.
   device class...3590-E1A
   extended device status.00

$ mtlib -l /dev/lmcp0 -D
  0, 00C33980 003590E1A00
  1, 00C39160 003590E1A01

$ mtlib -l /dev/lmcp0 -D -E
 Type   Mod  Serial #   Devnum   Cuid  Device  VTS Library
003590  E1A  13-C3398  00C339801  0
003590  E1A  13-C3916  00C391602  0

$  mtlib -l /dev/lmcp0 -qM
IBM016 C39160

$ tapeutil -f /dev/rmt1 inquiry
Issuing inquiry...

Inquiry Data,  Length 56

0 1  2 3  4 5  6 7  8 9  A B  C D  E F   0123456789ABCDEF
 - 0180 0302 3300 1000 4942 4D20 2020 2020  [...3...IBM ]
0010 - 3033 3539 3045 3141 2020 2020 2020 2020  [03590E1A]
0020 - 4533 3731 3133 3030 3030 3030 3043   [E37113000C33]
0030 - 3938 2030 0500 0181  [98 0...]

$ lscfg -vl rmt1
  DEVICELOCATION  DESCRIPTION

  rmt1  14-08-01  IBM 3590 Tape Drive and Medium
  Changer (FCP)

ManufacturerIBM
Machine Type and Model..03590E1A
Serial Number...000C3398
Device Specific.(FW)E371
Loadable Microcode LevelA0B00E26

$ tapeutil -f /dev/rmt2 fuser
Device is currently open by process id 13474
$ ps -ef |grep dsms
root 13474 1   1 08:24:41  -  1:08 ./dsmserv

-Original Message-
From: Gill, Geoffrey L. [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 20, 2002 10:46 AM
To: [EMAIL PROTECTED]
Subject: mtlib command


Good day all,

Somewhere I had documented an mtlib command that could be used to query
information about the drives attached to the system. With the changeover of
TSM servers it's hard to figure out what drive is what. I have identified a
few by looking in the side door of the 3494 when a tape got mounted.
Unfortunately I'll never be able to do this with the rest and have misplaced
my mtlib commands.

Can anyone send me the command gives info about the drive itself, as in
serial number, so I can match rmt(whatever) to it. All I can find is mtlib
-l /dev/lmcp0 -qD -f/dev/rmt6, and this one doesn't do it for me. I've got a
bad drive and need to locate it this way.

Thanks,
Geoff Gill
TSM Administrator
NT Systems Support Engineer
SAIC
E-Mail:<mailto:[EMAIL PROTECTED]> [EMAIL PROTECTED]
Phone:  (858) 826-4062
Pager:   (877) 905-7154



Re: mtlib command

2002-05-20 Thread Mahesh Tailor

Try this command . . .

mtlib -l /dev/lmcp0 -DE

Mahesh

>>> [EMAIL PROTECTED] 05/20/02 10:45AM >>>
Good day all,

Somewhere I had documented an mtlib command that could be used to query
information about the drives attached to the system. With the changeover of
TSM servers it's hard to figure out what drive is what. I have identified a
few by looking in the side door of the 3494 when a tape got mounted.
Unfortunately I'll never be able to do this with the rest and have misplaced
my mtlib commands.

Can anyone send me the command gives info about the drive itself, as in
serial number, so I can match rmt(whatever) to it. All I can find is mtlib
-l /dev/lmcp0 -qD -f/dev/rmt6, and this one doesn't do it for me. I've got a
bad drive and need to locate it this way.

Thanks,
Geoff Gill
TSM Administrator
NT Systems Support Engineer
SAIC
E-Mail:<mailto:[EMAIL PROTECTED]> [EMAIL PROTECTED] 
Phone:  (858) 826-4062
Pager:   (877) 905-7154



Re: mtlib command

2002-05-20 Thread Alfred G Welch

Geoff,
  The command I use to get the serial numbers for my drives:
lscfg -l rmt* -v



I

"Gill, Geoffrey L." <[EMAIL PROTECTED]>@VM.MARIST.EDU> on 05/20/2002
10:45:57 AM

Please respond to "ADSM: Dist Stor Manager" <[EMAIL PROTECTED]>

Sent by:"ADSM: Dist Stor Manager" <[EMAIL PROTECTED]>


To:[EMAIL PROTECTED]
cc:
Subject:mtlib command


Good day all,

Somewhere I had documented an mtlib command that could be used to query
information about the drives attached to the system. With the changeover of
TSM servers it's hard to figure out what drive is what. I have identified a
few by looking in the side door of the 3494 when a tape got mounted.
Unfortunately I'll never be able to do this with the rest and have
misplaced
my mtlib commands.

Can anyone send me the command gives info about the drive itself, as in
serial number, so I can match rmt(whatever) to it. All I can find is mtlib
-l /dev/lmcp0 -qD -f/dev/rmt6, and this one doesn't do it for me. I've got
a
bad drive and need to locate it this way.

Thanks,
Geoff Gill
TSM Administrator
NT Systems Support Engineer
SAIC
E-Mail:<mailto:[EMAIL PROTECTED]> [EMAIL PROTECTED]
Phone:  (858) 826-4062
Pager:   (877) 905-7154



Re: mtlib command

2002-05-20 Thread Lloyd Dieter

Geoff,

I'm not where I can check this, but try mtlib -l /dev/lmcp0 -qD -E -f
/dev/rmt6.

-Lloyd

On Mon, 20 May 2002 07:45:57 -0700
"Gill, Geoffrey L." <[EMAIL PROTECTED]> wrote:

> Good day all,
>
> Somewhere I had documented an mtlib command that could be used to query
> information about the drives attached to the system. With the changeover
of
> TSM servers it's hard to figure out what drive is what. I have
identified a
> few by looking in the side door of the 3494 when a tape got mounted.
> Unfortunately I'll never be able to do this with the rest and have
misplaced
> my mtlib commands.
>
> Can anyone send me the command gives info about the drive itself, as in
> serial number, so I can match rmt(whatever) to it. All I can find is
mtlib
> -l /dev/lmcp0 -qD -f/dev/rmt6, and this one doesn't do it for me. I've
got a
> bad drive and need to locate it this way.
>
> Thanks,
> Geoff Gill
> TSM Administrator
> NT Systems Support Engineer
> SAIC
> E-Mail:<mailto:[EMAIL PROTECTED]> [EMAIL PROTECTED]
> Phone:  (858) 826-4062
> Pager:   (877) 905-7154
>


--
-
Lloyd Dieter-   Senior Technology Consultant
   Synergy, Inc.   http://www.synergyinc.cc   [EMAIL PROTECTED]
 Main:716-389-1260fax:716-389-1267
-



Re: mtlib command

2002-05-20 Thread Qualls, Ted W {PBSG}

try this little ksh script:

tape_drives=$(lsdev -Cc tape | grep rmt | awk '{ print $1 }')
for i in $tape_drives
do
printf $i":"
lscfg -vl $i | grep "Serial Number"
done



-Original Message-
From: Alfred G Welch [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 20, 2002 10:15 AM
To: [EMAIL PROTECTED]
Subject: Re: mtlib command


Geoff,
  The command I use to get the serial numbers for my drives:
lscfg -l rmt* -v



I

"Gill, Geoffrey L." <[EMAIL PROTECTED]>@VM.MARIST.EDU> on 05/20/2002
10:45:57 AM

Please respond to "ADSM: Dist Stor Manager" <[EMAIL PROTECTED]>

Sent by:"ADSM: Dist Stor Manager" <[EMAIL PROTECTED]>


To:[EMAIL PROTECTED]
cc:
Subject:mtlib command


Good day all,

Somewhere I had documented an mtlib command that could be used to query
information about the drives attached to the system. With the changeover of
TSM servers it's hard to figure out what drive is what. I have identified a
few by looking in the side door of the 3494 when a tape got mounted.
Unfortunately I'll never be able to do this with the rest and have
misplaced
my mtlib commands.

Can anyone send me the command gives info about the drive itself, as in
serial number, so I can match rmt(whatever) to it. All I can find is mtlib
-l /dev/lmcp0 -qD -f/dev/rmt6, and this one doesn't do it for me. I've got
a
bad drive and need to locate it this way.

Thanks,
Geoff Gill
TSM Administrator
NT Systems Support Engineer
SAIC
E-Mail:<mailto:[EMAIL PROTECTED]> [EMAIL PROTECTED]
Phone:  (858) 826-4062
Pager:   (877) 905-7154



Re: mtlib command

2002-05-21 Thread Shawn Bierman

For serial numbers I use:

#!/bin/sh
for i in `lsdev -Cc tape | grep rmt | awk '{print $1}'`
do
  serial=`lscfg -l $i -v | grep "Serial Number" | awk -F. '{print $16}'`
  echo "$i >  $serial"
done


Which looks like:

# > ./tape_serials
rmt0 >  00013329
rmt1 >  00013424
rmt2 >  00025601
rmt3 >  00028376
rmt4 >  000B4384
rmt5 >  000B4386
rmt6 >  000B1553
rmt7 >  000B1549
rmt8 >  00038950
rmt9 >  00038956

-shawn

>>> [EMAIL PROTECTED] 5/20/02 9:45:57 AM >>>
Good day all,

Somewhere I had documented an mtlib command that could be used to query
information about the drives attached to the system. With the changeover of
TSM servers it's hard to figure out what drive is what. I have identified a
few by looking in the side door of the 3494 when a tape got mounted.
Unfortunately I'll never be able to do this with the rest and have misplaced
my mtlib commands.

Can anyone send me the command gives info about the drive itself, as in
serial number, so I can match rmt(whatever) to it. All I can find is mtlib
-l /dev/lmcp0 -qD -f/dev/rmt6, and this one doesn't do it for me. I've got a
bad drive and need to locate it this way.

Thanks,
Geoff Gill
TSM Administrator
NT Systems Support Engineer
SAIC
E-Mail:<mailto:[EMAIL PROTECTED]> [EMAIL PROTECTED] 
Phone:  (858) 826-4062
Pager:   (877) 905-7154



question on MTLIB command...

2005-11-10 Thread Patterson, Scott
Hi all,

I was under the impression I could use the following MTLIB command to
see what volume is mounted in a drive

mtlib -l /dev/lmcp0 -f /dev/rmt# -qD   

but when i try to use the command on a drive that i know has a volume
mounted, i get the following error message...

# mtlib -l /dev/lmcp0 -f /dev/rmt7 -qD   
mtlib: Unable to open device special file /dev/rmt7 (errno = 11):
Resource temporarily unavailable

what is the point of querying the drive if you can't query the drive
when it has a volume in it?

thanks,

scott


Re: question on MTLIB command...

2005-11-10 Thread LeBlanc, Patricia
Try this..

Mtlib -qM -l/dev/lmcp0 

-Original Message-
From: ADSM: Dist Stor Manager [mailto:[EMAIL PROTECTED] On Behalf Of
Patterson, Scott
Sent: Thursday, November 10, 2005 2:38 PM
To: ADSM-L@VM.MARIST.EDU
Subject: question on MTLIB command...

Hi all,

I was under the impression I could use the following MTLIB command to
see what volume is mounted in a drive

mtlib -l /dev/lmcp0 -f /dev/rmt# -qD   

but when i try to use the command on a drive that i know has a volume
mounted, i get the following error message...

# mtlib -l /dev/lmcp0 -f /dev/rmt7 -qD   
mtlib: Unable to open device special file /dev/rmt7 (errno = 11):
Resource temporarily unavailable

what is the point of querying the drive if you can't query the drive
when it has a volume in it?

thanks,

scott


Re: question on MTLIB command...

2005-11-10 Thread Richard Sims

Standard Unix permissions thing: Check the account under which you tried
the command against the /dev/rmt* permissions settings; adjust settings
if appropriate, else invoke from an account with has the needed group
affiliation, or as superuser.

   Richard Sims

On Nov 10, 2005, at 2:38 PM, Patterson, Scott wrote:


Hi all,

I was under the impression I could use the following MTLIB command to
see what volume is mounted in a drive

mtlib -l /dev/lmcp0 -f /dev/rmt# -qD

but when i try to use the command on a drive that i know has a volume
mounted, i get the following error message...

# mtlib -l /dev/lmcp0 -f /dev/rmt7 -qD
mtlib: Unable to open device special file /dev/rmt7 (errno = 11):
Resource temporarily unavailable

what is the point of querying the drive if you can't query the drive
when it has a volume in it?

thanks,

scott


Re: Re: question on MTLIB command...

2005-11-10 Thread David Bronder
Actually, the "Resource temporarily unavailable" error is because TSM
is actively using the drive at the time.  If you look at current tape
mounts within TSM, you'd see that drive has a volume mounted and "IN
USE".  When it shows "IDLE" in TSM, the "mtlib -qD" command works as
expected.

(The "#" prompt in the original post implies he was already root, too,
so permissions wouldn't be a factor anyway.)

As Patricia posted, "mtlib -l /dev/lmcp0 -qM" will show mounted vols,
but you'll need to cross-reference the drive serial numbers (second
column in the output) with some other source (on AIX, "lscfg" will do)
to map them to /dev/rmt# filenames.

=Dave

Richard Sims wrote:
>
> Standard Unix permissions thing: Check the account under which you tried
> the command against the /dev/rmt* permissions settings; adjust settings
> if appropriate, else invoke from an account with has the needed group
> affiliation, or as superuser.
>
> Richard Sims
>
> On Nov 10, 2005, at 2:38 PM, Patterson, Scott wrote:
>
> > Hi all,
> >
> > I was under the impression I could use the following MTLIB command to
> > see what volume is mounted in a drive
> >
> > mtlib -l /dev/lmcp0 -f /dev/rmt# -qD
> >
> > but when i try to use the command on a drive that i know has a volume
> > mounted, i get the following error message...
> >
> > # mtlib -l /dev/lmcp0 -f /dev/rmt7 -qD
> > mtlib: Unable to open device special file /dev/rmt7 (errno = 11):
> > Resource temporarily unavailable
> >
> > what is the point of querying the drive if you can't query the drive
> > when it has a volume in it?
> >
> > thanks,
> >
> > scott
>


--
Hello World.David Bronder - Systems Admin
Segmentation Fault ITS-SPA, Univ. of Iowa
Core dumped, disk trashed, quota filled, soda warm.   [EMAIL PROTECTED]


Average Mounts with mtlib command or select statement?

2002-05-24 Thread Alfred G Welch

TSMers,
  I have a 3494 library and need to compile information on
number of mounts the library has done.  It doesn't have to be any certain
drives or volumes.  A total would work or if it could be broken down to
specifics.  Is there a mtlib command or select statement that anyone knows
of that I could use?  Any help would be thankful



Re: Average Mounts with mtlib command or select statement?

2002-05-24 Thread Bob Booth - UIUC

mtlib -l libname -q S

should give you the stats that you want for the total library.

bob

On Fri, May 24, 2002 at 12:03:10PM -0400, Alfred G Welch wrote:
> TSMers,
>   I have a 3494 library and need to compile information on
> number of mounts the library has done.  It doesn't have to be any certain
> drives or volumes.  A total would work or if it could be broken down to
> specifics.  Is there a mtlib command or select statement that anyone knows
> of that I could use?  Any help would be thankful



Re: Average Mounts with mtlib command or select statement?

2002-05-24 Thread Prather, Wanda

Here's a sample SELECT statement that will show you the type of data you can
get from the SUMMARY table.
You can modify it to include END times as well as start times, or limit it
to the past 24 hours, etc.

If you want to do any detailed analysis, I would run it in -commadelimited
mode and save the data into a file, then do the stats with a spreadsheet.


select date(start_time) as date, time(start_time) as time,
char(library_name,12) as "Lib", char(drive_name,20) as "Drive",
char(volume_name,8) as "Vol", char(successful,5) as "OK" from summary where
activity='TAPE MOUNT'



-Original Message-
From: Alfred G Welch [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 24, 2002 12:03 PM
To: [EMAIL PROTECTED]
Subject: Average Mounts with mtlib command or select statement?


TSMers,
  I have a 3494 library and need to compile information on
number of mounts the library has done.  It doesn't have to be any certain
drives or volumes.  A total would work or if it could be broken down to
specifics.  Is there a mtlib command or select statement that anyone knows
of that I could use?  Any help would be thankful