I have some virtual security appliances that need to be shut down before they can be backed up.To shut them down you need to SSH to them, stop the application and then shutdown the appliance. An then restart them via vCenter. I'm looking for some ideas on a way to automate this process so i can schedule backups. Any help would be appreciated.
Thanks
-
- Novice
- Posts: 8
- Liked: never
- Joined: Jan 20, 2016 8:16 pm
- Contact:
-
- Product Manager
- Posts: 20282
- Liked: 2257 times
- Joined: Oct 26, 2012 3:28 pm
- Full Name: Vladimir Eremin
- Contact:
Re: scripting question
Is SSH connection really necessary? I'm wondering since from my perspective everything can be done via PowerCLI.
Thanks.
Code: Select all
Get-VM -name "Name of your VM" | Stop-VM
Code: Select all
Get-VM -name "Name of your VM" | Start-VM
-
- Novice
- Posts: 8
- Liked: never
- Joined: Jan 20, 2016 8:16 pm
- Contact:
Re: scripting question
Just stopping the VM can cause corruption. I need to shutdown the application before I shutdown the VM.
-
- Veeam Software
- Posts: 21070
- Liked: 2115 times
- Joined: Jul 11, 2011 10:22 am
- Full Name: Alexander Fogelson
- Contact:
Re: scripting question
Also, do you really need to stop the VM at all, if you can gracefully stop the application? Have you considered using pre-freeze/post-thaw scripts to achieve that?
-
- Novice
- Posts: 8
- Liked: never
- Joined: Jan 20, 2016 8:16 pm
- Contact:
Re: scripting question
Good point. Let me check and see. And I'll take a look at these scripts. Thanks for the help!
Who is online
Users browsing this forum: No registered users and 13 guests