<

Import VMware Resource Pools as Configuration Items in SCSM 2012 R2

Published on
9,032 Points
3,032 Views
Last Modified:
Approved
Hi Everyone

I posted previously on how I used Orchestrator to integrate with VMware and SCSM to create or request a new VM in VMware.

Now in my Self Service Portal I had a list user input option that would require me to update the list of resource pools manually when new ones were added or old ones were removed, now this wasn't the best way for me and it also didn't give the requestors a view of the resource pool path which was a requirement.

So I looked everywhere to see if there might be a option to get this data into Service Manager automatically via a connector of some sorts that might be out there already but couldn't find anything. I then remembered the option of maybe using the CSV connector and I thought I would give it a try.

So my configuration went like this:

Firstly I got a list of resource pools and their paths and created a .csv file from it which looked like this:

Resource Pool CSVYou will see I used a number, then the Resource Pool name, then the Resource Pool path in the .csv file, where the number I would be using as my key property in the Service Manager Authoring Tool when I created my custom management pack and custom configuration Item.

The following is a view from my custom management pack

Custom Management Pack
I then created a .xml file with the needed configuration item headings as below

<CSVImportFormat>
   <Class Type="CustomCreatedClassName">
	  <Property ID="ResourcePool_ID"/>   
      <Property ID="ResourcePool"/>
      <Property ID="ResourcePoolPath"/>
   </Class>
</CSVImportFormat>

Open in new window

Please note, you need to format your XML file correctly and in the same sequence as your csv file is, so like you can see in the csv file, the "Resource_ID" is first because I have my numbering first in the csv file, then it will be the "ResourcePool" and then the "ResourcePoolPath"

Once I have these 2 files and created my MP, I can now Import the MP and then create my views under "Configuration Items" in Service Manager as below.
SCSM Confirguration Item ViewThis was created by creating the new view called "VMware Resource Pools" with the following details
Rescource Pool View Config 1In the above image I chose my new Class that was available after I imported my custom MP and then selected the view I wanted displayed
Resource Pools View 2
Once your views are created you can go ahead an import your data using the csv connector in the administration tab under connections.

Below is the data import
CSV Import
Once everything is successfully imported you can go to your newly created view and check the data, in my case it was like this:
Configuration Items Resource Pool Import Result
This is really simple enough and now all I need to do to keep this up to date is make sure my new additions are in the correct format in the .csv file and all I would need to do is go to the connectors again and do an CSV import and my new resource pools will be added and visible.

This is my Self Service Portal end result
SCSM Self Service Portal Resource Pool dynamic view
Now with all this done, I just get the relationships in Orchestrator and use the requestors selection to insert the chosen Resource Pool into my "Create VM" activity script and that's it :)

I hope this article has been informative and if there are any questions please don't hesitate to ask.

Thank you
0
Comment
0 Comments

Featured Post

Cloud Class® Course: Certified Penetration Testing

This CPTE Certified Penetration Testing Engineer course covers everything you need to know about becoming a Certified Penetration Testing Engineer. Career Path: Professional roles include Ethical Hackers, Security Consultants, System Administrators, and Chief Security Officers.

Join & Write a Comment

Key to your CPU's ability to stay cool is to use the right amount of thermal paste and apply it correctly. In other words you want as much thermal conductivity between CPU and the cooling block. Use a quality thermal paste and apply it in a manner…
Learn how to collaborate with office 365 Office Online

Keep in touch with Experts Exchange

Tech news and trends delivered to your inbox every month