6.0

Table Of Contents
Getting Started with vSphere Command-Line Interfaces
14 VMware, Inc.
Targets and Protocols for vCLI Host Management Commands
MostvCLIcommandsareusedtomanageorretrieveinformationaboutoneormoreESXihosts.Theycan
targetanESXihostoravCenterServersystem.WhenyoutargetavCenterServersystem,youcanuse
--vihosttospecifytheESXihosttorunthecommandagainst.Theonlyexception
issvmotion,whichyou
canrunagainstvCenterServersystems,butnotagainstESXisystems.
ThefollowingcommandsmusthaveanESXisystem,notavCenterServersystemasatarget.
vifs
vicfg-user
vicfg-cfgbackup
vihostupdate
vmkfstools
TheresxtopcommandrequiresanHTTPSconnection.AllothercommandssupportHTTPandHTTPS.
vicfg-scsidevs esxcli storage core
device
FindsandexaminesavailableLUNs.See“ExaminingLUNs”onpage 40.
vicfg-snmp esxcli system snmp ManagestheSNMPagent.“ManagingESXiSNMPAgents”onpage 143.
UsingSNMPinavSphereenvironmentisdiscussedindetailinthevSphere
MonitoringandPerformancedocumentation.
NewoptionsaddedinvCLI5.0.
ExpandedSNMPsupportaddedinvCLI5.1.
vicfg-syslog esxcli system
syslog
SpecifieslogsettingsforESXihostsincludinglocalstoragepoliciesandserver
andportinformationfornetworklogging.See“ConfiguringESXiSyslog
Services”onpage 142.
ThevCenterServerandHostManagementdocumentationexplainshowtosetup
systemlogsusingthevSphereWebClient.
vicfg-user vicfg-user(No
ESXCLIequivalent)
Creates,modifies,deletes,
andlistslocaldirectaccessusersandgroupsof
users.See“ManagingUsers”onpage 101.
ThevSphereSecuritydocumentationdiscussessecurityimplicationsofuser
managementandcustomroles.
vicfg-vmknic esxcli network ip
interface.
Adds,deletes,andmodifiesVMkernelnetworkinterfaces.SeeAddingand
ModifyingVMkernelNetworkInterfaces”onpage 125.
vicfg-volume esxcli storage
filesystem
Supportsresignaturingthecopy
ofaVMFSvolume,andmountingand
unmountingthecopy.See“ManagingDuplicateVMFSDatastores”on
page 29.
vicfg-vswitch esxcli network
vswitch
Addsorremovesvirtualswitchesormodifiesvirtualswitchsettings.See
“SettingUpVirtualSwitchesandAssociatingaSwitchwithaNetwork
Interface”onpage 117.
vifs vifs(NoESXCLI
equivalent)
Performsfilesystemoperationssuch
asretrievinganduploadingfilesonthe
ESXisystem.See“ManagingtheVirtualMachineFileSystemwith
vmkfstools”onpage 28.
vihostupdate esxclisoftware vib UpdateslegacyESXihoststoadifferentversionofthesamemajorrelease.
YoucannotrunvihostupdateagainstESXi5.0andlaterhosts.
See“ManagingVMkernelModules”onpage 24.
vmkfstools vmkfstools
(No
ESXCLIequivalent)
Createsandmanipulatesvirtualdisks,filesystems, logicalvolumes,and
physicalstoragedevicesonanESXihost.See“ManagingtheVirtualMachine
FileSystemwithvmkfstools”onpage 28.
vmware-cmd vmware-cmd(No
ESXCLIequivalent)
Performsvirtualmachineoperationsremotely.Thisincludes,forexample,
creatingasnapshot,poweringthevirtualmachineon
oroff,andgetting
informationaboutthevirtualmachine.See“ManagingVirtualMachines”on
page 105.
Table 1-2. vCLI and ESXCLI Commands (Continued)
vCLI 4.1 Command
vCLI 5.1 and later
Command Comment