New release: PowerCLI 6.3 R1–Download it today!
Get it here.........
PowerCLI 6.3 R1 introduces the following new features and improvements:
Get-VM is now faster than ever!
imageThe Get-VM Cmdlet has been optimized and refactored to ensure maximum speed when returning larger numbers of virtual machine information. This was a request which we heard time and time again, when you start working in larger environments with thousands of VMs the most used cmdlet is Get-VM so making this faster means this will increase the speed of reporting and automation for all scripts using Get-VM. Stay tuned for a future post where we will be showing some figures from our test environment but believe me, its fast!
New-ContentLibrary access
imageNew in this release we have introduced a new cmdlet for working with Content Library items, the Get-ContentLibraryItem cmdlet will list all content library items from all content libraries available to the connection. This will give you details and set you up for deploying in our next new feature….
The New-VM Cmdlet has been updated to allow for the deployment of items located in a Content Library. Use the new –ContentLibrary parameter with a content library item to deploy these from local and subscribed library items, a quick sample of this can be seen below:
$CLItem = Get-ContentLibraryItem TTYLinux
New-VM -Name “NewCLItem” -ContentLibraryItem $CLItem -Datastore datastore1 -VMHost 10.160.74.38
Or even simpler….
Get-ContentLibraryItem -Name TTYLinux | New-VM -Datastore datastore1 -VMHost 10.160.74.38
ESXCLI is now easier to use
Another great feature which has been added has again come from our community and users who have told us what is hard about our current version, the Get-Esxcli cmdlet has now been updated with a –V2 parameter which supports specifying method arguments by name.
The original Get-ESXCLI cmdlet (without -v2) passes arguments by position and can cause scripts to not work when working with multiple ESXi versions or using scripts written against specific ESXi versions.
A simple example of using the previous version is as follows:
$esxcli = Get-ESXCLI -VMHost (Get-VMhost | Select -first 1)
$esxcli.network.diag.ping(2,$null,$null,“10.0.0.8”,$null,$null,$null,$null,$null,$null,$null,$null,$null)
Notice all the $nulls ? Now check out the V2 version:
$esxcli2 = Get-ESXCLI -VMHost (Get-VMhost | Select -first 1) -V2
$arguments = $esxcli2.network.diag.ping.CreateArgs()
$arguments.count = 2
$arguments.host = “10.0.0.8”
$esxcli2.network.diag.ping.Invoke($arguments)
Get-View, better than ever
imageFor the more advanced users out there, those who constantly use the Get-View Cmdlet you will be pleased to know that a small but handy change has been made to the cmldet to enable it to auto-complete all available view objects in the Get-View –ViewType parameter, this will ease in the use of this cmdlet and enable even faster creation of scripts using this cmdlet.
Updated Support
As well as the great enhancements to the product listed above we have also updated the product to make sure it has now been fully tested and works with Windows 10 and PowerShell v5, this enables the latest versions and features of PowerShell to be used with PowerCLI.
PowerCLI has also been updated to now support vCloud Director 8.0 and vRealize Operations Manager 6.2 ensuring you can also work with the latest VMware products.
Tuesday, May 17, 2016
vCenter Web access
For vCenter standalone web management:
https://10.240.212.224:5480/login.html
For vSphere Web Client:
https://10.240.212.224/vsphere-client
Monday, May 16, 2016
vSphere esxcfg-xxx VS vicfg-xxx commands
For many of the vCLI commands, you might have used scripts with corresponding service console commands starting with an esxcfg prefix to manage ESX 3.x hosts. To facilitate easy migration from ESX/ESXi 3.x to later versions of ESXi, a copy of each vicfg- command that uses an esxcfg- prefix is included in the vCLI package.
Important VMware recommends that you use the vCLI commands with the vicfg prefix. Commands with the esxcfg prefix are available mainly for compatibility reasons and might become obsolete.
vCLI esxcfg- commands are equivalent to vicfg- commands, but not completely equivalent to the deprecated esxcfg- service console commands.
|
Commands with an esxcfg Prefix lists all vCLI commands for which a vCLI command with an esxcfgprefix is available.
vicfg-advcfg
|
esxcfg-advcfg
|
vicfg-cfgbackup
|
esxcfg-cfgbackup
|
vicfg-dns
|
esxcfg-dns
|
vicfg-dumppart
|
esxcfg-dumppart
|
vicfg-module
|
esxcfg-module
|
vicfg-mpath
|
esxcfg-mpath
|
vicfg-nas
|
esxcfg-nas
|
vicfg-nics
|
esxcfg-nics
|
vicfg-ntp
|
esxcfg-ntp
|
vicfg-rescan
|
esxcfg-rescan
|
vicfg-route
|
esxcfg-route
|
vicfg-scsidevs
|
esxcfg-scsidevs
|
vicfg-snmp
|
esxcfg-snmp
|
vicfg-syslog
|
esxcfg-syslog
|
vicfg-vmknic
|
esxcfg-vmknic
|
vicfg-volume
| |
vicfg-vswitch
|
esxcfg-vswitch
|
vifpinit: command not found in vMA 6
vifptarget replaced vifpinit as of vMA 4.1, if you're using ESXi 6, upgrade vMA.
The vifptarget command enables seamless authentication for remote vSphere CLI and vSphere SDK for Perl commands.You can establish multiple servers as target servers, and then call vifptarget once to initialize all servers for vi-fastpass authentication. You can then run commands against any target server without additional authentication. You can use the --server option to specify the server to run commands on.The vMA prompt displays the current default execution server. If you remove that default server, the server name is removed from the prompt but the vi-fastpass environment is not cleared and the vCLI commands can still run seamlessly against all the targets.While hosts remain target servers across vMA reboots, you must run vifptarget after each logout to enable vi-fastpass for vSphere CLI and vSphere SDK for Perl commands.
set display clear help vifptarget --set | -s <server>vifptarget --display | -dvifptarget --clear | -c
When powering on a VMA template- Cannot initialize property ‘vami.netmask0.vSphere_Management_Assistant…has no associated network protocol profile.
When powering on the VMA template error appears:
This is caused by not having created an IP Pool for your vAPPS. What is an IP Pool you say? Here is an explanation from the vSphere 5.1 online documentation:
IP pools provide a network identity to vApps. An IP pool is a network configuration that is assigned to a network used by a vApp. The vApp can then leverage vCenter Server to automatically provide an IP configuration to its virtual machines.
You’ll have to configure an IP Pool in order to get your template powered on. Click on the Datacenter in vSphere client. There is a new tab called IP Pools, click on it to configure a pool.
Click Add. The New IP Pools Properties box appears. Give the pool a name. Depending on which version of IP you’re using, click on the corresponding tab.
Enter the subnet and gateway information as it pertains to your environment. Enable IP pool and you may or may not have to depending on your environment. Click on the DNS tab and configure DNS as needed. Go through the other tabs and configure them as they apply. Since I’m only using IPv4 without DHCP, it requires limited config. Click OK when you’re finish.
You should now be able to power on your VMA template.
Friday, May 6, 2016
Updating ESXi 6 Hypervisor to ESXi 6 U2
- Download
update-from-esxi6.0-6.0_update02.zip, upload to ESXi using Datastore Browser. (Search for latest update here with your VMWare account. https://my.vmware.com/group/vmware/patch#search)
- use PuTTY to SSH in and type this install command: (determine the volume name with df command)
esxcli software vib install -d /vmfs/volumes/Esxi1-Datastore/update-from-esxi6.0-6.0_update02.zip
Substituting the "Esxi1-Datastore" part with the full path to your .zip file. Tab/type-ahead is your friend!
4. After the patch install , ESXi host will reboot automatically. If not manually issue the reboot or poweroff command.Updating vCenter 6.0 to 6.0 U2
vCenter server appliance management interface:
- Open the management vCenter Virtual Appliance web interface on port 5480. (https://<ip of vCSA>:5480/Login.html)
- Log on as root with your password.
- In the Update tab, click Settings.
- Select Use Specified Repository.
- For the Repository URL, enter the URL of the repository you created. For example, if the repository directory is vc_update_repo, the URL should be similar to the following URL: http://web_server_name.your_company.com/vc_update_repo
- Click OK.
- Click Check Updates.
- Click Check URL.
- Under Available Updates, click Install Updates.
- Based on your requirement, select from the following options:
- Install all updates.
- Install third-party updates.
Command line interface:
- Access the appliance shell and log in as a user who has a super administrator (default root) role.
- To stage the patches included in a repository URL: software-packages stage –url http://web_server_name.your_company.com/vc_update_repo
- Install staged patches: software-packages install –staged
- To reboot after patching if needed: reboot -r “patch reboot”
Subscribe to:
Posts (Atom)








