ESXCLI Concepts and Examples
About This Book
Updated Information
ESXCLI Commands Overview
Introduction to ESXCLI
Targets and Protocols for ESXCLI Host Management Commands
ESXCLI Commands Available on Different ESXi Hosts
Trust Relationship Requirement for ESXCLI Commands
Download and Install the vCenter Server Certificate
Using the --cacertsfile Option
Using the --thumbprint Option
Using ESXCLI Output
Connection Options for ESXCLI Host Management Commands
ESXCLI Host Management Commands and Lockdown Mode
Managing Hosts
Stopping and Rebooting Hosts with ESXCLI
Enter and Exit Maintenance Mode with ESXCLI
Manage Modules with ESXCLI
Retrieve Information about Components, Base Image, and Add-On on a Host with ESXCLI
Manage Components with ESXCLI
Manage Base Images and Add-Ons with ESXCLI
Updating Hosts
Configuring the GuestStore Repository with ESXCLI
Set the GuestStore Repository with ESXCLI
Clear the GuestStore Repository Setting with ESXCLI
Managing Files
Introduction to Virtual Machine File Management
Managing VMFS Volumes
Managing Duplicate VMFS Datastores
Mounting Datastores with Existing Signatures
Mount a Datastore with ESXCLI
Resignaturing VMFS Copies
Resignature a VMFS Copy with ESXCLI
Reclaiming Unused Storage Space
Managing Storage
Introduction to Storage
How Virtual Machines Access Storage
Datastores
Storage Device Naming
Examining LUNs
Target and Device Representation
Examining LUNs with ESXCLI
Detach a Device and Remove a LUN
Reattach a Device
Working with Permanent Device Loss
Removing a PDL LUN
Reattach a PDL LUN
Managing Paths
Multipathing with Local Storage and FC SANs
Listing Path Information with ESXCLI
Disable a Path with ESXCLI
Managing Path Policies
Multipathing Considerations
Change the Path Policy with ESXCLI
Set Policy Details for Devices that Use Round Robin
Scheduling Queues for Virtual Machine I/O
Managing NFS/NAS Datastores
Capabilities Supported by NFS/NAS
Manage a NAS File System with ESXCLI
Monitor and Manage FibreChannel SAN Storage
Monitoring and Managing vSAN Storage
Retrieve vSAN Information
Manage a vSAN Cluster
Add and Remove vSAN Storage
Monitoring vSphere Flash Read Cache
Monitoring and Managing Virtual Volumes
Configuring FCoE Adapters
Scanning Storage Adapters
Retrieving SMART Information
Managing iSCSI Storage
iSCSI Storage Overview
Discovery Sessions
Discovery Target Names
Protecting an iSCSI SAN
Protecting Transmitted Data
Securing iSCSI Ports
Setting iSCSI CHAP
Command Syntax for esxcli iscsi
esxcli iscsi Command Syntax
Key to esxcli iscsi Short Options
iSCSI Storage Setup with ESXCLI
Set Up Software iSCSI with ESXCLI
Set Up Dependent Hardware iSCSI with ESXCLI
Set Up Independent Hardware iSCSI with ESXCLI
Listing and Setting iSCSI Options
Listing iSCSI Options with ESXCLI
Setting MTU with ESXCLI
Listing and Setting iSCSI Parameters
Listing and Setting iSCSI Parameters with ESXCLI
Returning Parameters to Default Inheritance with ESXCLI
Enabling iSCSI Authentication
Enable iSCSI Authentication with ESXCLI
Enable Mutual iSCSI Authentication with ESXCLI
Set Up Ports for iSCSI Multipathing
Managing iSCSI Sessions
Introduction to iSCSI Session Management
Listing iSCSI Sessions
Logging in to iSCSI Sessions
Removing iSCSI Sessions
Managing Third-Party Storage Arrays
Managing NMP with esxcli storage nmp
Device Management with esxcli storage nmp device
Listing Paths with esxcli storage nmp path
Managing Path Selection Policy Plug-Ins with esxcli storage nmp psp
Fixed Path Selection Policy Operations
Customizing Round Robin Setup
Managing SATPs
Path Claiming with esxcli storage core claiming
Using the Reclaim Troubleshooting Command
Unclaiming Paths or Sets of Paths
Managing Claim Rules
Change the Current Claim Rules in the VMkernel
Adding Claim Rules
Removing Claim Rules
Listing Claim Rules
Loading Claim Rules
Moving Claim Rules
Load and Apply Path Claim Rules
Running Path Claim Rules
Managing Users
Users in the vSphere Environment
Assigning Permissions with ESXCLI
Managing Virtual Machines
Forcibly Stop a Virtual Machine with ESXCLI
Managing vSphere Networking
Introduction to vSphere Networking
Networking Using vSphere Standard Switches
Networking Using vSphere Distributed Switches
Retrieving Basic Networking Information
Troubleshoot a Networking Setup
Setting Up vSphere Networking with vSphere Standard Switches
Setting Up Virtual Switches and Associating a Switch with a Network Interface
Retrieving Information About Virtual Switches with ESXCLI
Adding and Deleting Virtual Switches
Adding and Deleting Virtual Switches with ESXCLI
Setting Switch Attributes with ESXCLI
Managing Port Groups with ESXCLI
Connecting and Disconnecting Uplink Adapters and Port Groups with ESXCLI
Setting the Port Group VLAN ID with ESXCLI
Managing Uplink Adapters
Manage Uplink Adapters with ESXCLI
Specifying Multiple Uplinks with ESXCLI
Linking and Unlinking Uplink Adapters with ESXCLI
Adding and Modifying VMkernel Network Interfaces
Managing VMkernel Network Interfaces with ESXCLI
Add and Configure an IPv4 VMkernel Network Interface with ESXCLI
Add and Configure an IPv6 VMkernel Network Interface with ESXCLI
Managing Standard Networking Services in the vSphere Environment
Setting the DNS Configuration with ESXCLI
Set Up a DNS Server with ESXCLI
Modify DNS Setup for a Preconfigured Server with ESXCLI
Setting Up IPsec
Using IPsec with ESXi
Managing Security Associations
Managing Security Policies
Manage the ESXi Firewall
Monitor VXLAN
Monitoring ESXi Hosts
Managing Diagnostic Partitions
Managing Core Dumps
Manage Local Core Dumps with ESXCLI
Manage Core Dumps with ESXi Dump Collector
Configuring ESXi Syslog Services
Managing ESXi SNMP Agents
Configuring SNMP Communities
Configuring the SNMP Agent to Send Traps
Configure a Trap Destination with ESXCLI
Retrieving Hardware Information
Managing Security
Configuring and Managing the Audit System and Audit Data
Enable Local Auditing with ESXCLI
Enable the Transmission of Audit Records to a Remote Host with ESXCLI
Manage CA Certificates with ESXCLI
Configuring the Cryptographic Functionality
Configuring Virtual Machine Access to Physical Devices
Managing Configuration Settings
Sticky Bit Configuration Files
Namespaces from esx.conf