vTesseract









My name is Josh Atwell and I've been working in the IT industry exclusively since 2004. I've received my VCAP-DCD, VCAP-DCA, VCP3,4 certifications. I am currently working as a vArchitect for VCE where I am helping customers with many things that start with 'V'.

vTesseract is my personal presence for my thoughts, musings, and technical write-ups involving PowerShell, datacenter virtualization and other technologies I come across daily. The opinions and thoughts on this site are my own and are not endorsed or affiliated by my employer or anyone else. This is done on my own free time and all work is limited based on my time and available resources. Your comments, thoughts, opinions are welcome. Thanks for reading!

Current Resume-CV

Thu Oct 4

Get UCS Service Profile Associations from List of UCSMs

I have to admit I’ve been slack on doing some UCSPowerTool goodness.  While this next script isn’t “amazing” it did solve a very time consuming need over the weekend. 

The Problem

Let’s say you have multiple UCS clusters.  You need to get a breakdown of all of the Service Profile Associations.  Well if you have a single UCSM just log into the FI and run:

Show service-profile assoc

This is a piece of cake for a single UCSM but I had nearly 2 dozen that I needed to query with the quickness and all I was provided was a list…figures right? :)

The Solution

In order to solve the problem it’s pretty simple actually.

  1. Import the list
  2. Connect to All UCSMs
  3. Use Get-UcsServiceProfile
  4. Export Results

Given that I know I’ll need to do this again in the future and wanted to share it with the team I work with I went ahead and added some logic and some user interaction for good measure.  I didn’t bother with a full out function but if there’s enough interested I suppose I could.  You can find the full script at:

http://poshcode.org/3677

blog comments powered by Disqus