your home for end-user virtualization!

PowerCLI

Automating the Cisco UCS build using Cisco PowerTool

After installing Cisco UCS and performing the initial setup of the UCS Fabric Interconnects; there is a lot of work that needs to be completed prior to configuring the blade Service Profiles.

This can be done a multitude of ways, manually through UCSM, scripted through SSH or now through PowerShell using Cisco PowerTool.… Read the rest

Tags: , , , , , , , , ,

Posted in Cisco, Cisco UCS, Cloud, Powershell, PowerTool, Virtualization | 2 Comments »

Configure Syslog on ESXi using PowerShell and PowerCLI

Using powershell, I was able to configure all the hosts in my vCenter instance

First, I needed to configure the syslog host

get-vmhost| Set-VMHostAdvancedConfiguration -NameValue @{'Config.HostAgent.log.level'='info';'Vpx.Vpxa.config.log.level'='info';'Syslog.global.logHost'='udp://IPADDDR:514'}

I then needed to open the appropriate firewall ports for the traffic to get through

get-vmhost| Get-VMHostFirewallException |?{$_.Name -eq 'syslog'} | Set-VMHostFirewallException -Enabled:$true

On the C220 M3′s, we had to re-create vSwitch0 due to it using the legacy incorrect MAC (from the step above).… Read the rest

Tags: , , ,

Posted in PowerCLI, Powershell, vmware | No Comments »

Update the DNS Suffix on your cluster of ESX hosts using PowerCLI

Using PowerCLI, you can quickly update the DNS Suffix on the hosts in your cluster using this short one-liner.

get-cluster "LabManager" | get-vmhost | get-vmhostnetwork | set-vmhostnetwork -searchdomain "one.lab.org", "two.lab.org"… Read the rest

Tags: , , ,

Posted in Cloud, PowerCLI, Powershell, vmware | No Comments »

List the vMotion IP Address and Subnet mask for each vSphere ESX host using PowerCLI

I ran into a couple misconfigurations, so I wrote a quick online to audit all of my host configurations without having to use the dreaded host profiles

get-vmhost | % {(get-view $_.id).config.vmotion.ipconfig} | select ipaddress, subnetmask… Read the rest

Tags: , ,

Posted in Cloud, PowerCLI, Powershell, vmware | 1 Comment »

Follow Me!

Visit Us On TwitterVisit Us On FacebookVisit Us On Google PlusVisit Us On YoutubeVisit Us On Linkedin

Categories

Search VMwareAdmins