This post is more than 5 years old

846

February 25th, 2008 08:00

Snapview scripting - removing a snapshot

I have a script that will remove the snapshots, but it prompt the user for confirmation of the removal. Since I want the process to be fully automated as part of our backup strategy having it prompt for confirmation causes the automated process to fail.

For the time being I have been just running the script and hitting Y when prompted. Is there a way to run the command without that user input?

9 Legend

 • 

20.4K Posts

February 25th, 2008 08:00

have you tried to add "-o"

February 25th, 2008 08:00

Wow I feel like an idiot now. Somehow I completely missed that in the reference guide...

Well, easy points for ya.

2.2K Posts

February 25th, 2008 12:00

Pretty much, but the command is two letters less so it is a more efficient command than the symm command :D

4 Operator

 • 

5.7K Posts

February 25th, 2008 12:00

I did it like this:

y|navicli -h ip# bla bla bla.....

Works like a charm. Never knew there was a "-o" option as well.
It sure sounds like "-nop' in Symcli.

9 Legend

 • 

20.4K Posts

February 25th, 2008 12:00

I did it like this:

y|navicli -h ip# bla bla bla.....


i don't think this will work on Windows ..has to be some kind of shell ?


Works like a charm. Never knew there was a "-o"
option as well.
It sure sounds like "-nop' in Symcli.


it's exactly what it is :)

4 Operator

 • 

2.1K Posts

February 25th, 2008 13:00

I did it like this:

y|navicli -h ip# bla bla bla.....


i don't think this will work on Windows ..has to be
some kind of shell ?

Yes, in Windows you can't do exactly the same thing. You can cheat it by creating a text file "yes.txt" with "y" as the contents and then running the command like this:

navicli -h ip# bla bla bla < yes.txt

But it's much easier to use the "-o" ;-)

4 Operator

 • 

5.7K Posts

February 26th, 2008 10:00

ok ok, it's something like that:
"echo y|navicli bla bla bla...."

If anyone is interested I will look it up, but the "-o" sure is easier.
No Events found!

Top