Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying PowerCLI Cookbook
  • Table Of Contents Toc
  • Feedback & Rating feedback
PowerCLI Cookbook

PowerCLI Cookbook

By : Philip Brandon Sellers
4.8 (4)
close
close
PowerCLI Cookbook

PowerCLI Cookbook

4.8 (4)
By: Philip Brandon Sellers

Overview of this book

If you are a virtualization professional who wants to unleash the power of automation and combat the complexity of sprawling virtual environments, this book is ideal for you. This book will enhance your skills of administering VMware vSphere and vCloud Director with PowerCLI.
Table of Contents (13 chapters)
close
close
12
Index

Using the ESXCLI vm namespace to kill a misbehaving VM


After exploring the namespaces of ESXCLI, you can see that these are represented as elements in an ESXCLI object when used in PowerCLI. One of these namespaces or elements is the vm namespace. Within the vm namespace, you have commands that can list all of the running virtual machines on a host along with their process number. With this information, there is also a method in the vm namespace that allows you to kill a VM. If you are running PowerCLI to manage ESXi hosts, using the ESXCLI object is a quick way to access the virtual machine's kill command without enabling troubleshooting modes: the ESXi shell or SSH on an ESXi host. In this recipe, you will examine how to perform this operation.

Getting ready

To begin this recipe, you will need a PowerCLI window and an active connection to a vCenter Server.

Note

Caution! Do not execute this recipe on a VM unless you are sure you want to power it off. Running this on the wrong VM can cause...

Unlock full access

Continue reading for free

A Packt free trial gives you instant online access to our library of over 7000 practical eBooks and videos, constantly updated with the latest in tech
bookmark search playlist font-size

Change the font size

margin-width

Change margin width

day-mode

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Delete Bookmark

Modal Close icon
Are you sure you want to delete it?
Cancel
Yes, Delete

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY