[Veritas-bu] A Better Way?
2007-04-30 14:44:55
Subject: |
[Veritas-bu] A Better Way? |
From: |
cpreston at glasshouse.com (Curtis Preston) |
Date: |
Mon, 30 Apr 2007 14:44:55 -0400 |
If vbscript is so limited it can't handle the output you displayed, this
is only the first of many roadblocks you will encounter. If you're
going to script on a Windows box you've got to install and learn perl.
W. Curtis "all master and media servers should be on Unix or Linux"
Preston
________________________________
From: veritas-bu-bounces at mailman.eng.auburn.edu
[mailto:veritas-bu-bounces at mailman.eng.auburn.edu] On Behalf Of Brooks,
Jason
Sent: Monday, April 30, 2007 11:26 AM
To: veritas-bu at mailman.eng.auburn.edu
Subject: [Veritas-bu] A Better Way?
I've been working on rewriting some scripts that I received from a list
member. Originally, they were written for Unix, and I'm running
Windows. What I'm up against is this: I need to check the drives to see
if they are holding the tapes I want to export. Here's what was used:
vmoprcmd -d ds -h master_server
However, the output is less than useable on a Windows box without
installing extra stuff. Here's the sample:
DRIVE STATUS
Drv Type Control User Label RecMID ExtMID Ready Wr.Enbl.
ReqId
0 hcart3 TLD Yes LT0007 LT0007 Yes Yes
0
2 hcart3 TLD Yes LT0007 LT0007 Yes Yes
0
1 hcart3 TLD Yes 000108 000108 Yes Yes
0
1 hcart3 TLD Yes 000108 000108 Yes Yes
0
Is there an easier way to grab this information? And by easier, I mean
something that VBScript could use? Without awk here, I'm dead. And
before you mention it, I know there's a windows port of awk. I'm trying
to do this as self contained as possible.
Thanks,
Jason
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://mailman.eng.auburn.edu/pipermail/veritas-bu/attachments/20070430/da19953b/attachment.htm
|
|
|