[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference cookie::sls

Title:Storage Library System
Moderator:COOKIE::REUTER
Created:Sun Oct 13 1991
Last Modified:Fri Jun 06 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:2270
Total number of notes:7850

1976.0. "TL810 , MDMS steps to clean TZ87 needed ?" by PRSSOS::FONDI () Fri May 10 1996 14:14

T.RTitleUserPersonal
Name
DateLines
1976.1CRONIC::LEMONSAnd we thank you for your support.Fri May 10 1996 14:457
1976.2CRONIC::LEMONSAnd we thank you for your support.Wed May 15 1996 16:3710
1976.3red in MDMS V2.7 release notesPRSSOS::FONDIFri May 17 1996 13:3618
1976.4Hmm..NETRIX::"Terry.Lemons@hlo.mts.dec.com"Terry LemonsFri May 17 1996 14:3110
1976.5NETRIX::"Terry.Lemons@hlo.mts.dec.com"Terry LemonsFri May 17 1996 15:3712
1976.6MDMS doesn't provide auto-clean supportCOOKIE::MCCLELLANDMarty, SLS/MDMS EngineeringTue Jun 04 1996 16:0142
1976.7CRONIC::LEMONSAnd we thank you for your support.Thu Sep 05 1996 14:287
1976.8COOKIE::MCCLELLANDMarty, SLS/MDMS EngineeringFri Sep 06 1996 15:5929
1976.9CRONIC::LEMONSAnd we thank you for your support.Mon Sep 09 1996 18:3223
1976.10COOKIE::MCCLELLANDMarty, SLS/MDMS EngineeringWed Sep 11 1996 11:315
1976.11CRONIC::LEMONSAnd we thank you for your support.Wed Sep 11 1996 14:544
1976.12COOKIE::MCCLELLANDMarty, SLS/MDMS EngineeringThu Sep 12 1996 12:178
1976.13Here's a command procedure to clean the driveGALINA::SSMITHSheldon Smith@MPO, dtn 442-2254Wed May 07 1997 19:007
    I wrote a short command procedure at a recent customer site which
    allows the system manager / operator to manually initiate a cleaning
    for a specified drive slot. It uses the SLS Tape Library to keep track
    of the usage of the cleaning tape, and uses the optional ROBOT commands
    to control the drive.
    
    I will (attempt) to post it as a reply....
1976.14Clean_Jukebox_Robot_Drive.comGALINA::SSMITHSheldon Smith@MPO, dtn 442-2254Wed May 07 1997 19:0170
    $! SLS$system:Clean_Jukebox_Robot_Drive.com X1.11	'f$verify(0)
    $
    $! Format:
    $! @ SLS$system:Clean_Jukebox_Robot_Drive {p1}
    $!	p1 - robot drive to clean (0-5, bottom to top)
    $! Example:
    $! @ SLS$system:Clean_Jukebox_Robot_Drive 0
    $!	will clean the bottom tape drive.
    $
    $! NOTE: When adding a cleaning cart. to the jukebox, be sure to put it
    in a
    $! pool where it won't be subject to normal access, for example:
    CLEANINGTAPE.
    $
    $
    $ Host_Node := VVSLS1   !!! Edit to name of VMS system hosting jukebox
    $ Cleaning_Cart := CLN594   !!! Edit to label of Cleaning Cart. in
    jukebox
    $
    $
    $ if p1 .eqs. "" then -
      read sys$command: p1 /prompt="Which drive of the robot (0-5) to
    clean: "
    $ if (p1.lts."0") .or. (p1.gts."5") .or. (p1.lt.0) .or. (p1.gt.5)
    $ then
    $!	(R2D2 is the name we gave the robot in the silo.)
    $	write sys$output "%R2D2-F-BADDRIVE, invalid number of tape drive"
    $	write sys$output "-Valid numbers are 0 (bottom drive) to 5 (top)."
    $	exit
    $ endif
    $
    $ drives =
    "''Host_Node'$MKA100:''Host_Node'$MKA200:''Host_Node'$MKA300:" -
    	   "''Host_Node'$MKA400:''Host_Node'$MKA500:''Host_Node'$MKA600:"
    $
    $!Convert drive number to VMS device name and allocate the drive.
    $ DriveToClean = f$element( p1, ":", drives)
    $ storage select tape /drive= 'DriveToClean'
    $
    $!Find out where the cleaning tape is stored.
    $ storage show volume 'Cleaning_Cart' /symbols
    $
    $!Cycle the tape through the designated tape drive and release the
    drive for
    $!general use.
    $ robot load slot 'SLS$INQ_JUKE_SLOT' drive 'p1'
    $ wait 0:2:30 ! Typical time to load and clean drive.
    $ robot unload slot 'SLS$INQ_JUKE_SLOT' drive 'p1'
    $ deallocate 'DriveToClean'
    $
    $!Since SLS never tries to "mount" the tape, we need to bump the
    counter
    $!ourselves.
    $ storage set volume 'Cleaning_Cart' -
    	/mount_count= 'f$integer( SLS$INQ_MOUNTS+1)
    $!Cleaning tapes should only be used 20 times.
    $ if SLS$INQ_MOUNTS .ge. 20
    $ then
    $	write sys$output "%R2D2-F-EXPIREDCART, Cleaning cartridge has been
    used"
    $	write sys$output "-the mex. number of uses (20). Load a fresh tape.
    $	storage export cartridge 'Cleaning_Cart'
    $	storage remove volume 'Cleaning_Cart'
    $ endif
    $ exit
    
    Originally written by:
    Sheldon Smith, Digital Equipment Corp, 1997
    
    Provided "AS IS". No support is provided.