You are now being logged in using your Facebook credentials

Directory Stats

There are 19069 listings and 299 categories in our website

Search in Title & Description

Website Stats

Listings Hits count
5032478

Over 500'000 hits on listings per month

Learn more

Today2123
Yesterday3819

ScriptingRSS

PowerCLI and other Scripts for Administration and Reporting

Backing up and restoring ESXi configuration using the vSphere Command-Line Interface and vSphere PowerCLI (2042141)

This article provides the steps to back up and restore the configuration of an ESXi host using the vSphere Command-Line Interface (vSphere CLI) and vSphere PowerCLI.

Created
ESX the PowerShell / PowerCLI Way with Get-ESXCli

PowerShell is a terrific command line management tool. Of course, it can only peer into Windows-based systems, and naturally this doesn’t apply to a VMware server. However, PowerCLI offers a cmdlet that will bridge the gap between PowerShell and the VMwar ...
Read More...

Created
Set Default Path Selection Policy (PSP) for a SATP with PowerCLI

Another in my series of scripts to help with vSphere implementations. This script uses the PowerCLI cmdlet Get-EsxCli to execute the esxcli command to set the default PSP policy ($defaultpsp) for the specified SATP ($satp) on each host in connected vCente ...
Read More...

Created
PowerCLI – Reset NTP settings on VMHosts per Cluster

As daylight savings time is almost upon us, there are always questions revolving around what hosts use what NTP sources for time synchronization. To address this issue, I created a script to go through and remove the current NTP sources, add the desired N ...
Read More...

Created
Create a new Datacenter and Add ESXi Hosts with PowerCLI

I just a few days I will have been at my gig at ABS Technology Architects for a year. In that short time I have taken part in multiple new vSphere implementations. To help maintain configuration consistency and to speed up implementations I have written a ...
Read More...

Created
PowerCLI Get VMhost CDP info: get-vmhostcdpinfo

I took a chunk of code written by LucD and wrapped it in a function.  I believe the physical NICs have to belong to a vDS (virtual Distributed Switch) to see CDP info.  Returns an object with these details: VMhost     & ...
Read More...

Created
PowerCLI – One-Liner – Check All VMHosts’ Time (That... Could be a Problem...)

It's everyone's favorite time of year, daylight savings time. If your NTP solution is solid, there's no worries and you've never had to think twice about it. If you're like everyone else, you at least want to run a couple scripts to verify and validate ev ...
Read More...

Created
PowerCLI Rename an ESXi 5.x host (LucD notes)

Another one from the PowerCLI Community. User internetrush1 wanted to know how he could rename an ESXi server through PowerCLI.

Created
PowerCLI: Enabling and Disabling SSH on vSphere hosts

I’m all about running PowerCLI to replace GUI management. Every once in a while there is a requirement to access the ESXCLI on my vSphere hosts, and this is a classic task that is a multi-click process and if you’re using the old 4.x or 5.0/5.1 web client ...
Read More...

Created
PowerCLI Simple Host Time Information (Virtu-Al)

Today I was asked if it was possible to pull certain time information from a VMware Host to ensure all hosts were not only using the same NTP server but also the same timezone and that they have the same time.  Obviously this is something that is ver ...
Read More...

Created
PowerCLI Backup the ESXi configuration and update the status in vCenter

I create a simple PowerCLI script that backups all the ESXi hosts configurations that are connected in a vCenter server and displays the backup status in vCenter. To display the backup status in vCenter I created a global custom attribute called “Last ESX ...
Read More...

Created
HOWTO: Use vSphere PowerCLI to control Get-EsxCLI for setting SNMP on ESXi v5.1U1 hosts

So today I had a need to set SNMP parameters for all ESXi hosts in vCenter.  Easily enough done at the SSH command line:...

Created
PowerCLI Script to Edit ESXi Host NTP Settings

Here's another quick one.  A customer of mine recently had to change their NTP settings across every ESXi host in their environment.  Given that they have a lot of clusters with different storage and network settings, host profiles didn't seem t ...
Read More...

Created
PowerCLI: enable SSH and configure ESXi Firewall

It’s a long time ago when I posted a new article on my blog so it’s time to write some new content. I want to start with a post about configuring SSH to start automatically, hide the Shell warning message and configure the ESXi firewall to allow the conne ...
Read More...

Created
Using PowerCLI to set ESXi Dump Collector Settings

I needed to check the configuration of all hosts in an environment for their ESXi Dump Collector Settings and then ensure they were all set to the correct values. I was using the handy ESXi Dump Collector which ships as part of the vCenter 5.1 package.

Created
Using PowerCLI for Advanced Syslog Configuration Tasks

So for the time being I have put together two functions, Get-VMHostSyslogConfig and Set-VMHostSyslogConfig, to supplement what you can currently do with the following additional options: Include the ability to set protocol specific paths, e.g. ssl ...
Read More...

Created
Joining ESXi hosts to a domain and granting permissions with PowerCLI (vSphere PowerCLI Blog)

Recently I was asked by an administrator to help him automate the process of joining ESXi Hosts or as PowerCLI refers to them “VMhosts” to a domain and granting permissions for a domain user with PowerCLI. In this post I am going to show you how this can ...
Read More...

Created
Do my ESXi hosts have the same VLANs? PowerCLI

In a small vSphere environment that I've recently been working on, I started to notice that some of my VMs were disappearing off the network from time to time. Reboots of the VM didn't seem to fix the issue but a quick vMotion of the VM to another host di ...
Read More...

Created
Using plink to modify ESXi host configuration files via SSH from a PowerCLI script

I am a big advocate of automation and saving time with a good script. Whenever I can find a task that is fairly lengthy, and is likely to be repeated in future, I always consider scripting it. There are many way to configure an ESXi host when it comes to ...
Read More...

Created
Configure ESXi Scratch Config w/ Powershell / PowerCLI and other advanced settings...

Needed to script configure all my 100+ ESXi hosts w/ a scratch location. Having a permanent scratch location configured is helpful when an error such as a purple screen of death (PSOD) occurs on ESXi. It is not a requirement, but definitely a best practic ...
Read More...

Created