Tape check in

daveisme

ADSM.ORG Member
Joined
Dec 15, 2006
Messages
66
Reaction score
0
Points
0
Is there any TSM query command to show what tapes have been checked in to the tape library in a 24 hour peroid?
 
Hi,

just my 2 cents ...

q act begint=-24 endt=now msg=8430

Harry

Hi Harry and mike...i tried both of ur commands...but i could not see the tape M20049 i checked into library today...why...any idea???

tsm: MUM-SVR-EBS>q actlog begindate=-1 search=M20049
Date/Time Message
-------------------- ----------------------------------------------------------
12/20/10 18:39:08 ANR2017I Administrator ADMIN issued command: CHECKIN
libvol MUMEBS M20049 status=SCRATCH checklabel=barcode
WAITTIME=60 (SESSION: 9829)
12/20/10 18:39:08 ANR8323I 008: Insert ANY volume M20049 R/W into entry/exit
port of library MUMEBS within 60 minute(s); issue 'REPLY'
along with the request ID when ready. (SESSION: 9829,
PROCESS: 566)
12/20/10 18:39:36 ANR8323I 008: Insert ANY volume M20049 R/W into entry/exit
port of library MUMEBS within 60 minute(s); issue 'REPLY'
along with the request ID when ready. (SESSION: 9829)
12/20/10 18:40:19 ANR8427I CHECKIN LIBVOLUME for volume M20049 in library
MUMEBS completed successfully. (SESSION: 9829, PROCESS:
566)

12/20/10 18:44:55 ANR8337I LTO volume M20049 mounted in drive MUMDRIVE01
(/dev/rmt1). (SESSION: 9829, PROCESS: 567)
12/20/10 18:44:55 ANR0513I Process 567 opened output volume M20049.
(SESSION: 9829, PROCESS: 567)
12/20/10 18:44:59 ANR1360I Output volume M20049 opened (sequence number 1).
(SESSION: 9829, PROCESS: 567)
12/20/10 18:49:14 ANR1361I Output volume M20049 closed. (SESSION: 9829,
PROCESS: 567)
12/20/10 18:49:14 ANR0515I Process 567 closed volume M20049. (SESSION: 9829,
PROCESS: 567)
12/20/10 18:49:21 ANR8336I Verifying label of LTO volume M20049 in drive
MUMDRIVE01 (/dev/rmt1). (SESSION: 9829, PROCESS: 567)
12/20/10 18:50:24 ANR8468I LTO volume M20049 dismounted from drive
MUMDRIVE01 (/dev/rmt1) in library MUMEBS. (SESSION: 9829,
PROCESS: 567)
12/20/10 20:27:29 ANR2017I Administrator ADMIN issued command: QUERY ACTLOG
begindate=-1 sdearch=M20049 (SESSION: 9849)
12/20/10 20:27:33 ANR2017I Administrator ADMIN issued command: QUERY ACTLOG
begindate=-1 search=M20049 (SESSION: 9849)
tsm: MUM-SVR-EBS>select date_time,message from actlog where msgno=8430 and date_time>current_timestamp - 1 days
ANR2034E SELECT: No match found using this criteria.
ANS8001I Return code 11.

tsm: MUM-SVR-EBS>q act begint=-24 endt=now msg=8430
ANR2034E QUERY ACTLOG: No match found using this criteria.
ANS8001I Return code 11.

tsm: MUM-SVR-EBS>


any other command???? what is this msg=8430????can we use something else???
 
Hi,

8430 is a message number (the message in the activity log ANR8430I)
I can see you did not issue a REPLY command

12/20/10 18:39:08 ANR8323I 008: Insert ANY volume M20049 R/W into entry/exit
port of library MUMEBS within 60 minute(s); issue 'REPLY'
along with the request ID when ready. (SESSION: 9829,
PROCESS: 566)

In your case you should use "query request" to find out the number ( 008 ) and then "reply 8"

Then the tape should be checked in and msg 8430 should be written to the activity log

Harry
 
Hi,

8430 is a message number (the message in the activity log ANR8430I)
I can see you did not issue a REPLY command

12/20/10 18:39:08 ANR8323I 008: Insert ANY volume M20049 R/W into entry/exit
port of library MUMEBS within 60 minute(s); issue 'REPLY'
along with the request ID when ready. (SESSION: 9829,
PROCESS: 566)

In your case you should use "query request" to find out the number ( 008 ) and then "reply 8"

Then the tape should be checked in and msg 8430 should be written to the activity log

Harry


HI Harry,

I replied to request...thats why checkin was succesful. But even after succesful chekin there is no 8430 message in my acitvity log. i searched entire activity log but could not find any 8430...ru sure that 8430 will always appear after checkin???

12/20/10 18:39:36 ANR8323I 008: Insert ANY volume M20049 R/W into entry/exit
port of library MUMEBS within 60 minute(s); issue 'REPLY'
along with the request ID when ready. (SESSION: 9829)
12/20/10 18:40:02 ANR2017I Administrator ADMIN issued command: REPLY 008
(SESSION: 9829)

12/20/10 18:40:02 ANR8499I Command accepted. (SESSION: 9829)
12/20/10 18:40:04 ANR0407I Session 9830 started for administrator
ADMIN_CENTER (DSMAPI) (Tcp/Ip
bgl-svr-ebs-04.bsnl.net.in(43541)). (SESSION: 9830)


Thanks,
Helmsdeep
 
Hi,

tested it and you are right .. message ANR8430I is NOT issued when checking tape in using its name. It IS issued when checking the tape in using "search=yes" or "search=bulk"

So in your case (using "named" checkin) you should use
q act begint=-24 endt=now msg=8427

Harry
 
Back
Top