Book description
Automate your Vmware vSphere environment by learning how to install and use PowerCLI. This book takes a practical tutorial approach that will have you automating your daily routine tasks in no time.
In Detail
VMware vSphere PowerCLI is a powerful command-line tool to automate all aspects of a VMware vSphere environment. PowerCLI is built on top of the popular Windows PowerShell, with which you can automate server tasks and reduce manual input, allowing you to focus on more important tasks.
"Learning PowerCLI" is a practical, hands-on guide that provides you with a thorough knowledge of VMware vSphere PowerCLI. This knowledge will help you to automate your routine tasks so you can save valuable time.
"Learning PowerCLI" introduces you to VMware vSphere PowerCLI, from downloading and installing the software to creating good-looking reports of your VMware vSphere environment.
You will learn about working with host profiles, configuring virtual switches, removing snapshots, configuring Storage DRS, working with affinity rules, configuring an alarm, and managing roles and permissions. You will learn everything you need to know to get started with automating your VMware vSphere infrastructure. All the examples in Learning PowerCLI can be used directly in your environment.
What You Will Learn
- Download and install PowerCLI
- Add hosts to VMware vCenter Server
- Configure vSphere Auto Deploy
- Use the esxcli command from PowerCLI
- Create OS Customization Specs
- Monitor virtual machine performance
- Configure distributed virtual switches and storage I/O Control
- Enable VM and Application Monitoring
- Manage licenses for multiple hosts to migrate them easily
- Configure an alarm to monitor your networks virtual machines
- Generate a good-looking HTML report in no time
Table of contents
-
Learning PowerCLI
- Table of Contents
- Learning PowerCLI
- Credits
- About the Author
- About the Reviewers
- www.PacktPub.com
- Preface
- 1. Introduction to PowerCLI
- 2. Learning Basic PowerCLI Concepts
- 3. Working with Objects in PowerShell
-
4. Managing vSphere Hosts with PowerCLI
- Adding a host to a VMware vCenter Server
- Enabling and disabling maintenance mode
- Working with host profiles
- Working with host services
- Configuring the host firewall
- Configuring vSphere Image Builder and Auto Deploy
- Using esxcli from PowerCLI
- Using the vSphere CLI commands from PowerCLI
- Removing a host from the VMware vCenter Server
- Summary
-
5. Managing Virtual Machines with PowerCLI
- Creating a virtual machine
- Registering a virtual machine
- Using OS customization specifications
- Starting and stopping a virtual machine
- Modifying the settings of a virtual machine
- Converting a virtual machine into a template
- Moving a virtual machine to another folder, host, cluster, resource pool, or datastore
- Updating the VMware Tools
- Upgrading virtual machine compatibility
- Using snapshots
- Running commands on the guest OS
- Configuring Fault Tolerance
- Opening the console of a virtual machine
- Removing a virtual machine
- Summary
-
6. Managing Virtual Networks with PowerCLI
- Using vSphere Standard Switches
- Using host network adapters
- Using standard port groups
-
Using vSphere Distributed Switches
- Creating vSphere Distributed Switches
- Retrieving vSphere Distributed Switches
- Configuring vSphere Distributed Switches
- Adding hosts to vSphere Distributed Switches
- Adding host physical network adapters to a vSphere Distributed Switch
- Removing host physical network adapters from a vSphere Distributed Switch
- Removing hosts from a vSphere Distributed Switch
- Exporting the configuration of vSphere Distributed Switches
- Removing vSphere Distributed Switches
-
Using distributed virtual port groups
- Creating distributed virtual port groups
- Configuring distributed virtual port groups
- Configuring Network I/O Control
- Exporting the configuration of distributed virtual port groups
- Migrating a host network adapter from a standard port group to a distributed port group
- Removing distributed virtual port groups
- Configuring host networking
- Configuring the network of a virtual machine
- Summary
-
7. Managing Storage with PowerCLI
- Rescanning for new storage devices
- Creating datastores
- Retrieving datastores
- Setting the multipathing policy
- Configuring the vmhba paths to a SCSI device
- Working with Raw Device Mappings
- Configuring Storage I/O Control
- Configuring Storage DRS
- Upgrading datastores to VMFS-5
- Removing datastores
- Summary
-
8. Managing High Availability and Clustering with PowerCLI
- Creating vSphere HA and DRS clusters
- Retrieving clusters
- Modifying cluster settings
- Moving hosts to clusters
- Moving clusters
- Using DRS rules
- Using DRS recommendations
- Using resource pools
- Using Distributed Power Management (DPM)
- Removing clusters
- Summary
-
9. Managing vCenter with PowerCLI
- Working with roles and permissions
-
Managing licenses
- Adding license keys to the license inventory
- Retrieving license keys from the license inventory
- Removing license keys from the license inventory
- Assigning licenses to hosts
- Retrieving assigned licenses
- Removing assigned license keys from hosts
- Using the LicenseDataManager
- Configuring alarms
- Retrieving events
- Summary
- 10. Reporting with PowerCLI
- Index
Product information
- Title: Learning PowerCLI
- Author(s):
- Release date: February 2014
- Publisher(s): Packt Publishing
- ISBN: 9781782170167
You might also like
book
Mastering PowerCLI
Master PowerCLI to automate all aspects of VMware environments About This Book Leverage PowerCLI to perform …
book
PowerCLI Essentials
Simplify and automate server administration tasks with PowerCLI About This Book Automate VMware’s VSphere environment by …
book
PowerCLI Cookbook
Over 75 step-by-step recipes to put PowerCLI into action for efficient administration of your virtual environment …
book
Pro-Voice
Dialogue, Not Dogma When Aspen Baker had an abortion at the age of twenty-four, she felt …