Re: [Veritas-bu] Automating NBU ejects w/vmchange - Solaris

2009-12-18 Thread Stier, Matthew
-sec 1

Set interactive timeout to '1' second.

This is not documented in the vmchange manpage, but you can find
information on Google by searching "vmchange sec 1".


-Original Message-
From: veritas-bu-boun...@mailman.eng.auburn.edu
[mailto:veritas-bu-boun...@mailman.eng.auburn.edu] On Behalf Of fullejn
Sent: Friday, December 18, 2009 2:01 PM
To: VERITAS-BU@MAILMAN.ENG.AUBURN.EDU
Subject: [Veritas-bu] Automating NBU ejects w/vmchange - Solaris


I am currently using this one-liner to eject all tapes from a list. It
works in that I can build a tape list and save me the headache of
entering tape # by tape #, but I still have the aggravation of having to
interact with the command as it prompts me to confirm every eject with a
keystroke.

Does anyone know a way to bypass this so I don't have to sit in front of
the terminal hitting the enter key all day?

for line in $(cat ./1); do vmchange -res -multi_eject -w -verbose -rn 1
-rt tld -rh backup1 -vh backup1 -ml $line; done

+--
|This was sent by joshua.n.ful...@lmco.com via Backup Central.
|Forward SPAM to ab...@backupcentral.com.
+--


___
Veritas-bu maillist  -  Veritas-bu@mailman.eng.auburn.edu
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu
___
Veritas-bu maillist  -  Veritas-bu@mailman.eng.auburn.edu
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu


Re: [Veritas-bu] Automating NBU ejects w/vmchange - Solaris

2009-12-18 Thread A Darren Dunham
On Fri, Dec 18, 2009 at 02:01:02PM -0500, fullejn wrote:
> 
> I am currently using this one-liner to eject all tapes from a list. It works 
> in that I can build a tape list and save me the headache of entering tape # 
> by tape #, but I still have the aggravation of having to interact with the 
> command as it prompts me to confirm every eject with a keystroke.
> 
> Does anyone know a way to bypass this so I don't have to sit in front of the 
> terminal hitting the enter key all day?
> 
> for line in $(cat ./1); do vmchange -res -multi_eject -w -verbose -rn 1 -rt 
> tld -rh backup1 -vh backup1 -ml $line; done

What version?  For 6 and up, you can add -single_cycle and it spits out
some extra information, but doesn't require interaction.

Use that term in a search and you can see a few old threads about it.
-- 
Darren
___
Veritas-bu maillist  -  Veritas-bu@mailman.eng.auburn.edu
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu


[Veritas-bu] Automating NBU ejects w/vmchange - Solaris

2009-12-18 Thread fullejn

I am currently using this one-liner to eject all tapes from a list. It works in 
that I can build a tape list and save me the headache of entering tape # by 
tape #, but I still have the aggravation of having to interact with the command 
as it prompts me to confirm every eject with a keystroke.

Does anyone know a way to bypass this so I don't have to sit in front of the 
terminal hitting the enter key all day?

for line in $(cat ./1); do vmchange -res -multi_eject -w -verbose -rn 1 -rt tld 
-rh backup1 -vh backup1 -ml $line; done

+--
|This was sent by joshua.n.ful...@lmco.com via Backup Central.
|Forward SPAM to ab...@backupcentral.com.
+--


___
Veritas-bu maillist  -  Veritas-bu@mailman.eng.auburn.edu
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu