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 Management servers
  • Configure Read-Only community strings
  • Configure Read-Write community strings
  • Configure Read-Only Trap community strings
  • Configure Read-Write Trap community strings
  • Configure System Location
  • Configure System Contact
  • Configure SNMP Name Resolution

 

More »

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:

In my case, I wanted to remove a “greyed out” NFS mount, and in esxcli, I would run: More »

Here is a PowerCLI script I use to find all orphaned VMDK’s in my vCenter environment.

I wrote this a long time ago, hopefully it still works

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 to extend the UCS API to UCS administrators.