作者:empty 页数:172 出版社:empty |
About This BookIntended Audienceo Sphere Commi and d-Line Interface Concepts and Examples explains howto use the commands in the VMwarevSphere Command-Line Interface(vCL I) and incudes command overviews and examplesThis book is for experienced Wn dows or Linux system admin i trators who are familiar with vSphereadministration tasks and datacenter operations and know howto use commands in scripts.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, goto
GettingStarted wi hoSp her c Command-Line Interfaces includes information about available CL Is, en a bingthe ESX iS hell, as well as instal ng and running y CLI and DCL I commands.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,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,
vSphere Command-Line Imer face Concepts and L xamplesThis chapter introduces the command set, presents supported commands fordf ferent versions of vSphere,lists connection options, and discusses vCL land lockdown mode.This chapter in chu des the following topics:The commands in the vSphere CLI package allow you to perform vSphere conf guration tasks usingcommands from vCL I package installed on supported platforms, or using commands from vMA.Thepackage consists of several command sets.The following table lists the components of the vSphere CLI command setYou can install the vSphere CLI command set on a supported Linux or Wind uws system.See Getting Stu z tedautite5phereCommaara-Line Interfaces.You can also deploy the vSphere Management Assistant(vMA) to anManage E5XihostswithothervCLI commands by specifying connect ian options such as the targetYou can find information about different aspects of vCL I in separate publications.Get tgStartalwthuSphereCemu an-Line Inte faces includes information about available CLs, en a big theESX iS hell, and installing and running vCL I commandsReference information for yCL land DCL I commands is available on the vCL I documentation pageAvailable command-line help differs for the different command sets.
vM war .Inc
Abut This Bk 9
v Sphere CLI Cmmand verviews 11
Intrductin 11
List f Available Hst Management Cmmands 13
2 Managing Hsts 21
Dcumentatin 12
Cmmand-Line Help 12
Targets and Prtcls fr vCL I Hst Management Cmmands 15
Supprted Platfrms fr vCL I Cmmands 15
Cmmands with an esx cfg Prefix 16
ESX CLI Cmmands Available n Different ESX i Hsts 17
Trust Relatinship Requirement fr ESX CLI Cmmands 17
Dwnlad and Install the v Center Server Cert fi cate 17
Using the-ca certs file ptin 18
Using the-thumbprint ptin 18
Use the Credential Stre 18
Using ESX CLI utput 19
Cnnectin ptins fr vCL I Hst Management Cmmands 19
Cnnectin ptins frD CLI Cmmands 19
vCL I Hst Management Cmmands and Lckdwn Mde 19
Stpping, Rebting, and Examining Hsts 21
Stpping and Rebting Hsts with ESX CLI 21
Stpping, Rebting, and Examining Hsts with vic f ghst ps 22
Entering and Exiting Maintenance Mde 22
Enter and Exit Maintenance Mde with ESX CLI 22
Enter and Exit Maintenance Mde with vic fg-hst ps 23
Backing Up Cnfiguratin Infrmatin with vic fg cfg backup 24
Backup Tasks 24
Backing Up Cnfiguratin Data 24
Restre Cnfiguratin Data 24
Using vic fg-cfg backup frm vMA 25
Managing VMk emel Mdules 25
Manage Mdules with esx cli system mdule 25
Manage Mdules with vic fg-mdule 26
Using vic fg authcnfig fr Active Directry Cnfiguratin 26
Prepare ESX i Hst fr Active Directry Integratin 26
SetUp Active Directry t Wrk with ESX i 27
Updating Hsts 27
Intrductin t Virtual Machine File Management 29
Managing the Virtual Machine FileSystem with v mkfs tls 30
Upgrading VMFS3VlumestVMFS 531
Managing V MFS Vlumes 31
Managing Duplicate V MFS Data stres 32
Munting Data stres with Existing Signatures 32
Resign a turing V MFS Cpies 33
Reclaiming Unused Strage Space 34
Us ngv ifs t View and Manipulate Files n Remte ESX i Hsts 35
v ifs ptins 36
v ifs Examples 37
Intrductin t Strage42
Hw Virtual Machines Access Strage 42
Data stres 44
Strage Device Naming 44
Examining LUNs 45
Target and Device Representatin 45
Examining LUNs with esx cli strage cre 46
Examining LUNs with vic fg-scsi devs 47
Detach a Device and Remve aLUN 48
Reattach a Device 49
Wrking with Permanent Device Lss 49
Remving aPD LLUN 49
Reattach aPD LLUN 49
Managing Paths 50
Multipathing with La cal Strage and FC SANs 50
Listing Path Infrmatin 51
Changing the State f a Path 53
Managing Path Plicies 54
Multipathing Cnsideratins 54
Changing Path Plicies 55
Set Plicy Details fr Devices that Use Rund Rbin 56
Sched uing Queues fr Virtual Machine I/ 57
Managing NFS/NAS Data stres 57
Capabilities Supprted by NFS/NAS 57
Adding and Deleting NAS FileSystems 58
Mnitr and Manage FibreChannel SAN Strage 59
Mnitring and Managing Virtual SAN Strage 60
Retrieve Virtual SAN Infrmatin 60
Manage a Virtual SAN Cluster 60
Add and Remve Virtual SAN Strage 61
Mnitring v Sphere Flash Read Cache 62
Mnitring and Managing Virtual Vlumes 62
Migrating Virtual Machines with sv mtin 63
Strage v Mtin Uses 63
Strage v Mtin Requirements and Limitatins 63
v Sphere Cmmand-Line Imer face Cncep sand Examples
3 Managing Files 29
4 Managing Strage 41
Running sv mtin in Interactive Mde 64
Running sv mtin in Nninteractive Mde 64
Cnfiguring F CE Adapters 65
Scanning Strage Adapters 66
Retrieving SMART Infrmatin 66
iSCSI Strage verview 69
Discvery Sessins 7D
Discvery Target Names 71
Prtecting an iSCSI SAN 71
Prtecting Transmitted Data 71
Securing iSCSI Prts 72
Seting iSCSI CHAP 72
Cmmand Syntax fr esxeliisesiandvicfg-iscsi 73
esx cli iscsi Cmmand Syntax 74
Key t esx eli is esi Shrt ptins 74
vic fg-iscsi Cmmand Syntax 75
iSCSI Strage Setup with EsX CLI 78
SetUp Sftware iSCSI with ESX CLI 78
SetUp Dependent Hardware iSCSI with ESXCLI8D
SetUp Independent Hardware iSCSI with ESX CLI 82
iS CSl Strage Setup with vic fg-iscsi 84
SetUp Sftware iSCSI with vic fg-iscsi 85
SetUp Dependent Hardware iSCSI with vic fg-is cs 86
SetUp Independent Hardware iSCSI with vic fg-iscsi 87
Listing and Setting iSCSI ptins 89
Listing iSCSI ptins with ESX CLI 89
Setting MTUwithE5XCLI 89
Listing and Setting iSCSI ptins with vic fg-iscsi 89
Listing and Setting iSCSI Parameters 90
Listing and Setting iSCSI Parameters with ESX CLI 90
Re tum ning Parameters t Default Inheritance with ESX CLI 92
Listing and Setting iSCSI Parameters with vic fg-iscsi 92
Re tum ning Parameters t Default Inheritance with vic fg-iscsi 94
EnabligiSCSIAuthentatn 94
Enable iSCSI Authenticatin with ESX CLI 94
Enable Mutual iSCSI Authenticatin with ESX CLI 95
Enable iSCSI Authenticatin with vic fg-is esi 96
SetUp Prts fr iSCSI Multipathing 97
Managing iSCSI Sessins 98
Intrductin t iSCSI Sessin Management 98
Listing iSCSI Sessins 98
Lgging int iSCSI Sessins 99
Remving iSCSI Sessins 99
Managing NMP with esx cli strage nmp 101
Device Management with esx cli strage nmp device 102
Listing Paths with esx ci strage nmp path 102
5Managingi5CSI Strage 69
VMware, Inc
v Sphere Cmmand-Line Imer face Cncepts and Examples
6 Managing Third-Party Strage Arrays 101
7Managig Users 115
8 Managing Virtual Machines 121
9 Managing v Sphere Netwrking 129
Managing Path Selectin Plicy Plug-Ins with esx cli strage nmp psp 103
Fixed Path Selectin Plicy peratins 104
Custmizing Rund Rbin Setup 105
Managing SAT Ps 106
Path Claiming with esx dli strage cre claiming 108
Using the Reclaim Trubleshting Cmmand 109
Und aiming Paths r Sets f Paths 109
Managing Claim Rules 110
Change the Current Claim Rules in the VM kernel 110
Adding Claim Rules 111
Remving Claim Rules 112
Listing Claim Rules 113
Lading Claim Rules 113
Mving Claim Rules 113
Lad and Apply Path Claim Rules 113
Running Path Claim Rules 114
Users in they Sphere Envirnment 115
vic fg-user Cmmand Syntax 116
ManagingUsers with vic fg-user 116
Assigning Permissins with ESX CLI 118
vmware-cmd verview 121
Cnnectin ptins fr ym ware-cmd 122
General ptins fr vmware-cmd 122
Frmat fr Specifying Virtual Machines 122
List and Register Virtual Machines 123
Retrieving Virtual Machine Attributes 123
Managing Virtual Machine Snapshts with vmware-cmd 125
Take a Virtual Machine Snapsht 125
Reverting and Remving Snapshts 126
Pwering Virtual Machines n and ff 126
Cnnecting and Discnnecting Virtual Devices 127
Wrking with the Answer V MAP I 128
Frcibly Stp a Virtual Machine with ESX CLI 128
Intrductin t v Sphere Netwrking 129
Netwrking Using v Sphere Standard Switches 130
Netwrking Using v Sphere Distributed Switches 131
Retrieving Basic Netwrking In fur matin 132
Trublesht a Netwrking Setup 132
Setting Up Virtual Switches and Assciating a Switch with a Netwrk Interface 134
Retrieving Infrmatin Abut Virtual Switches 135
Adding and Deleting Virtual Switches 136
Checking, Adding, and Remving Prt Grups 137
Managing Up links and Prt Grups 138
Setting the Prt Grup VLAN ID 139
Managing Uplink Adapters 140
Adding and Mdifying VM kernel Netwrk Interfaces 143
Setting Up v Sphere Netwrking with v Sphere Distributed Switch 146
Managing Standard Netwrking Services in the v Sphere Envirnment 147
Setting the DNS Cnfiguratin 147
Setting the DNS Cnfiguratin with E