Giter Site home page Giter Site logo

powercyclevms's Introduction

PowerCycleVMs

PowerCli script to powercycle Virtual Machines to simplify CPU Vulnerability (Spectre/Meltdown/...) Remediation

How to use:

  1. Logon to your vCenter server(s): Connect-VIServer –Server wildonion, wildcherry
  2. Run the script with the correct command line parameters e.g. in this case:

.\PowercycleVMs.ps1 DEVbatch1.txt DEVbatch1.log

  1. The script will run and process all servers in file DEVbatch1.txt and log output to log-file DEVbatch1.log

Overview Image

  1. If for some reason a virtual machine can’t be cleanly shutdown e.g. because VMware tools is missing or it isn’t running the virtual machine’s name will be logged in following text file: NoVMwareToolsRunning.txt. After running the power cycle script one needs to check this file (if it exists) and power cycle these virtual machine manually. Afterwards delete the NoVMwareToolsRunning.txt because otherwise virtual machine names will be appended to it.

Since VMware ESXi 6.7 Update 3 released on 20-aug-2019 VMWare added an option vmx.reboot.PowerCycle to simplify CPU Vulnerability Remediations via vCenter itself https://blogs.vmware.com/vsphere/2019/10/vmx-reboot-powercycle-makes-cpu-vulnerability-remediation-easy.html

Requirements:

  • vCenter environment
  • PowerCli

powercyclevms's People

Contributors

nagten avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.