6.5
Table Of Contents
- vSphere Command-Line Interface Concepts and Examples
- Contents
- About This Book
- vSphere CLI Command Overviews
- Introduction
- List of Available Host Management Commands
- Targets and Protocols for vCLI Host Management Commands
- Supported Platforms for vCLI Commands
- Commands with an esxcfg Prefix
- ESXCLI Commands Available on Different ESXi Hosts
- Trust Relationship Requirement for ESXCLI Commands
- Using ESXCLI Output
- Connection Options for vCLI Host Management Commands
- Connection Options for DCLI Commands
- vCLI Host Management Commands and Lockdown Mode
- Managing Hosts
- Managing Files
- Managing Storage
- Introduction to Storage
- Examining LUNs
- Detach a Device and Remove a LUN
- Reattach a Device
- Working with Permanent Device Loss
- Managing Paths
- Managing Path Policies
- Scheduling Queues for Virtual Machine I/O
- Managing NFS/NAS Datastores
- Monitor and Manage FibreChannel SAN Storage
- Monitoring and Managing Virtual SAN Storage
- Monitoring vSphere Flash Read Cache
- Monitoring and Managing Virtual Volumes
- Migrating Virtual Machines with svmotion
- Configuring FCoE Adapters
- Scanning Storage Adapters
- Retrieving SMART Information
- Managing iSCSI Storage
- iSCSI Storage Overview
- Protecting an iSCSI SAN
- Command Syntax for esxcli iscsi and vicfg-iscsi
- iSCSI Storage Setup with ESXCLI
- iSCSI Storage Setup with vicfg-iscsi
- Listing and Setting iSCSI Options
- Listing and Setting iSCSI Parameters
- Enabling iSCSI Authentication
- Set Up Ports for iSCSI Multipathing
- Managing iSCSI Sessions
- Managing Third-Party Storage Arrays
- Managing Users
- Managing Virtual Machines
- Managing vSphere Networking
- Introduction to vSphere Networking
- 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
- Adding and Deleting Virtual Switches
- Checking, Adding, and Removing Port Groups
- Managing Uplinks and Port Groups
- Setting the Port Group VLAN ID
- Managing Uplink Adapters
- 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 VMkernel Network Interfaces with vicfg-vmknic
- Add and Configure an IPv4 VMkernel Network Interface with vicfg-vmknic
- Add and Configure an IPv6 VMkernel Network Interface with vicfg-vmknic
- Setting Up vSphere Networking with vSphere Distributed Switch
- Managing Standard Networking Services in the vSphere Environment
- Setting the DNS Configuration
- Manage an NTP Server
- Manage the IP Gateway
- Setting Up IPsec
- Manage the ESXi Firewall
- Monitor VXLAN
- Monitoring ESXi Hosts
- Index
n
Independent hardware iSCSI adapter - Leverages its own iSCSI management and conguration
interfaces.
See the vSphere Storage documentation for details on setup and failover scenarios.
You must congure iSCSI initiators for the host to access and display iSCSI storage devices.
Figure 5-1 depicts hosts that use dierent types of iSCSI initiators.
n
The host on the left uses an independent hardware iSCSI adapter to connect to the iSCSI storage system.
n
The host on the right uses software iSCSI.
Dependent hardware iSCSI can be implemented in dierent ways and is not shown. iSCSI storage devices
from the storage system become available to the host. You can access the storage devices and create VMFS
datastores for your storage needs.
Figure 5‑1. iSCSI Storage
iSCSI storage
SP
IP network
HBA2 HBA1
NIC2
software
adapter
NIC1
Host 1
Host 2
hardware
iSCSI
software
iSCSI
Discovery Sessions
A discovery session is part of the iSCSI protocol. The discovery session returns the set of targets that you can
access on an iSCSI storage system.
ESXi systems support dynamic and static discovery.
n
Dynamic discovery - Also known as Send Targets discovery. Each time the ESXi host contacts a
specied iSCSI storage server, it sends a Send Targets request to the server. In response, the iSCSI
storage server supplies a list of available targets to the ESXi host. Monitor and manage with esxcli
iscsi adapter discovery sendtarget or vicfg-iscsi commands.
n
Static discovery - The ESXi host does not have to perform discovery. Instead, the ESXi host uses the IP
addresses or domain names and iSCSI target names, IQN or EUI format names, to communicate with
the iSCSI target. Monitor and manage with esxcli iscsi adapter discovery statictarget or vicfg-
iscsi commands.
For either case, you set up target discovery addresses so that the initiator can determine which storage
resource on the network is available for access. You can do this setup with dynamic discovery or static
discovery. With dynamic discovery, all targets associated with an IP address or host name and the iSCSI
name are discovered. With static discovery, you must specify the IP address or host name and the iSCSI
name of the target you want to access. The iSCSI HBA must be in the same VLAN as both ports of the iSCSI
array.
vSphere Command-Line Interface Concepts and Examples
70 VMware, Inc.