6.0
Table Of Contents
- Getting Started with vSphere Command-Line Interfaces
- Contents
- About This Book
- Managing vSphere with Command-Line Interfaces
- Installing vCLI
- Running Host Management Commands in the ESXi Shell
- Running vCLI Host Management Commands
- Overview of Running vCLI Host Management Commands
- Protecting Passwords
- Authenticating Through vCenter Server and vCenter Single Sign-On
- Authenticating Directly to the Host
- Trust Relationship Requirement for ESXCLI Commands
- Common Options for vCLI Host Management Command Execution
- Using vCLI Commands in Scripts
- Running Host Management Commands from a Windows System
- Running Host Management Commands from a Linux System
- Running DCLI Commands
- Index
Getting Started with vSphere Command-Line Interfaces
20 VMware, Inc.
Installing the vCLI Package on a Linux System with Internet Access
InstallthevCLIpackageandrunacommandtoverifyinstallationwassuccessful.
To install vCLI
1Loginasroot.
2UntarthevCLIbinarythatyoudownloaded.
tar –zxvf VMware-vSphere-CLI-6.X.X-XXXXX.i386.tar.gz
Avmware-vsphere-vcli-distribdirectoryiscreated.
3 (Optional)IfyourserverusesaproxytoaccesstheInternet,andifyourhttp://andftp://proxywere
notsetwhenyouinstalledprerequisitesoftware,setthemnow.
export http_proxy=<proxy_server>:port
export ftp_proxy=<proxy_server>:port
4Runtheinstaller:
sudo vmware-vsphere-cli-distrib/vmware-install.pl
5Toacceptthelicenseterms,typeyesandpressEnter.
TheinstallerconnectstoCPANandinstallsprerequisitesoftware.Establishingaconnectionmighttakea
longtime.
6OnRHEL,whenpromptedtoinstallprecompiledPerlmodules,typenoandpressEntertouseCPAN
TheinstallerconnectstoCPANandinstallsprerequisitesoftware.Establishingaconnectionmighttakea
longtime.
7Specifyaninstallationdirectory,orpressEntertoacceptthedefault,whichis/usr/bin.
Table 2-1. Installing Required Prerequisite Software
Platform Installation
RHEL6.332bit FindtherequiredmodulesontheinstallationDVD,oruseyumtoinstallthem.
yum install e2fsprogs-devel libuuid-devel
yum install perl-XML-LibXML
RHEL6.364bit FindtherequiredmodulesontheinstallationDVD,oruseyumtoinstallthem.
yum install e2fsprogs-devel libuuid-devel
yum install glibc.i686
yum install perl-XML-LibXML
SUSEEnterprise InstalltheprerequisitepackagesfromtheSLESSDKDVD.WhenyouinserttheDVD,itoffersto
autorun.CanceltheautorundialogboxandusetheyastpackageinstallertoinstallOpenSSLor
othermissingrequiredpackages.
SLES1164bit.yast -i openssl-devel libuuid-devel libuuid-devel-32bit
SLES1132bit.yast -i openssl-devel libuuid-devel
SomeusersmightbeauthorizedtousetheNovellCustomerCenteranduseyasttoretrieve
missingpackagesfromthere.
Ubuntu 1.ConnecttotheInternet.
2.Updatethelocalrepositoryoflibrariesfromaterminalwindow.
sudo apt-get update
3.Installtherequiredlibrariesfromaterminalwindow.
32bit.sudo apt-get install build-essential gcc uuid uuid-dev perl libssl-dev
perl-doc liburi-perl libxml-libxml-perl libcrypt-ssleay-perl
64bit.sudo apt-get install ia32-libs build-essential gcc uuid uuid-dev perl
libssl-dev perl-doc liburi-perl libxml-libxml-perl libcrypt-ssleay-perl
ForUbuntu10.0464bit,theresxtopand
ESXCLIcommandsdonotworkifyoudonotinstall
the32‐bitcompatibilitylibraries.