I am building scripts to run against my filers.
After migrations I am looking to build a script that will destroy the volumes. I use the following to offline them and per processes then destroy them 24hrs later.
for i in 'cat /home/user/file.txt'; do ssh filer vol offline $i; done
Now I have this so far but when destroying the volume confirmation to destroy is asked for each volume. is there a setting to turn that off. the Filers are 7-mode.
for i in 'cat /home/user/file.txt'; do ssh filer vol destroy $i; done
You can use the "-f" flag to destroy a volume without prompting.
Hope you find it useful.
NetApp Wins One Silver and One Bronze Stevie® Award in 2022 Stevie Awards for Sales and Customer Service
Live Chat, Watch Parties, and More!
Engage digitally throughout the sales process, from product discovery to conﬁguration, and handle all your post-purchase needs.