PowerCLI: Export VM Guest Logs files to Local Computer

Tuesday, March 14, 2017

Last week I needed to export vmware.log files. In the normal way you can read using putty client or download log using Datastore Browser. But you also can download logs using PowerCLI. to do it, we using cmdlet Copy-DatastoreItem  cmdlet Syntax: Copy-DatastoreItem <Object> <Object>]   To find the location of a virtual machine run this script: get-vm MyVirtualMachine| Get-Datastore |Select name   Connect to Datastore using New-PSDrive cmdlet and change location to VM folder using Set-Location cmdlet. New-PSDrive -Location $datastore -Name ds -PSProvider VimDatastore -Root "\" Set-Location ds:\ cd $vm To display list log files, simple run ls *.log       At this point we can begin copy files from Datastore to local computer: Copy-DatastoreItem -Item *.log -Destination...
no comments

vSphere HTML5 Web Client – #h5client

Wednesday, April 20, 2016

vSphere HTML5 Web Client Summary The vSphere HTML5 Web Client v1.2 (Apr 19, 2016) is here! It is written using HTML5 and Javascript, and VMware Flings are looking forward to you trying it in your environment and hearing your feedback! First things first-- this Fling is not fully complete !   VMware Flings wanted to get it in front of customers as soon as possible, and so VMware Flings are only offering the following features for the time being (we feel that these are the most commonly used actions/views): VM Power Operations (common cases) VM Edit Settings (simple CPU, Memory, Disk changes) VM Console VM and Host Summary pages VM Migration...
no comments

VMware Product Build Numbers to Update Levels

Thursday, March 31, 2016

  VMware Product Build Numbers to Update Levels In the next table you can find build numbers and release dates of VMware products source = vmware.KB.1014508  Version Release Date Build Number Installer Build Number Converter Standalone 6.0 2015-05-14 2716716 N/A Converter Standalone 5.5.3 2014-10-09 2183569 N/A Converter Standalone 5.5.2 2014-07-24 1890136 N/A Converter Standalone 5.5 2013-10-22 1362012 N/A Converter Standalone 5.1 2013-04-24 1087880 N/A Converter Standalone 5.0.1 2012-10-25 875114 N/A Converter Standalone 5.0 2011-08-31 470252 N/A Converter Standalone 4.3 2010-08-30 292238 N/A Converter Enterprise 4.2.0 (VC 4.1) 2010-07-13 254483 N/A Converter Enterprise 4.1.1 (VC 4.0) 2009-05-21 206170 N/A Converter Standalone 4.0.1 2009-05-21 161434 N/A Converter Standalone 4.0 2009-02-12 146302 N/A Converter Standalone 3.0 2008-01-12 89816 N/A ESXi 6.0 Update 2 2016-03-16 3620759 N/A ESXi 6.0 Express Patch 5 2016-02-23 3568940 N/A ESXi 6.0 Update 1b 2016-01-07 3380124 N/A ESXi 6.0 Express Patch 4 2015-11-25 3247720 N/A ESXi 6.0 U1a (Express Patch 3) 2015-10-06 3073146 N/A ESXi 6.0 U1 2015-09-10 3029758 N/A ESXi 6.0.0b 2015-07-07 2809209 N/A ESXi 6.0 Express Patch 2 2015-05-14 2715440 N/A ESXi 6.0 Express Patch 1 2015-04-09 2615704 2615979 ESXi 6.0 GA 2015-03-12 2494585 N/A ESXi 5.5 Express Patch 10 2016-02-22 3568722 N/A ESXi 5.5 Express Patch 9 2016-01-04 3343343 N/A ESXi 5.5 Update...
no comments

PoweCLI: Get HBA WWN VMHosts Using PowerCLI

Monday, November 9, 2015

How to find VMware host bus adapter (HBA) World Wide Name (WWN) using PowerCLI Get HBA WWN Using PowerCLI So you need to find HBA WWN address, Here one-line Powercli script: Get-VMhost | Get-VMHostHBA -Type FibreChannel | Select VMHost,Device,@{N="WWN";E={"{0:X}" -f $_.PortWorldWideName}}       
no comments

Upgrade VMware Tools during power cycling

