Veritas-bu

[Veritas-bu] UP-script for windows 2000 (for Downed drives)

2002-06-26 20:01:52
Subject: [Veritas-bu] UP-script for windows 2000 (for Downed drives)
From: begrn AT wmdata DOT no (Grønås Bengt)
Date: Thu, 27 Jun 2002 02:01:52 +0200
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

--------------InterScan_NT_MIME_Boundary
Content-Type: multipart/alternative;
        boundary="----_=_NextPart_001_01C21D6D.D7840730"

------_=_NextPart_001_01C21D6D.D7840730
Content-Type: text/plain;
        charset="iso-8859-1"

Here is a (un)useful CMD script to automatically "up" down'ed drives.
Sometimes it can be handy to put this in a schedule on a 2000 server. The
script is "AS IS":
 
----------------------cut-------------------------
 
@echo off
::
:: script for windows 2000
:: up downed netbackup 3.4.1 drives!
::
set VMOPR=C:\Program Files\VERITAS\volmgr\bin\vmoprcmd
"%VMOPR%" -d ds | find /i "DOWN" >NUL 2>&1
if not errorlevel 1 for /f "" %%f in ('"%VMOPR%" -d ds^|find /i ^"DOWN^"')
do "%VMOPR%" -up %%f

----------------------cut-------------------------
 
 
 
enjoy!
regards,
Bengt
 

------_=_NextPart_001_01C21D6D.D7840730
Content-Type: text/html;
        charset="iso-8859-1"

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">


<META content="MSHTML 5.00.2314.1000" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Verdana size=2><SPAN class=703504301-27062002>Here is a 
(un)useful CMD script to automatically "up" down'ed drives. Sometimes it can be 
handy to put this in a schedule on a 2000 server. The script is "AS 
IS":</SPAN></FONT></DIV>
<DIV><FONT face=Verdana size=2><SPAN 
class=703504301-27062002></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Verdana size=2><FONT face=Verdana size=2><SPAN 
class=703504301-27062002>----------------------cut-------------------------</SPAN></FONT></FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Courier size=2>@echo off<BR>::<BR>:: <STRONG>script for windows 
2000</STRONG><BR>:: <STRONG>up downed&nbsp;<SPAN 
class=703504301-27062002>netbackup 3.4.1 </SPAN>drives<SPAN 
class=703504301-27062002>!</SPAN><BR></STRONG>::</FONT></DIV>
<DIV><FONT face=Courier size=2>set VMOPR=C:\Program 
Files\VERITAS\volmgr\bin\vmoprcmd<BR>"%VMOPR%" -d ds | find /i "DOWN" &gt;NUL 
2&gt;&amp;1<BR>if not errorlevel 1 for /f "" %%f in ('"%VMOPR%" -d ds^|find /i 
^"DOWN^"') do "%VMOPR%" -up %%f<BR><FONT face=Verdana size=2><SPAN 
class=703504301-27062002></SPAN></FONT></FONT></DIV>
<DIV><FONT face=Courier size=2><FONT face=Verdana size=2><SPAN 
class=703504301-27062002>----------------------cut-------------------------</SPAN></FONT></FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Verdana size=2><SPAN 
class=703504301-27062002>enjoy!</SPAN></FONT></DIV>
<DIV><FONT face=Verdana size=2><SPAN 
class=703504301-27062002>regards,</SPAN></FONT></DIV>
<DIV><FONT face=Verdana size=2><SPAN 
class=703504301-27062002>Bengt</SPAN></FONT></DIV>
<DIV><FONT face=Verdana size=2><SPAN 
class=703504301-27062002></SPAN></FONT>&nbsp;</DIV></BODY></HTML>

------_=_NextPart_001_01C21D6D.D7840730--

--------------InterScan_NT_MIME_Boundary--


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