Veritas-bu

[Veritas-bu] Re: Bad Media

2000-06-22 07:57:34
Subject: [Veritas-bu] Re: Bad Media
From: David A. Chapa david AT datastaff DOT com
Date: Thu, 22 Jun 2000 06:57:34 -0500 (CDT)
Unfortunately no, I have been exclusively consulting on 
the Unix side until now.  My new client is all NT, so I 
have to re-write all of my scripts in Perl for NT.  
Alternatively, you can purchase MKS Toolkit for 
Administrators (www.mks.com), which has a Korn Shell, C-
Shell, Bourne Shell interpreter, plus a host of other 
goodies for NT.  I downloaded the trial version and 
with a few PATH modifications, all of my UNIX scripts 
work just fine on NT.  I was breathing a sigh of relief 
as I was able to navigate around NT from the command 
line without thinking about it...

Shouldn't take too long to re-do this one in Perl 
though...

-David Chapa


Quoting "Lawrence, Bob" <bob.lawrence AT primark DOT com>:

> 
> Does anyone have an NT version of that script?
> If not, I guess I'll use PERL as NT's scripting is so 
poor.
> 
> cheers
> Bob
> 
> 
> -----Original Message-----
> From: David A. Chapa [mailto:david AT datastaff DOT com]
> Sent: 21 June 2000 15:25
> To: Shane Garvey
> Cc: veritas-bu AT mailman.eng.auburn DOT edu
> Subject: [Veritas-bu] Re: Bad Media
> 
> 
> Place this in cron have it run every 15 - 30 minutes 
> (depending on how busy your environment is)
> 
> BEGIN SCRIPT DRIVEWATCH
> !/bin/sh
> # Add interested parties below:
> someone_who_cares=YOURADDR@HERE
> /usr/openv/volmgr/bin/vmoprcmd -d ds | 
>    grep DOWN >/dev/null 2>&1
> if [ $? -ne 1 ];then
>         echo "Please check DLT drives on MASTER:
> 
> `/usr/openv/volmgr/bin/vmoprcmd -d ds` 
> 
> Will attempt to place drive(s) in UP status" > 
> /tmp/drivecheck
> echo "" >> /tmp/drivecheck
> 
>         for i in `/usr/openv/volmgr/bin/vmoprcmd -d ds
>   | tail +5 | grep DOWN|awk '{print $1}'`
>         do
>           /usr/openv/volmgr/bin/vmoprcmd -up $i
>         done
> 
> echo "***Check all logs to determine cause.***" >>\
>   /tmp/drivecheck
> /usr/openv/volmgr/bin/vmoprcmd -d ds >> 
/tmp/drivecheck
> cat /tmp/drivecheck | /usr/ucb/mail -s "DLT Drives" \
>   $someone_who_cares
> fi
> 
> 
> This works for me ...
> 
> David Chapa
> DataStaff, Inc.
> 
> Quoting Shane Garvey <Shane.Garvey AT xilinx DOT com>:
> 
> > Hi Folks,
> >
> > >From time-to-time I get a bad DLT7000 cartridge 
> which causes the
> > client backup to fail and the drive is downed as a 
> result.
> > Is there anyway to get around this problem ?
> >
> > I have a Sun L3500 (rebadged ATL 7x00 series )tape 
> library.
> > I am running Netbackup 3.2 on solaris 2.6.
> >
> > Any suggestions would be greatly appreciated.
> >
> > thanks
> > shane.
> > _______________________________________________
> > Veritas-bu maillist  -  Veritas-
> bu AT mailman.eng.auburn DOT edu
> > 
> 
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-
> bu
> > 
> 
> 
> 
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> David A. Chapa                847 413 1144 p
> Consulting Practice Mgr.      847 413 1168 f
> DataStaff, Inc.               http://www.datastaff.com
> _______________________________________________
> Veritas-bu maillist  -  Veritas-
bu AT mailman.eng.auburn DOT edu
> 
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-
bu
> _______________________________________________
> Veritas-bu maillist  -  Veritas-
bu AT mailman.eng.auburn DOT edu
> 
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-
bu
> 



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
David A. Chapa                847 413 1144 p
Consulting Practice Mgr.      847 413 1168 f
DataStaff, Inc.               http://www.datastaff.com
nbu-lserv AT datastaff DOT com       
subscribe, mailto: majordomo AT datastaff DOT com
in the body add  : subscribe nbu-lserv



<Prev in Thread] Current Thread [Next in Thread>