Professional Documents
Culture Documents
Introduction
InvSphere5.0andvSphere5.1,VMwareoffersthefollowingtools,CLIs,andAPIsthatreplaceESX4.xservice consolecomponents.
CLI or Tool vCLI Description IncludesESXCLIcommands,vicfg- commands,andafewothercommandsfor managingvSphere. PowerCLIcmdletsformanagingESXihostsand virtualmachines. Availability InstallavCLIpackageonaWindowsorLinux systemorruncommandsfromvMA. InstallMicrosoftPowerShellonaWindows system,andinstallvSpherePowerCLItorun bothPowerShellandPowerCLIcmdletfromthe PowerCLIprompt.
PowerCLI
VMware, Inc.
ESXiShell commands
Serviceconsolecommands
OffhostmanagementwithVMware PowerCLIcmdletsfromaWindowssystem.
Serviceconsolecommands
OnhostmanagementintheESXiShellis possibleifsystemfailuresorotherissues preventyoufromusingoffhostmanagement commands. ESXiShellisdisabledbydefault IfyourunagentsintheESX4.xservice console,youcanreplacethemwith infrastructureservicesinmanycases. RunningthirdpartyagentsintheESXiShell isnotsupported.
Agents
ReplacingAgentsonpage 10.
Figure 1illustratesthedifferencesbetweenCLIsinESXi4.1andESXi5.0andlater.
VMware, Inc.
Figure 1. Command-Line Interfaces in ESX 4.1 and ESXi 5.0 and later
Commands running on host vCLI
ESX 4.1
ESXCLI ESXCLI
ESXi 5
ESXCLI ESXCLI
vSphere5documentationexplainshowtoperformtasksbyusingoneoftheclientUIs.Onlinehelpisavailable frombothclientUIs.
Ifyoudonotspecifyadditionalauthenticationparameters,thevCLIinfrastructurepromptsforausername andpasswordforthevCenterServersystemspecifiedby--server.
VMware, Inc.
Management commands
Asmallsetofmanagementcommandsisavailable.Commandsincludevifsforfilemigration, vmware-cmdformanagingvirtualmachines,andvmkfstoolsforVMFSfilemanagement.
ThefollowingdocumentationhelpsyouworkwithvCLIcommands.
GettingStartedwithvSphereCommandLineInterfacesgivesoverviewsofavailablecommandsandincludes instructionsforinstallingvCLIonWidowsorLinuxanddetailedinformationaboutconnectionoptions. vSphereCommandLineInterfaceConceptsandExamplespresentsusageexamplesformanycommands,such assettingupsoftwareandhardwareiSCSI,addingvirtualswitches,settingupActiveDirectory authentication,andsoon.Thedocumentincludesthesameexamplewiththevicfg-commandandthe ESXCLIcommandwheresupported. vSphereCommandLineInterfaceReferenceisareferencetobothvicfg-commandsandESXCLIcommands. Thevicfg-commandhelpisgeneratedfromthePODavailableforeachcommand,runpod2htmlfor anyvicfg-commandtogenerateindividualHTMLfilesinteractively.TheESXCLIreferenceinformation isgeneratedfromtheESXCLIhelp.
VMware, Inc.
localclicommands
VMware, Inc.
PressEscuntilyoureturntothemaindirectconsolescreen.
YoucanenabletheESXiShellfromthevSphereClient. To enable the local or remote ESXi Shell from the vSphere Client 1 2 3 4 Selectthehost,clicktheConfigurationtab,andclickSecurityProfileintheSoftwarepanel. IntheServicessection,clickProperties. SelectESXiShellandclickOptions. ChangetheESXiShelloptions.
ClickOK.
AfteryouhaveenabledtheESXiShell,youcanuseitfromthatmonitororthroughanout-of-bandnetwork connection. To enable to local or remote ESXi Shell from the vSphere Web Client 1 2 3 4 Selectthehost,clicktheManagetab,andclickSettings. UnderSystem,selectSecurityProfile. IntheServicespanel,clickEdit. Selectaservicefromthelist.
6 7
SelectStarttoenabletheservice. ClickOK.
AfteryouhaveenabledtheESXiShell,youcanuseitfromthatmonitororthroughanout-of-bandnetwork connection.
VMware, Inc.
To set ESXi Shell timeouts from the Direct Console 1 2 3 4 FromtheTroubleshootingModeOptionsmenu,selectModifyESXiShellandSSHtimeoutsandpress Enter. EntertheavailabilitytimeoutandpressEnter. EntertheidletimeoutandpressEnter. PressEscuntilyoureturntothemainmenuoftheDirectConsoleInterface.
To set ESXi Shell timeouts from the vSphere Client 1 2 3 4 SelectthehostintheinventoryandclicktheConfigurationtab. IntheConfigurationtabsSoftwarepanel,clickAdvancedSettings. Intheleftpanel,clickUserVars. IntheUserVars.ESXiShellTimeOutentertheavailabilitytimeoutinminutes. YoumustrestarttheSSHserviceandtheESXiShellserviceforthetimeouttotakeeffect. 5 IntheUserVars.ESXiShellInteractiveTimeOutfield,entertheidletimeoutsetting. YoumustrestarttheSSHserviceandtheESXiShellserviceforthetimeouttotakeeffect. 6 ClickOK.
To set ESXi Shell timeouts from the vSphere Web Client 1 2 3 4 5 Selectthehostintheinventory,clicktheManagetab,andclickSettings. UnderSystem,selectAdvancedSystemSettings. Intheleftpanel,clickUserVars. SelectUserVars.ESXiShellTimeOutandclicktheEditicon Entertheavailabilitytimeoutinminutes. YoumustrestarttheSSHserviceandtheESXiShellserviceforthetimeouttotakeeffect. 6 7 SelectUserVars.ESXiShellInteractiveTimeOutandclicktheEditicon Entertheavailabilitytimeoutinminutes. YoumustrestarttheSSHserviceandtheESXiShellserviceforthetimeouttotakeeffect. 8 ClickOK.
VMware, Inc.
ChangetheSSHoptions.
ClickOK.
AfteryouhaveenabledSSH,youcanuseanSSHclienttologintotheESXiShellandrunESXiShell commands.
esxcfg-commands
ESXCLI Commands
TheESXiShellinESXi5includesalargesetofnewESXCLInamespacesandcommands.ThecompleteESXCLI commandsetisalsopartofthevCLIpackage.TheESXCLIcommandsyntaxinESXi5ismoreflexiblethan thesyntaxinESXi4andsupportsmultiplenamespaces.
esxcli [dispatch_option] <namespace> [namespace, ...] <cmd> [cmd_options]
Eachgetcommandreturnssinglevalues.
esxcli hardware memory get
Thelistcommandsareusedformultiplereturnvalues.
esxcli hardware cpu list
VMware, Inc.
Manycommandshaveoptions.Useanequalsignoraspacebetweentheoptionandtheoptionvalue.
esxcli storage nfs add --host=<host_name> --share=<share_name> --volume=<volume_name> esxcli storage nfs add --host <host_name> --share <share_name> --volume <volume_name>
Shell Commands
IncontrasttoVMwareESX,VMwareESXidoesnotincludeaconsoleOSwithalargesetofshellcommands andothersoftware.However,asmallsetofshellcommandsisavailableintheESXiShell. IMPORTANTThecommandsarenottestedorsupportedbyVMware.UseVMwarecommandssuchas ESXCLI,vicfg-commands,andsoon,instead. Youcanseealistofcommandsin/usr/bin.Whenyoulistthecommandswithls -al,noticethatseveralof theutilitiesareredirectedtocommandsappropriateinthevSphereenvironment.Thefollowingcommands producedifferentresultsthantypicalshellcommands.
Goto/usr/binandrunls -atoseeacompletelist.
Replacing Agents
WithESX4.x,managementagentsandhardwaremonitoringandmanagementagentsrunintheservice console.WithESXi5,agentsareimplementedinotherways.
Managementagents.VMwarepartnerscreatemanagementagentsbyusingoneofthevSphereAPIs. Hardwareagents.DevelopersuseCIM(CommonInformationModel)agents.CIMisastandards-based approachtomonitoringhardwareresources.CIMoutputisreadablebythird-partymanagementtools. TheVMkernelcanincludebothVMwareCIMprovidersandPartnerCIMproviders.UseavSphereClient loggedintoavCenterServersystemtoviewhardwareinformationincludingalarms.UsethevSphere ClientextensionframeworkorthevSphereCIMSDKforcustomization. Infrastructureserviceagents.AdministratorscanuseagentsavailableintheESXiShell.Agentsinclude hostd(hostdaemon),vpxa,NTP,syslog,SNMP,andsoon.UsethevSphereSDK,vCLIcommands,or ESXCLIcommandstomanagetheagents. Table 2. Infrastructure Services for Production Environments
Function Timesynchronization Centralizedlogcollection ESX NTPagentinservice console Syslogagentinservice console ESXi Built-inNTPservice Built-inSyslogservice Management vicfg-ntpcommand esxcli system syslog commands vSphereClient
VMware, Inc.
10
Logging in vSphere 5
LogginginvSphere5hasbeensignificantlyenhanced.Younowhavefine-grainedcontroloversystemlogs, thelocationwherelogsaresent,and,foreachlog,defaultsizeandrotationpolicy.Youcansetuploggingwith thevSphereClientorwiththeesxcli system syslogcommand.Youcanalsosetuploggingbehaviorfora hostbyusingtheHostProfilesinterfaceinthevSphereClientandcanthenimportthathostprofileintoother hosts.
SetupNTPontheESXihostsyouaremonitoringandonthesystemsthathosttheloggingservicesorstore thelogs.YoucanusethevSphereClientorthevicfg-ntpvCLIcommandtosetupNTP. Configuresyslogtosavelogstoaremotehost.Youcansendlogstoaspecificdirectory,andconfigure subloggers.SeeUsingESXCLIforSyslogConfigurationonpage 11. vCenterServerandESXihaveSNMPagents.YoucansetupthevCenterServerSNMPagentwiththe vSphereClient.YoucansetuptheESXiSNMPagentwiththevSphereClientortheesxcli system snmp commands.SeevSphereCommandLineInterfaceSolutionsandExamples. ListenforCIMindications.
VMware, Inc.
11
Setalllogstokeeptwentyversions,thenstartoverwritingtheoldestlog.
esxcli system syslog config set --default-rotate=20
SettherotationpolicyforVMkernellogsto10rotations,rotatingat2MB.
esxcli system syslog config logger --id=vmkernel --size=2048 --rotate=10
Sendlogstoremotehostmyhost.mycompany.com.ThelogswillusethedefaultUDPport,514.
esxcli system syslog config set --loghost='myhost.mycompany.com'
Sendlogs/scratch/mylogsontheremotehostmyhost.mycompany.comusingTCP/IPport1514.
esxcli system syslog config set --loghost='tcp://myhost.mycompany.com:1514' --logdir='/scratch/mylogs'
Sendalogmessageintoalllogssimultaneously.
esxcli system syslog mark --message="this is a message!"
Reloadthesyslogdaemonandapplyconfigurationchanges.
esxcli system syslog reload
VMware, Inc.
12
Youcanuseesxcli system coredumptoconfigurearemoteorlocalcoredumppartition.Youcanalsouse theNetworkConfigurationhostprofiletosetuphoststouseESXiDumpCollector.Foreithercase,youcan applythehostprofileofahostthatusesESXiDumpCollectortootherhosts. To use ESXi Dump Collector 1 InstalltheESXiDumpCollectorserviceonthevCenterServersystemoraWindowsorLinuxsystemof yourchoice. ESXiDumpCollectorisoneoftheservicesyoucaninstallusingthevCenterServersysteminstallation package.SeevSphereInstallationandSetup. IfyouusethevCenterServeronLinuxappliance,ESXiDumpCollectorispreinstalled. 2 SetupESXisystemsthatshoulduseESXiDumpCollectorwithcommandsintheesxcli system coredumpnamespace. Twonamespacesaresupportedinsidethisnamespace.
ThefollowingexamplesetsupthenetworkandenablesESXiDumpCollectorwiththeESXCLIvCLI command.
esxcli --server MyESXiHost system coredump network set --interface-name vmk0 --server-ipv4 10XX... --port 6500 esxcli --server MyESXiHost system coredump network get --enable true --type network
YouarepromptedforausernameandpasswordfortheESXihost.
VMware, Inc.
13
OnESXi5,ifconfiginformationistheinformationfortheVMkernelNICthatattachestotheManagement Networkportgroup.YoucanretrievethatinformationbyusingESXCLIcommands.
esxcli esxcli esxcli esxcli network network network network ip ip ip ip interface interface interface interface list ipv4 get -n vmk<X> ipv6 get -n vmk<X> ipv6 address list
ForinformationcorrespondingtotheLinuxnetstatcommand,usethefollowingESXCLIcommand.
esxcli network ip connection list
VMware, Inc.
14
esxcfg-ipsec esxcfg-swiscsi esxcfg-hwiscsi esxcfg-module esxcfg-mpath esxcfg-nas esxcfg-nics esxcfg-rescan esxcfg-route esxcfg-scsidevs esxcfg-vmknic
esxcfg-ipseconpage 21 esxcfg-swiscsiand esxcfg-hwiscsionpage 22 esxcfg-moduleon page 24 esxcfg-mpathonpage 24 esxcfg-nasonpage 25 esxcfg-nicsonpage 25 esxcfg-rescanonpage 26 esxcfg-routeonpage 23 esxcfg-scsidevson page 23 esxcfg-vmknicon page 26 esxcfg-volumeon page 27
esxcli system module esxcli storage core pathcommands. esxcli storage nfs esxcli network nic esxcli storage corecommands. esxcli network ip routecommands Useesxcli storage coreandesxcli storage core filesystemcommands. esxcli network ip interfacecoversmostoptionsand includesanumberofoptionsnotavailableinthe esxcfg-vmkniccommand. esxcli storage filesystem Usedtoconfigureserviceconsolenetworkingin4.xsystems. NotneededandnotavailableintheESXi5.xESXiShell. esxcli network vswitch standardforstandardswitches. esxcli network vswitch dvsfordistributedswitches. SupportedintheESXi5.xESXiShell.Ifyoudonothave accesstotheESXiShell,usetheresxtopremotevCLI commandfromasupportedLinuxsystemorfromvMA. esxclisoftware vib Note:Bothesxupdateandvihostupdatearenotsupported againstESXi5.0andESXi5.1hosts.
Yes Yes
Yes No
esxtop
esxupdate
esxupdateonpage 29
Yes
vmkfstools
vmkfstoolsonpage 30
No
vmkping
No
VMware, Inc.
15
vm-support
No
InESXi5.0andESXi5.1,theESXCLIcommandsyntaxismoreflexible.Eachcommandcanuseanarbitrary numberofnamespaces.Differentcommandshaveadifferentnumberofelements.
esxcli <conn_options> <namespace> [namespace, ...] <cmd> [cmd_options]
IMPORTANTYoumustupdateallESXCLIcommandsexplicitly;noscriptsareavailableforthetask.Starting withvSphere5.0,mostmanagementcommandswillbeESXCLIcommands. Updates to ESXCLI 4.x Commands Thefollowingtablelistsequivalentcommandsforesxclicorestoragecommands. Table 5. esxcli 4.x corestorage namespace
ESXCLI in ESXi 4.x corestorage claiming reclaim --<option> corestorage claiming unclaim --<option> corestorage claimrule add --<options> corestorage claimrule convert --commit corestorage claimrule delete --<option> corestorage claimrule list --claimrule corestorage claimrule load --claimrule-class corestorage claimrule move --<option> corestorage claimrule run --<option> ESXCLI in ESXi 5.x storage core claiming reclaim --<option> storage core claiming unclaim --<option> storage core claimrule add --<options> Severalnewoptionsforthiscommandareavailable.Seethe vSphereCommandLineInterfaceReference,orrunthe commandwith--help. storage core claimrule convert --commit storage core claimrule remove --<option> storage core claimrule list --claimrule-class storage core claimrule load --claimrule-class storage core claimrule move --<option> storage core claimrule run --<option> corestorage device list --device storage core device stats get storage core device list --device Otherlistcommandsareincludedinthisnamespace. corestorage plugin list --plugin-class storage core plugin list --plugin-class
VMware, Inc.
16
nmp psp generic deviceconfig set [--config|--path] nmp psp roundrobin deviceconfig get <option> nmp psp roundrobin deviceconfig set <option> nmp satp list nmp satp rule list nmp satp rule add <option> nmp satp rule remove <option> nmp satp generic deviceconfig get --device nmp satp generic pathconfig get --path nmp psp generic deviceconfig set nmp psp generic pathconfig set nmp satp set [--boot | --psp | --satp]
VMware, Inc.
17
vms vm list
vm process list
esxcfg-advcfg Insteadofesxcfc-advcfg,useesxcli system settings advanced.Thefollowingcommandsare supported. Table 9. esxcfg-advcfg Replacement Commands
esxcfg-advcfg option -g|--get ESXCLI Command system settings advanced list -o=option Description GetthevalueoftheVMkerneladvanced configurationoption.Us--optionto retrieveinformationforasingleoption,or --treetolimitthelisttoaspecificsubtree. SetthevalueoftheVMkerneladvanced configurationoption. ResetaVMkerneladvancedconfiguration optiontodefault. ListallVMkerneladvancedconfiguration options.
system settings advanced set system settings advanced set -d|--default system settings advanced list Nolongersupported system settings kernel set system settings kernel list Notsupported system welcomemsg set
Setthewelcomemessageforthedirect console.Youcanretrievethemessagewith system welcomemsg get. EnsuretheVMkernelsystemUUIDisset andprintit. Getthevalueofauser-specifiedgeneric value. Setthevalueofauser-specifiedgeneric value.
system uuid get system settings advanced list | grep <var> system settings advanced set
VMware, Inc.
18
-V|--has-option <name>
-r|--restore
Nolongeravailable.Internaluseonlyin previousversions.
IMPORTANTYoucannolongeruseesxcfg-dumpparttoenablecoredumps.UseESXCLIinstead. Thefollowingtableliststheesxcfg-dumppartcommandoptionsandcorrespondingESXCLIcommands.
VMware, Inc.
19
-t | --get-active
-c | --get-config -S | --smart-activate
system coredump partition get system coredump partition set --smart --enable= true
Gettheconfigureddiagnosticpartition forthesystem. Runthesmartactivatealgorithmto activatetheconfigureddump partition,orifnopartitionis configured,selectthebestpossible candidatebasedonthemediaofthe availabledumppartitions. Makethespecifiedpartitionthe currentdiagnosticpartition. Deactivatetheactivediagnostic partitionordeactivateESXiDump Collector. CAUTION:Ifyourunthiscommand, yoursystemcannotwriteerrorstoa fileuntilanotherpartitionisactivated. Youloseanyerrorrecordiferrors occur.
-a | --activate -d | --deactivate
system coredump partition set --enable=true system coredump partition set --enable=false
-s <naa.xx:1> | --set <naa.xxxxxxxx:1> -C | --copy [-n | --newonly] [-z | --zdumpname] [-o | --slot] -L --log
NocorrespondingESXCLIcommand.
VMware, Inc.
20
esxcfg-ipsec InvSphere5.1,youcanusecommandsintheesxcli network ip ipsecnamespaceinplaceofthe esxcfg-ipseccommand. Table 12. esxcfg-ipsec Replacement Commands
vicfg-ipsec Option --action [none|discard|ipsec] | --add-sa <sa> | --add-sp <sp> | --dir [in | out] | --dst-port <port> | --flush-sa | --flush-sp | --ealgo [null | 3des-cbc | aes128-cbc]| --ekey <e_key>| --ialgo [hmac-sha1 | hmac-sha2-256] | --ikey <i_key> | --list-sa <sa> | --list-sp <sp> | --remove-sa <sa> | esxcli Command or Option network ip ipsec sp add --action network ip ipsec sa add network ip ipsec sp add network ip ipsec sp add --flowdirection network ip ipsec sp add --destinationport network ip ipsec sp remove --removeall network ip ipsec sa remove --removeall network ip ipsec sa add --encryptionalgorithm network ip ipsec sa add --encryptionkey network ip ipsec sa add --integrityalgorithm network ip ipsec sa add --integritykey network ip ipsec sa list network ip ipsec sp list network ip ipsec sa remove
VMware, Inc.
21
esxcfg-swiscsi and esxcfg-hwiscsi TheESX4.xserviceconsoleincludestwocommandsforiSCSImanagement. Theesxcfg-swiscsicommandmanagessoftwareiSCSI.EquivalentESXCLIcommandsareavailablein vSphere5. Table 13. esxcfg-swiscsi Replacement Commands
esxcfg-swiscsi Option -e --enable -D --disable -q --query -s --scan ESXCLI Command iscsi software set --enabled=true iscsi software set --enabled=false iscsi software get iscsi adapter discovery rediscover -A <adapter_name> storage core adapter rescan [-A <adapter_name> | -all] -k --kill -r --restore Notsupported Notsupported Description EnableSoftwareiSCSIonthesystem,if disabled. DisableSoftwareiSCSIonthesystem,if enabled. CheckifSoftwareiSCSIisenabledor disabledonthesystem. Scanthesystemfordisksavailablethrough SoftwareiSCSIinterface.Callthetwo commandsinorder.
Theesxcfg-hwiscsicommandmanagedhardwareiSCSI.
VMware, Inc.
22
-c -u
-m -f
VMware, Inc.
23
ESXCLIdoesnothaveequivalentoptionsforthe--device,--vfat,and--hba-device-listfiltering options. The-o|--offline-cos-devand-n|--online-cos-devoptionsareserviceconsolespecificoptionsandnot applicabletoESXi5.x. esxcfg-module Theesxcfg-modulecommandsupportsmanipulationoftheVMkernelloadablemodulesanddevice drivers.Forthefollowingesxcfg-moduleoptions,ESXCLIcommandsareavailable. Table 17. esxcfg-module Replacement Commands
esxcfg-module Option --get-options <module_name> -g <module_name> --set-options <options> <module_name> -s <options> <module_name> -e --enable -d --disable ESXCLI Command system module parameters list system module parameters set system module set --enabled=true system module set --enabled=false Description Returnstheoptionstringconfiguredtobe passedtothemodulewhenthemoduleis loaded. Specifiestheoptionstringtobepassedtothe modulewhenthemoduleisloaded. Enablethegivenmodule,indicatingthatit shouldloadatboottime. Disablethegivenmoduleandpreventitfrom loadingatboot.Disablingthemodulehasno immediateeffectonthemodulestateona runningsystem. Querythesystemforthemodulestoloadat boot.
system module list --enabled=[true|false] Notsupported. Notsupported. system module list --loaded=[true|false] system module get system module parameters list
VMware, Inc.
24
-s --state
storage nfs add --host storage nfs add --readonly storage nfs add --share=<share>
VMware, Inc.
25
-u|--update <vmhba#>
Inaddition,ESXCLIsupportsseveralotherrescancommand.Runesxcli storage core adapter rescan --help. esxcfg-vmknic Theesxcfg-vmkniccommandadds,deletes,andmodifiesVMkernelnetworkinterfaces.InvSphere5, equivalentESXCLIcommandsareavailable. Table 22. esxcfg-vmknic Replacement Commands
esxcfg- option --add --ip<address> --netmask <netmask> <port-group-name> --delete <nic_name> --disable -D ESXCLI Command network ip interface add Description AddaVMkernelNICtothesystem. Whenthecommandcompletes successfully,thenewlyaddedVMkernel NICisenabled. RemoveaVMkernelNIC. TheESXCLIcommandenablesordisables thespecifiedVMkernelNIC.
network ip interface remove network ip interface set --interface-name=<NIC> --enabled=[true|false] Notsupported. Notsupported.
--netmask <netmask> -n
esxcfg-volume Theesxcfg-volumecommandmanagesLVMsnapshotorreplicavolumes.InvSphere5,equivalentESXCLI commandsareavailableintheesxcli storage filesystemandintheesxcli storage vmfsnamespaces. Table 23. esxcfg-volume Replacement Commands
esxcfg-volume Option --list -l --mount -m --persistent -M --resignature <VMFS-UUID|label> --umount -u <VMFS-UUID|label> ESXCLI Command storage vmfs snapshot list storage vmfs snapshot mount storage vmfs snapshot resignature storage vmfs snapshot unmount Description ListunresolvedsnapshotLUNsorreplicasofVMFSvolumes. MountasnapshotorreplicaofaVMFSvolume.Usethe --nopersistoptiontomountthevolumenon-persistently. Resignatureasnapshotorreplicavolume. DisconnectandunmountanexistingVMFSorNASvolume. Thecommanddoesnotdeletetheconfigurationforthe volume,butremovesthevolumefromthelistofmounted volumesandhaltsallI/Oornetworktrafficforthisvolume.
VMware, Inc.
27
--del-dvp-uplink | -Q <adapter_name> --dvp <DVPort_id> <dvswitch_name> --del-pg-uplink | -N <adapter_name> <port_group> <dvswitch_name> --dvp | -V
ESXCLIdoesnotsupportdistributedswitches. UsethevSphereClienttoconfiguredistributed switches. network vswitch standard portgroup policy failover set --active-uplinks=vmnic1,vmnic6,vminic7 ESXCLIdoesnotsupportdistributedswitches. UsethevSphereClienttoconfiguredistributed switches. network vswitch standard listincludes CDPinformation. PrintthecurrentCDP(CiscoDiscovery Protocol)settingforthisvirtualswitch (validforvSphere4.0andlater). Updatethelistofactiveuplinksforthe portgroup.
--get-cdp | -b <vswitch_name>
--pg | -p <port_group>
-X --set-maxactive
esxtop TheesxtopcommandisavailableandsupportedintheESXiShell.SearchthevSphereDocumentationCenter, orseethevSphereResourceManagementdocumentation. esxupdate TheesxupdatecommandallowsyoutomanageESX4.0andlatersystems.Usethecommandsintheesxcli softwarenamespacetoinstall,update,remove,ordisplayindividualVIBs(softwarepackages).Use commandsintheesxcli software sourcesnamespacetoquerydepotcontentsforVIBsandimageprofiles. AnimageprofiledefinesanESXiimageandconsistsofVIBs.
VMware, Inc.
29
vicfg-snmp InvSphere5,youcanusethevicfg-snmpcommandtomanagetheESXiSNMPagent.InvSphere5.1,the esxcli system snmpnamespacehascorrespondingcommands. vmkfstools vmkfstoolsissupportedintheESXiShellandasavCLIcommand.SomedifferencesexistbetweentheESXi Shellvmkfstoolscommandandthevmkfstools.plvCLIcommand. NoequivalentESXCLIcommandexists. vmware-cmd Thevmware-cmdcommandisincludedinthevCLIpackage,butisnotavailableintheESXiShell. vm-support Thevm-supportcommandisavailableintheESXiShell.ThecommandisnotincludedinthevCLIpackage. IMPORTANTThevSphereClientnowsupportsalloptionstovm-support.IfyoucannotusethevSphere ClienttoaccessyourESXisystem,youcanusethevm-supportcommand.
If you have comments about this documentation, submit your feedback to: docfeedback@vmware.com VMware, Inc. 3401 Hillview Ave., Palo Alto, CA 94304 www.vmware.com Copyright 20102012 VMware, Inc. All rights reserved. This product is protected by U.S. and international copyright and intellectual property laws. VMware products are covered by one or more patents listed at http://www.vmware.com/go/patents. VMware is a registered trademark or trademark of VMware, Inc. in the United States and/or other jurisdictions. All other marks and names mentioned herein may be trademarks of their respective companies. Item: EN-000888-00
30