作者:empty 出版社:empty |
This document supports the version of each product listed andsupports all subsequent versions until the document isreplaced by a new edition.To check for more recent editions ofthis document,seehttp://www.vmware.com/support/pubs.Geting Started wrth vSphere Command-Line InterfacesYou can find the most up-to-date technical documentation on the VMware Website at:http//www.vmware.com/support/The VMware Website also provides the latest pra duct updates,If you have comments about this documentation, submit your feedback to:docfeedbackevmware.comCopy ng ht 2007-2016VMw are, Inc.A lng hts reserved.Copy r ght and trademark information
About This BookIntended AudienceGettingStarted with o Sphere Command-Line Interfaces gives an overview of command-line interfaces invSphere and gets you started with ESX iS hell commands and vCL I(VMware vSphere Command-LineInterface) commands.This book also includes instructions for installing vCL I and a reference to connectionparameters,This book is for experienced Wn dows or Linux system adminstrators who are familiar with vSphereadministration tasks and datacenter operations.VMware Technical Publications provides a glossary of terms that might be unfamiliar to you.For definitionsof terms as they are used in VMware technical documentation, gotohttp//www.vmware.com/support/pubs.The documentation for vCL I is available in the vSphere Documentation Center and on the vCL Idocumentation page.Gotohttp://wwwvmware.com/support/developer/vch,u Sphere Comman-Line Interface Concepts and Examples presents usage examples for many hostVMware Technical Publications GlossaryRelated Documentation
Geting Started with vSphere Command-Line Interfacesmanagement commands, and explains howto setup software and hardware iS CSL add virtualswitches, place hosts in maintenance mode, and soon.The document includes the same example withthe ESX CLI command and with the vic fg-command.e Sphere Command-Line Interface Reference is a reference to both ESX CLI commands and vic fg-commands.The vic fg-command help is generated from the POD available for each command, runpodZ html for any vt cfg-command to generate individual HTML h les interactively The ESX CLIreference information is generated from the ESX CLI help.DCL I Reference is a reference to DCL I commands for managing v Center servicesThe documentation for Power CLI is available in the vSphere Documentation Center and on the Power CLIdocumentation page.The vSphere SDK for Perl documentation explains how you can use the vSphere SDK for Perl and relatedut lity applications to manage your vSphere environmentThe u Sphere Management Assistant Guide explains howto install and use the vSphere Management Assistant(vMA) .vMA is a virtual machine that includes vCL I and other prepackaged software See~DeployingvMA, on page 24.Background information for the tasks discussed in this book is available in the vSphere documentation setThe vSphere documentation consists of the combined VMware v Center Server and ESX i documentation,
Geting Started with vSphere Command-Line InterfacesvSphere supports several command-line interfaces for managing your virtual infrastructure ind luding a setof ESX iS hell commands, Power CLI commands, and DCL I(Datacenter CLI) commands for management ofv Center servi oes.You can run commands locally, from an administration server, or from scriptsYou can choose the CLI best suited for your needs, and write scripts to automate your management tasks.This chapter includes the following topics:vSphere includes commands for managing different aspects of your environment.The following CL Is are available for managing hosts, either directly or through the v Center Server systemthat manages the host You can also manage v Center services by using DCL IFigure 1-1.vSphere CL Is for Host and v Center Services ManagementThe following commands els are avaiable, For more information about each command set, see thereferenced documentation.
Abut This Bk 5
1 Managing v Sphere with Cmmand-Line Interfaces 7
2 Installing vCL I 15
3 Running Hst Management Cmmands in the E5Xi Shell 25
4RunningvCLIHst Management Cmmands 31
verview f v Sphere CmmandLine Interfaces 7
Using ESX CLI fr Hst Management 10
ESX CLI Syntax 10
Running ESX CLI Cmmands Installed as Part f vCL I 11
ESXCLICmmand5upprt When Hst and vCL I Versins D Nt Match 11
Using Pwer CLI t Manage Hss and Virtual Machines 12
Using DCL I t Manage v Center Services 12
DCL I Syntax 13
vCL I Package Cntents I 3
Installatin verview 15
verview f Linux Installatin Prcess 16
Installing the vCL I Package n RedHat Enterprise Linux 18
Installing Required Prereq u site Sftware fr RedHat Enterprise Linux 19
Installing the vCL1PackagenRHEL with N Internet Access 19
Installing vCL ln Linux Systems with Internet Access 20
Installing Prerequisite Sftware fr Linux Systems withIn te met Access 20
Install the vCL I Package n a Linux System withIn tem net Access 22
Uninstall the vCL I Package n Linux 23
Installing and Uninstalling vC LIn Windws 23
Install the vCL I Package n Windws 23
Uninstall the vCL I Package n Windws 24
Enabling Certificate Verificatin 24
Deplying vMA 24
ESX iS hell Access with the Direct Cnsle 25
Enabling Lcal E5Xi Shell Access 26
ESX iS hell Timeut 26
Use the Lcal ESXi5hell 27
Remte ESX iS hell Access with SSH 27
EnableS 5H Access in the Direct Cnsle 27
EnableS SH frm the v Sphere WebClient 27
Access the Remte E5XiShellwith5SH 28
Lckdwn Mde 28
RunanE5XCLI Cmmand in the ESX iS hell 28
verview f Running vCL I Hst Management Cmmands 32
Targeting the Hst Directly 32
Target nga Hst That is Managed by av Center Server System 32
Prtecting Passwrds 32
rder f Precedence fr vCL l Hst Management Cmmands 33
Authenticating Thrugh v Center Server and v Center Single Sign-n 34
Authenticating Directly t the Hst 34
Create and Use a Sessin File 34
Using Envirnment Variables 35
Using a Cnfiguratin File 36
Using Cmmand-Line ptins 36
Using the Micrsft Windws Security Supprt Prvider Interface 37
vCL land Lckdwn Mde 38
Trust Relatinship Requirement fr ESX CLI Cmmands 38
Dwnlad and Install they Center Server Certificate 38
Using the-ca certs file ptin 39
Using the-thumbprint ptin 39
Use the Credential Stre 39
Cmmn ptins fr vCL I Hst Management Cmmand Executin 40
Using vCL I Cmmands in Scripts 42
Run Hst Management Cmmands frm a Windws System 43
Run Hst Management Cmmands frm a Linux System 43
verview f Running DCL I Cmmands 45
DCL I Syntax 46
DCL I ptins 46
Using DCL I Cmmands 48
Displaying Help Infrmatin frD CLI Cmmands 48
Running DCL I Cmmands In eluded in the vCL I Package 48
Running DCL I Cmmands n the v Center Server Appliance 49
Using DCL I with a CredentialS ture File 49
rder f Precedence frD CLI Authenticatin 49
Input, utput, and Return Cdes 50
Using DCL I with Variables 50
Using DCL I Interactive Mde 50
DCL IS SL Cnnectin 51
DCL I Histry File 51
Index 53
Geting Started with v Sphere Cmmand-Line Interfaces
5RunningDCLI Cmmands 45
..............