Jump to content
ARoode

Update script VMware snapshot

Recommended Posts

Does anyone have an update script for making and removing snapshots in VMware?

I would like to use it together with Windows update scripts to search and install updates.

Share this post


Link to post
Share on other sites

Hi there,

You could install PowerCLI on the machine and then use it from Pulseway to create snapshots. All you need to do is create a snapshot before running updates:

https://pubs.vmware.com/vsphere-51/index.jsp?topic=%2Fcom.vmware.powercli.cmdletref.doc%2FNew-Snapshot.html

I would keep the snapshot until you find updates again and at that point you delete the old snapshot and create a new one.

Get-VM | Get-Snapshot | Remove Snapshot

Make sure you add a filter to the first Get-VM call and maybe add a filter on the Get-Snapshot too by name.

-Paul

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Similar Content

    • By Nuno Inácio
      Hi there,
      This is usability issue that leaves Pulseway's surveillance under high suspicion.
      We work exclusively in Windows servers.
      My colleague has installed last week a new Pulseway Agent over a server of a new client and he forgot to report this so that I could increase the number of licences resulting that since last week a Pulseway agent from another client's backup server stopped communicating and so we where not aware that backup needed troubleshooting. In fact the server disappeared from our servers
      As I understood the new Pulseway agent kicked out a random Agent already under surveillance and that means that a server that we had total confidence to be monitored was not.
      I'm new in the company and this software and when I've discussed this with my colleagues they've reported to be a known issue and that sometimes the Pulseway agent that stopped being monitored would varied meaning that one server randomly would stop being monitored and then the behaviour would jump to another agent.
      In the Billing/Overview section of your page it always had 72/72 and so no report of "overbooking".
      For this server's agent to show again in the panel I had to re-register it.
      IMO the new ones should stay offline and if this behaviour cannot be controlled, then the moment a client doesn't have licenses the agent shouldn't be able to register.
      We need to be sure that we can rely on the servers where Pulseway agent is installed and configured or we cannot trust the system altogether.
      Thank you for your attention.
    • By rootwilliamson
      Dear All,
      I am here to buy a new router. Do you have SSTP protocol support router because I need SSTP vpn to connect to my office network. Please reply me soon.
      Thank and Best Regards
      Williamson
    • By sarj2001
      Would love a way to silently install and run Dell command update utility to Dell endpoints to keep drivers up to date, as Dell are frequently rolling out driver updates.
      Has anyone been able to make this work for them? 
      I've looked into it and found some sample scripts on reddit to try and edit and test. the problem I have is getting dell command update to install first, then getting the configuration file out to the required computers that need it, then running the update silently. 
      If someone has managed to get this working, I would love to see how you did it, or kindly ask for some sample scripts to work with?
      Any assistance would be greatly appreciated.
       
    • By Martti Nuudi
      Hi,
      I have configured and applied default storage notification policy to all my Windows workstations that is set to send a notification when the system partition has less than 5% with priority elevated.
      But all the notifications I get about storage say: The free space on disk drive C: on computer computername in group groupname - Office - Workstations' is below 15% (ex. 16.24 GB free of 118.18 GB).
      How can I make the applied policy to respect the right percentage specified in the group policy?
      Do


×
×
  • Create New...