your home for end-user virtualization!

Powershell

Using PowerShell to Install SNMP and configure Community, Location and Contact on Windows 2008

One of the steps needed to onboard a system into our monitoring tools is to configure SNMP. If the customer template┬ádoes not have SNMP pre-configured, or is not using GPO to do it; it quickly becomes a painfully slow speed-bump. Last night I threw together the PowerShell script below to: Install SNMP services Configure SNMP […]

Tags: ,

Posted in Powershell, SNMP, Windows 2008 | No Comments »

Using PowerCLI to remotely execute esxcli commands

First, make sure you’re using a version of PowerCLI that supports the get-esxcli cmdlet. In this case, I used a fresh install of PowerCLI 5.5. First, get-esxcli needs to be run against a single host individually, you can loop through you’re hosts later, but again, one at a time. So I did: $getcli = Get-EsxCli […]

Tags: ,

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

Finding orphaned VMDK’s using PowerCLI

Here is a PowerCLI script I use to find all orphaned VMDK’s in my vCenter environment. $arrayVC = “virtualcenter2” Foreach ($strVC in $arrayVC) { Connect-VIServer $strVC $arrUsedDisks = Get-VM | Get-HardDisk | %{$_.filename} $arrUsedDisks += get-template | Get-HardDisk | %{$_.filename} $arrDS = Get-Datastore Foreach ($strDatastore in $arrDS) { $strDatastoreName = $strDatastore.name $ds = Get-Datastore -Name […]

Tags: , ,

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

Cisco PowerTool Contest helps popularize UCS scripting

Cisco has launched a UCS PowerTool Scriptng Contest, highlighting scripts by the UCS community members, then picking the “top” community written script. This is a brilliant move by Cisco to help popularize the PowerShell based API Cisco PowerTool. PoweShell is quickly becoming the go-to scripting languages for many IT organizations. Cisco has leveraged this popularity […]

Posted in Cisco UCS, Powershell, PowerTool | No Comments »

Search

Categories