« Back to Technical Discussions

How to start, stop, reboot a Blade Server via XML API

Combination View Flat View Tree View
Threads [ Previous | Next ]
Hi all
 
I'm new to the UCS and the XML API, so I'm sure this is a stupid question.
I'm able to read blade information via XML API and also to associate  service profile to a blade server.
But till now I did not find a way to start, stop and reboot the blade server via XML API.
 
Could anyone point me to the correct XML command to start, stop and reboot a blade server.
 
Many thanks in advance
Helmut

I am currently out of office on PTO from Thursday, October 3, 2012 returning to the office Monday, October 8, 2012. I will have limited access to voicemail and email at this time. My responses will be delayed during this time.

Thanks,
Eric Williams

I am currently OOO, I will be back October 23rd. /Roger

I'm currently out of the office

Jeg er kursus 2012.10.08-12, og besvarer i begrænset omfang mails.
For hastesager kontakt NetDesign tlf. 44358000.
I am on training 2012.10.08-12 and will only react on mails to a limited extent.
In urgent matters please contact NetDesign +4544358000.
Venlig hilsen / best regards Jesper Munk

Helmut,

easiest way to find the required XML is to start wireshark and capture all the data and filter the XML out of it. When you actualy perform those actions. I suppose you can do this as well with the emulator.

Regards
Eelco


________________________________________
Van: Cisco Developer Community Forums [cdicuser@developer.cisco.com]
Verzonden: maandag 8 oktober 2012 13:52
Aan: cdicuser@developer.cisco.com
Onderwerp: New Message from Helmut Pfeiler in Unified Computing UCS Manager - Technical Discussions: How to start, stop, reboot a Blade Server via XML API

Helmut Pfeiler has created a new message in the forum "Technical Discussions": -------------------------------------------------------------- Hi all

I'm new to the UCS and the XML API, so I'm sure this is a stupid question.
I'm able to read blade information via XML API and also to associate service profile to a blade server.
But till now I did not find a way to start, stop and reboot the blade server via XML API.

Could anyone point me to the correct XML command to start, stop and reboot a blade server.

Many thanks in advance
Helmut
--
To respond to this post, please click the following link: or simply reply to this email.

Hi Helmut,
I know you are specifically looking for help on this with XML.  I just wanted to offer that there are a couple of other tools you can use to manage UCS.  Like you I initially started with the XML API, but then I discovered the UCS PowerTool which is a powershell interface.  Another option is GoUCS which I believe is more of a java centric approach.
 
With the Powertool starting a service profile is as simple as:
Get-UcsServiceProfile -Name esxhost01 | Set-UcsServerPower -State "admin-up" -Force
 
Sage

Hi Sage
 
Unfortunately the only interface option is the XML API.
So if someone knows the XML to use, that would really help.
 
Many thanks for the answers till now!
 
Helmut

Hello Helmut,



Try this out.



For Power on :



<lsPower><dn=""org-root/ls-testSP/power" state="up"></lsPower>

Where testSP is the name of service profile.



For Power off :

<lsPower><dn=""org-root/ls-testSP/power" state="soft-shut-down"></lsPower>



In case you do not have any service profile associated to your blade, you need to do hard reset :

<computeBlade><adminPower=”hard-reset-immediate” dn=”sys/chassis-1/server-1” lc=”undiscovered”></computeBlade>



Thanks,

Purvi



From: Cisco Developer Community Forums [mailto:cdicuser@developer.cisco.com]
Sent: Monday, October 08, 2012 8:44 AM
To: cdicuser@developer.cisco.com
Subject: New Message from Helmut Pfeiler in Unified Computing UCS Manager - Technical Discussions: RE: How to start, stop, reboot a Blade Server via XML API



Helmut Pfeiler has created a new message in the forum "Technical Discussions": -------------------------------------------------------------- Hi Sage

Unfortunately the only interface option is the XML API.
So if someone knows the XML to use, that would really help.

Many thanks for the answers till now!

Helmut
--
To respond to this post, please click the following link: or simply reply to this email.

Hi Purvi
 
Many thanks for your reply - that really helped!!!
 
Many thanks
Helmut