Chapter 8. Performing ESXCLI and in-guest Commands from PowerCLI

In this chapter, you will cover the following topics:

  • Retrieving the ESXCLI object in PowerCLI
  • Using the ESXCLI vm namespace to kill a misbehaving VM
  • Performing ESXi ping with an ESXCLI object
  • Configuring custom storage and path selection policies
  • Configuring coredump settings for an ESXi host from PowerCLI
  • Executing native commands inside the guest operating system from PowerCLI

Introduction

ESXCLI is the default command-line interface for configuring ESXi hosts. It was introduced with vSphere 5.0 in 2010 and unified command line configuration under a single command with a set of namespaces. ESXCLI can be run interactively on the console of a host (after enabling it in the Troubleshooting ...

Get PowerCLI Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.