When building out your UCS deployment, you create a series of Fibre Channel (FC) uplinks. Then you have to go back and add those FC uplinks to the VSAN’s that you created. This can be tedious if you have a lot of FC uplinks as you would need to modify each one. With Cisco’s Powertool, you can do this quite quickly with no mouse movement :)

As you can see:

are variable used so that you only need to modify the VSAN ID once. Otherwise, you would need to specify on each and every line.

This took me a while to figure out as Cisco’s get-help files (man pages for Linux folks) leave a lot to be desired.

if you run:

You get:

Which would lead you to believe that this command would work just fine:

But it does not, you have to pipeline through the get-ucsvsan output first.

I’m finishing up a UCS deployment for a customer, one of the things I needed to gather was the Serial Number, Model, Chassis Number and Blade Location. Since I’ve been playing with Cisco’s PowerShell component called PowerTool; I figured I would use it.

Here is the one-liner that I came up with:

Here is a sample output of the command:

Using Cisco PowerTool to report on your UCS environment

Using Cisco PowerTool to report on your UCS environment

While your at it, be sure to grab the Cisco PowerTool Users Guide