Skip to content

Make UCS Even Better With Powershell

I try to use Powershell whenever I can. It’s been a huge step in the right direction for Microsoft, and it’s made a lot of sysadmins feel more comfortable managing and automating larger environments. So, when our UCS vendor told me about the Powershell module that Cisco provides to manage UCS, I was practically salivating.

Cisco provides the kit free of charge to Cisco.com members, and installing it is just a matter of copying the module files to your modules folder and firing up Powershell (an import-module command in your profile will also do the trick).

Once installed, simply run

connect-ucs <hostname/IP>

After inputting your credentials at the prompt, you’re good to go. You can also put

$username =
$pass = | convertTo-securestring -asplaintext -force
$cred = New-object System.Management.Automation.PSCredential($username, $pass)
connect-ucs <hostname/IP> $cred

in your profile to set that up every time you open Powershell.

Powershell makes it trivial to find information about your architecture without messing with the well-designed-but-still-Java UCS Manager, and if you need to configure a lot of things on the fly, there’s a wealth of configuration cmdlets to get you started.

Here’s Cisco’s cheat sheet for those interested.

Post a Comment

Your email is never published nor shared. Required fields are marked *
*
*