IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

How to find the address and status of all tape drives


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Fri May 18, 2007 8:50 am
Reply with quote

I need to create alerts to the operations staff if any tape drives are offline.

How would I:

1. Determine the addresses of all tape drives on each LPAR?

2. Determine if they're online or offline. If a drive is offline, how can I suppress the alert if it's offline for maintenance?
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Fri May 18, 2007 12:12 pm
Reply with quote

Would the HCD hold the device addresses.

But, if it is a shared HCD then the device addresse will be the same for all LPARs within the plex, so at some time some drives will be offline to one LPAR.

Do you, or can you, also share drives across sysplexes.

Do you use a tape drive allocation software, IBM ATAM or CA-MIM/MIA
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Fri May 18, 2007 1:08 pm
Reply with quote

expat wrote:
Do you, or can you, also share drives across sysplexes.

Yes.

expat wrote:

Do you use a tape drive allocation software, IBM ATAM or CA-MIM/MIA

Yes, BMC TAPESHARE.
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Thu Feb 04, 2010 5:38 pm
Reply with quote

We're still looking for a solution to this. At year-end one of the "critical path" jobs was stuck for more than 8 hours waiting for a tape drive. A follow-up check showed that there are currently over 300 drives offline.
Back to top
View user's profile Send private message
Pete Wilson

Active Member


Joined: 31 Dec 2009
Posts: 580
Location: London

PostPosted: Thu Feb 11, 2010 4:39 pm
Reply with quote

Are you using Virtual Tape or native attached tape, and are your tapes in an SMS managed library?

The command D SMS,LIB(ALL),DETAIL will indicate what number of drives are defined and what are available etc within the plex for an SMS managed library.

You might want to check the settings in your ALLOCnn member in SYS1.PARMLIB as well which can affect the way tape allocation waits are processed.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Thu Feb 11, 2010 9:43 pm
Reply with quote

Hello,

It has been a long time, but i seem to recall a console display command that was something like:
D U,*TAPE*,OFFLINE

*TAPE* - whatever UNIT is being displayed.

Possibly an operator/monitor could use this when an allocation issue arose. . .?
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Thu Feb 11, 2010 9:54 pm
Reply with quote

Hi Kevin!
You would anyway to have to complicate it a bit, You will need at least a few lpar dependent tables in order to avoid false alerts!
usually in every HCD more devices are defined than needed ( You never know )

the first thing that comes to mind is the MXI rexx interface...
run an MXI to find the tape drives offline/online
match the result with Your table to see the match/nomatch and signal accordingly

or search the cbt tape for the UCB scan routines.

I even remember seeing somewhere a REXX external function capable of doing it
as soon I recollect the name I will post it

got it! cbt file634 , seems to fit Your needs

edited to add some more,
but if You are into serious hacking then
www.mail-archive.com/ibm-main@bama.ua.edu/msg53317.html
might inspire You better icon_biggrin.gif
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Routing command Address SDSF to other... TSO/ISPF 2
No new posts Job completes in JES, but the status ... IBM Tools 1
No new posts To find whether record count are true... DFSORT/ICETOOL 6
No new posts Deleting a Tape file JCL & VSAM 14
No new posts Find the size of a PS file before rea... COBOL Programming 13
Search our Forums:

Back to Top