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
Retrieving and Setting SATP Configuration Parameters
The esxcli storage nmp satp generic deviceconfig get and esxcli storage nmp satp generic
pathconfig get commands retrieve per-device or per-path SATP conguration parameters. You cannot
retrieve paths or devices for all SATPs, you must retrieve the information one path or one device at a time.
Use the following command to retrieve per device or per path SATP conguration parameters, and to see
whether you can set specic conguration parameters for a device or path.
For example, esxcli storage nmp satp generic deviceconfig get --device naa.xxx might return SATP
VMW_SATP_LSI does not support device configuration.
esxcli storage nmp satp generic pathconfig get -path vmhba1:C0:T0:L8 might return INIT,AVT
OFF,v5.4,DUAL ACTIVE,ESX FAILOVER
The esxcli storage nmp satp generic deviceconfig set and esxcli storage nmp satp generic
pathconfig set commands set conguration parameters for SATPs that are loaded into the system, if they
support device conguration. You can set per-path or per-device SATP conguration parameters.
I The command passes the conguration string to the SATP associated with that device or path.
The conguration strings might vary by SATP. VMware supports a xed set of conguration strings for a
subset of its SATPs. The strings might change in future releases.
Options Description
--config
-c
Conguration string to set for the path specied by --path or the device specied by --device.
You can set the conguration for the following SATPs.
n
VMW_SATP_ALUA_CX
n
VMW_SATP_ALUA
n
VMW_SATP_CX
n
VMW_SATP_INV
You can specify one of the following device conguration strings.
n
navireg_on – starts automatic registration of the device with Navisphere.
n
navireg_off – stops the automatic registration of the device.
n
ipfilter_on – stops the sending of the host name for Navisphere registration. Used if host is known as
localhost.
n
ipfilter_off – enables the sending of the host name during Navisphere registration.
--device
-d
Device to set SATP conguration for. Not all SATPs support the setcong option on devices.
--path
-p
Path to set SATP conguration for. Not all SATPs support the setcong option on paths.
Run esxcli storage nmp device set --default --device=<device> to set the PSP for the specied device
back to the default for the assigned SATP for this device.
Path Claiming with esxcli storage core claiming
The esxcli storage core claiming namespace includes a number of troubleshooting commands.
These commands are not persistent and are useful only to developers who are writing PSA plug-ins or
troubleshooting a system. If I/O is active on the path, unclaim and reclaim actions fail.
I The help for esxcli storage core claiming includes the autoclaim command. Do not use this
command unless instructed to do so by VMware support sta.
vSphere Command-Line Interface Concepts and Examples
108 VMware, Inc.