The vCLI is the vSphere command line interface which was rebranded from the RCLI with the release of vSphere. The vCLI are a set of Perl scripts that provides a similar interface to some of the well known esxcfg-* commands that are found within the classic ESX with the Service Console. These scripts utilize's the vSphere API and specifically the vSphere SDK for Perl bindings to allows administrators to remotely manage and configure both ESX and ESXi. vCLI is officially supported on Windows and Linux OSes, but some users have gotten it to work on Solaris and MAC OSX.
Here are some new/updated utilities included with the release of the vCLI 4.0
System Management
vicfg-advcfg / esxcfg-advcfg
vicfg-module / esxcfg-module
vihostupdate [for ESX(i) 4.x+]
vihostupdate35 [for ESX(i) 3.5]
vmkuptime
This was never implemented in VIMA 1.0 and looks like it's been removed in vMA 4.0
Network Management
vicfg-route / esxcfg-route
vicfg-vmknic / esxcfg-vmknic
vicfg-vswitch / esxcfg-vswitch
Storage Management
esxcli (Take a look at Duncan Epping's post for more information)
vicfg-iscsi / esxcfg-iscsi
vicfg-mpath / esxcfg-mpath
vicfg-nas / esxcfg-nas
vicfg-vmhbadevs / esxcfg-vmhbadevs
vicfg-volume / esxcfg-volume (Take a look at Duncan Epping's post for more information
Here are some awesome examples and usage of the RCLI commands by Dave Mischenko
System Management
vicfg-advcfg.pl / esxcfg-advcfg.pl Sets and query advanced configuration options
vicfg-cfgbackup.pl / esxcfg-cfgbackup.pl Backup and restore the configuration of your ESX 3i host
vicfg-dumppart.pl / esxcfg-dumppart.pl Used to set and configure the host dump partition
vicfg-module.pl / esxcfg-module.pl View and set the option string sent to modules when they are load by the VMkernel
vicfg-ntp.pl / esxcfg-ntp.pl Add / remove NTP servers
vicfg-syslog.pl / esxcfg-syslog.pl Configure syslog setting
vicfg-user.pl / esxcfg-user.pl Manage local users and groups
vihostupdate.pl Apply patches to your ESX 3i host
vmkuptime.pl Not implemented at this timeNetwork Management
vicfg-dns.pl / esxcfg-dns.pl Configure the host name and domain name for your ESX 3i host
vicfg-nics.pl / esxcfg-nics.pl Configure host NIC duplex and speed
vicfg-route.pl / esxcfg-route.pl Set the default gateway for the VMkernel IP stack
vicfg-snmp.pl / esxcfg-snmp.pl Configure SNMP community and trap settings for SNMP traps
vicfg-vmknic.pl / esxcfg-vmknic.pl Used to manage VMkernel port groups
vicfg-vswitch.pl / esxcfg-vswitch.pl Used to manage virtual switches and port groupsStorage Management
vicfg-mpath.pl / esxcfg-mpath.pl Manage multipath setting for iSCSI and Fibre Channel LUNs
vicfg-nas.pl / esxcfg-nas.pl Used to managed NFS datastores
vicfg-rescan.pl / esxcfg-rescan.pl Rescan an HBA for LUN changes
vicfg-vmhbadevs.pl / esxcfg-vmhbadevs.pl Display available LUNsFile/Datastore Management
vifs.pl Copy files to and from your ESXi host
vmkfstools.pl - Create, manipulate and manage files stored in VMFS volumes









can i see security profile using vCLI?
ReplyDelete@Manu,
ReplyDeleteThere are no canned VMware vCLI scripts to access the "Security Profile" or Services, but it is available through the vSphere SDK for Perl using the vSphere APIs which is what the vCLI is written in.
Here is an vSphere SDK for Perl script that allows you to manipulate the services running on an ESXi host - http://communities.vmware.com/docs/DOC-11656
You should also take a look at the vGhetto Script Repository for other useful scripts that aren't available out of the box from VMware - http://communities.vmware.com/docs/DOC-9852
Thanks William.
ReplyDeleteGreat article.
ReplyDelete