I was messing around with PowerCLI and the real-time statistics to collect the IOPS used by virtual machines/virtual machine disks in my my home lab. Virtual disk performance counters are available in the real-time performance stats but at the default statistics level, Level 1, with the IOPS statistics are not rolled up into the daily, weekly, monthly, or yearly statistics. I put together a PowerCLI script, collect-iops.ps1, to collect the real-time samples.
Tag Archive: PowerCLI
Of course the first must have PowerCLI reference was the first edition of the VMware vSphere PowerCLI Reference book which has had a spot on my desk for the last couple years and I refer to it often. I recently picked up the 2nd Edition of the book and it has now taken the 1st …
Finished up another successful vSphere 6 Install Configure Manage class at Tidewater Community College last week. Time to re-provision the lab environments to get things ready for the next class.. This is a PowerCLI Script I put together to help automate the lab deployment for TCC VMware IT Academy classes.
The talk was on using PowerCLI to manage SSH. Specifically about using PowerCLI to report on the status of the SSH Service on ESXi host (is it running, what is the policy set for), updating the policy (Start and Stop with Host, Manual, Automatic), stopping and starting the SSH on ESXi hosts, and configuring the firewall for the SSH service to limit access to the service.
With out going too deep, part of a SimpliVity deployment is preparing the VMware environment. Preparing the VMware environment includes creating a Role including the necessary Privileges and setting up the required permissions in vCenter for a SimpliVity user. This is easy enough, but I created a PowerCLI script which creates a Role, applies the required Privileges to the Role, and applies the Role to a user as a permission in vCenter.
A quick PowerCLI script I put together to set a few of the General vCenter Configuration Settings such as the SMTP Server and port, the from email for messages generated by vCenter alarms, and setting the database retention policies for tasks and events. The script also configures the email actions on a set of pre-defined alarms.