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
Managing Path Selection Policy Plug-Ins with esxcli storage nmp psp
You can use esxcli storage nmp psp to manage VMware path selection policy plug-ins included with the
VMware NMP and to manage third-party PSPs.
I When used with third-party PSPs, the syntax depends on the third-party PSP implementation.
Retrieving PSP Information
The esxcli storage nmp psp generic deviceconfig get and esxcli storage nmp psp generic pathconfig
get commands retrieve PSP conguration parameters. The type of PSP determines which command to use.
n
Use nmp psp generic deviceconfig get for PSPs that are set to VMW_PSP_RR, VMW_PSP_FIXED or
VMW_PSP_MRU.
n
Use nmp psp generic pathconfig get for PSPs that are set to VMW_PSP_FIXED or VMW_PSP_MRU. No path
conguration information is available for VMW_PSP_RR.
To retrieve PSP conguration parameters, use the appropriate command for the PSP.
n
Device conguration information.
esxcli <conn_options> storage nmp psp generic deviceconfig get --device=<device>
esxcli <conn_options> storage nmp psp fixed deviceconfig get --device=<device>
esxcli <conn_options> storage nmp psp roundrobin deviceconfig get --device=<device>
n
Path conguration information.
esxcli <conn_options> storage nmp psp generic pathconfig get --path=<path>
n
Retrieve the PSP conguration for the specied path.
esxcli <conn_options> nmp psp pathconfig generic get --path vmhba4:C1:T2:L23
The esxcli storage nmp psp list command shows the list of PSPs on the system and a brief description of
each plug-in.
Setting Configuration Parameters for Third-Party Extensions
The esxcli storage nmp psp generic deviceconfig set and esxcli storage nmp psp generic pathconfig
set commands support future third-party PSA expansion. The setconfig command sets PSP conguration
parameters for those third-party extensions.
N The precise results of these commands depend on the third-party extension. See the extension
documentation for information.
Use esxcli storage nmp roundrobin setconfig for other path policy conguration. See “Customizing
Round Robin Setup,” on page 105.
You can run esxcli storage nmp psp generic deviceconfig set --device=<device> to specify PSP
information for a device, and esxcli storage nmp psp generic pathconfig set --path=<path> to specify
PSP information for a path. For each command, use --config to set the specied conguration string.
Chapter 6 Managing Third-Party Storage Arrays
VMware, Inc. 103