« Back to Technical Discussions

Console KVM IP-Service Profile

Combination View Flat View Tree View
Threads [ Previous | Next ]
Hi 
 
I am looking for  KVM IP -- Service Profile output
 
i would like to get the Console IP of each blade with its corresponding service profile name
 
I am using curl.
 
Thanks
Vamsi

Hi 
 
I am looking for  KVM IP -- Service Profile output
 
i would like to get the Console IP of each blade with its corresponding service profile name
 
I am using curl.
 
Thanks
Vamsi


 
Hi Vamsi,
 
You could make a single query on computeItem and set the inHierarchical attribute to true and filter on the computeItem "association" attribute being set to "associated". However that would bring back a lot of data depending upon how many blades and/or rack mount servers you have.  What you are looking for is the mgmtIf object, more specfically the mgmtIf object for interface 1.  The dn for chassis 1 blade 1 management interface 1 would look like this
 
sys/chassis-1/blade-1/mgmt/if-1
 
The query would look like this 
 
<configResolveClass cookie="1307380712/7529a6a9-b010-4464-b8ef-cbbaaeaaa6e8" inHierarchical="true" classId="computeItem"><inFilter><eq class="computeItem" property="association" value="associated" /></inFilter> </configResolveClass>

So while this would work becasue you would get back only servers that have associated service profiles and then you could parse futher down to the child mgmtIf objects and get the managment IP, it could take a long time and/or time out.
 
I think a better way would be to run the query above, but with inHierarchical set to false, pasre the DNs for the computeItems (computeItem is an abstract object that encompasses both blades and rack mounts) also get the assignedToDn attribute, that is the Service Profile that is associated to the server.
 
Now you can query for the management interface of each dn. Which could result in a lot of queries as well if you have many servers, but I wouldn't run a query for each dn I would query mgmtIf and then parse from that response the mgmtIf for each dn that was returned in the previous query.
 
So minmally two queries, first get the associated servers
 
<configResolveClass cookie="1307380712/7529a6a9-b010-4464-b8ef-cbbaaeaaa6e8" inHierarchical="false" classId="computeItem"><inFilter><eq class="computeItem" property="association" value="associated" /></inFilter> </configResolveClass>

Then get all mgmtIf objects
 
<configResolveClass cookie="1307380712/7529a6a9-b010-4464-b8ef-cbbaaeaaa6e8" inHierarchical="false" classId="mgmtIf"/>
 
You'll have to script something to pull all the data together, hope that helps.
 
Regards,
John

Thanks a lot John

It worked out , but little bit of tailoring for the required output.

John - do you the list of dn names , classid - basically to query the UCSM , i am looking at more towards query part , and would like to know classids, dn names ( they will be handy).

Thanks again
Vamsi

Vamsi,

I recommend that you download a few items, the information about class names, dn names, methods, etc... are all contained in them.

  • UCS XML API Developer Guide
  • UCS XML API Management Information Model Guide
  • Third Part Tools Guide
  • UCS Emulator
  • Wireshark


Essentially all the docs at http://developer.cisco.com/web/unifiedcomputing/docs. The full set of object model documents are contained in the emulator download.

Regards,
John

Hi John

The procedure you mentioned it worked for me , i got the data in a single file.

And i used some linux scripting to get the info in required format

Thanks a lot

Vamsi