Veritas-bu

Re: [Veritas-bu] Windows Scratch Script

2009-07-17 13:44:36
Subject: Re: [Veritas-bu] Windows Scratch Script
From: "Preston, Douglas" <dlpreston AT lereta DOT com>
To: "veritas-bu AT mailman.eng.auburn DOT edu" <veritas-bu AT mailman.eng.auburn DOT edu>
Date: Fri, 17 Jul 2009 10:41:27 -0700

I like it,  I can now not get surprised by our of media errors.

 

From: veritas-bu-bounces AT mailman.eng.auburn DOT edu [mailto:veritas-bu-bounces AT mailman.eng.auburn DOT edu] On Behalf Of Michael Graff Andersen
Sent: Friday, July 17, 2009 1:59 AM
To: Rusty.Major AT sungard DOT com
Cc: veritas-bu AT mailman.eng.auburn DOT edu
Subject: Re: [Veritas-bu] Windows Scratch Script

 

Hi Rusty

 

I have just made this small bat script for check of number LTO3 (L3) scratch tapes  in the robot (TLD)

--------------------------------------------------------------------------------------------------------------------------------------------------------

@echo off
"C:\Program Files\Veritas\Volmgr\bin\vmquery.exe" -pn Scratch -b | find "L3" | find /c "TLD" > e:\temp\number.txt

for /f %%i in (e:\temp\number.txt) do set NUMBER=%%i

IF %NUMBER% LEQ 10 (
echo "There is only %NUMBER% scratch tapes" > e:\temp\scratch_mail.txt
blat e:\temp\scratch_mail.txt -s "There is only %NUMBER% scratch tapes" -i "NetBackup at backupserver" -t servicedesk at company.domain -q
)

--------------------------------------------------------------------------------------------------------------------------------------------------------


Regards

Michael

2009/6/2 <Rusty.Major AT sungard DOT com>


Hi all,

I was wondering if any of you with Windows Masters could share your scratch notification batch script, if you have one. I happen to be in need of this and my Windows scripting skills have gone unused for a few years.

Thanks!!

Rusty Major, MCSE, BCFP, VCS ▪ Sr. Storage Engineer ▪ SunGard Availability Services ▪ 757 N. Eldridge Suite 200, Houston TX 77079 ▪ 281-584-4693
Keeping People and Information Connected® ▪ http://availability.sungard.com/
P Think before you print
CONFIDENTIALITY:  This e-mail (including any attachments) may contain confidential, proprietary and privileged information, and unauthorized disclosure or use is prohibited.  If you received this e-mail in error, please notify the sender and delete this e-mail from your system.
_______________________________________________
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
<Prev in Thread] Current Thread [Next in Thread>