Leverage Cisco Discovery Protocol w/PowerCLi

If you are a lucky owner of Cisco switches, the Get-VMHostCDP function will give you all the necessary information about the network settings using the Cisco Discovery Protocol. Get-VMHostCDP The CDP info for a single network adapter of ESXi host can be retrieved from GUI. The Get-VMHostCDP function from my PowerCLi Vi-Module module retrieves the … Continue reading Leverage Cisco Discovery Protocol w/PowerCLi

How to select right Azure VM Size w/PowerShell

Right sized VM is half of success if no more! In the Azure IaaS cloud there is no option to edit VM virtual hardware settings like vCPU, vMemory, vSocket/vCore, vGPU, etc. Instead you have to select VMSize – this is consolidated vHardware profile, something like VM Template. There are many VMSize related info on the … Continue reading How to select right Azure VM Size w/PowerShell

Interactive Azure VHD operations w/PowerShell

In my previous article we talked about how to deploy Azure VM from existing VHD file/blob. Today we will automate all VHD related operations (Copy/Move/Rename/Delete) with PowerShell. And we will make this process fully interactive – menu driven with no mandatory parameters at all! Az-Module All you need is Azure Automation Az-Module. We will utilize … Continue reading Interactive Azure VHD operations w/PowerShell

Deploy Azure VM w/PowerShell and Az-Module

As I promised in my previous article, today we’ll write PowerShell script to deploy VM in the Microsoft Azure cloud. Before you begin The script utilizes several functions from my Azure Automation Az-Module. The Az-Module contains auxiliary functions for the Microsoft AzureRm Module, you will need it too. Every time you run the script it … Continue reading Deploy Azure VM w/PowerShell and Az-Module

Intellectual VMware snapshots

Today we will automate VMware VM snapshots with a New-SmartSnapshot function from my PowerCLi Vi-Module module. The function will utilize the embedded PowerCLi New-Snapshot cmdlet but with some smart features. New-SmartSnapshot – the smart features A snapshot name and description The function generates the snapshot name from -Requestor parameter and the current date. By default, … Continue reading Intellectual VMware snapshots

Get and Disconnect VCenter sessions w/PowerCLi

Are you sure you know who connected to your VCenter(s)? From where and when the sessions were established? How long sessions have been idle? What user agents are used (Web Client/PowerCLi, etc.) to connect and many other usable info? This time we will look at just two functions Get-ViSession/Disconnect-ViSession from my PowerCLi Vi-Module module. Many … Continue reading Get and Disconnect VCenter sessions w/PowerCLi

ps1Liner :: MultiPathing report for vSphere hosts

What is one-liner? This is just one line of code (PowerShell/VMware PowerCLi or whatever) intended to perform particular task. It may be very or sometimes very-very long, but is still one line only! This one-liner retrieves pathing info for ESXi hosts. In the vSphere Client this info exists here: Select a host -> Configure tab … Continue reading ps1Liner :: MultiPathing report for vSphere hosts