Wednesday, April 8, 2015

Upgrade VMware Tools during power cycling One of Sysadmin task in VM environment is to keep VMware Tools. VMware recommends that administrators keep up to date with the latest updates to proactively avoid problems, resolve bugs, reduce downtime, and close security vulnerabilities.   The regular procedure is open console, click VM, Guest,  "Install/Upgrade VMware Tools".  install from CD/DVD on the VM and reboot .   Other way is via PowerCLI using "update-Tools" command. Update-Tools -VM "VM_NAME" You can set  "Check and upgrade tools during power cycling" so every power cycling VM check and auto upgrade VMware tools. How to set this option? Right click on relevant VM, select "Edit Setting...",...
no comments

PowerCLI: Get all Power-off VMs

Sunday, May 4, 2014

How to: Get all Power-off VMs by using PowerCLI. This Guide will guide you how to detect all Power-off VMs (vmware). Some time we put VM in power off mode and never touch them any more, after some month we wave a list of VMs in POwer-off mode,   There's nothing wrong, but if the space shortage begins to form we will have to delete the irrelevant.   We can identify by looking in vSphere client, #Blue icon - Power Off #Green icon - Power On   At Situation we want to get more information, such as disk size of each server, we going to using PowerCLI script: Code: Get-VM | where...
no comments

Free ebook: Microsoft System Center: Network Virtualization and Cloud Computing

Tuesday, March 25, 2014

Free ebook: Introducing Microsoft System Center 2012 R2 This brief book identifies some key usage and deployment scenarios for cloud computing to provide some deep technical background on the Microsoft SDN solution, enabling IT professionals to quickly learn the internals of HNV, how it works from end to end, and where and how it should be used. As businesses move more toward cloud computing, one important factor for success is adopting multi-tenant software-defined networking (SDN) solutions in data centers. Hyper-V Network Virtualization (HNV) is a key enabler for a multi-tenant SDN solution and is essential for implementing a hybrid cloud environment where tenants...
no comments

VMware PowerCLI – Get NTP Setting

Tuesday, February 25, 2014

How To: Get Hosts NTP Setting via PowerCLIIf you need info about NTP setting in you ESXs servers, here a nice PowerCLI script.Code:Get-VMHost |Sort Name|Select Name, @{N=“NTPServer“;E={$_ |Get-VMHostNtpServer}}, @{N=“ServiceRunning“;E={(Get-VmHostService -VMHost $_ |Where-Object {$_.key-eq “ntpd“}).Running}}to export to csv file you need to add |Expor-csv x:\FileName.csvCode:Get-VMHost |Sort Name|Select Name, @{N=“NTPServer“;E={$_ |Get-VMHostNtpServer}}, @{N=“ServiceRunning“;E={(Get-VmHostService -VMHost $_ |Where-Object {$_.key-eq “ntpd“}).Running}} | Export-Csv c:\VM_Report\NTP.csvIf you need to view only temporary, simple add | Out-GridViewCode:Get-VMHost |Sort Name|Select Name, @{N=“NTPServer“;E={$_ |Get-VMHostNtpServer}}, @{N=“ServiceRunning“;E={(Get-VmHostService -VMHost $_ |Where-Object {$_.key-eq “ntpd“}).Running}} | Out-GridViewand nice trick - to copy all result script just add | clip¹ and then open your favorite editor...

Linux Integration Services Version 3.5 for Hyper-V

Tuesday, December 24, 2013

Linux Integration Services Version 3.5 for Hyper-V A set of drivers that enable synthetic device support in supported Linux virtual machines under Hyper-V. Microsoft has released version 3.5 of the Hyper-V integration components for Linux.  This download is intended for versions of Linux that do not have the Linux Integration Services (LIS) for Hyper-V already installed in the kernel.   Version 3.5 of the LIS supports: Red Hat Enterprise Linux (RHEL) 5.5-5.8, 6.0-6.3 x86 and x64 CentOS 5.5-5.8, 6.0-6.3 x86 and x64 Supported Virtualization Server Operating Systems This version of Linux Integration Services (LIS) supports the following versions of Hyper-V: Windows Server 2008 R2 Standard, Windows Server 2008...