<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>RE: xml api curl for UCS C240</title>
  <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_thread?p_l_id=&amp;threadId=9888025" />
  <subtitle>RE: xml api curl for UCS C240</subtitle>
  <id>http://developer.cisco.com/c/message_boards/find_thread?p_l_id=&amp;threadId=9888025</id>
  <updated>2013-05-21T19:23:09Z</updated>
  <dc:date>2013-05-21T19:23:09Z</dc:date>
  <entry>
    <title>RE: xml api curl for UCS C240</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=9888387" />
    <author>
      <name>John McDonough</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=9888387</id>
    <updated>2013-01-03T15:23:09Z</updated>
    <published>2013-01-03T15:23:09Z</published>
    <summary type="html">Hi,
 
There is a typo in the blog, the POST body should be in single quotes like this 
curl -H "Content-Type: text/xml" -N -s -d '&lt;aaaLogin inName="ucsrouser" inPassword="cisco@123" /&gt;' http://10.10.10.10/nuova
I will update the blog.
 
Regards,
John
[quote=alexey gan]Hi,
We have severalUCS C240 servers and based on this example :
curl -H "Content-Type: text/xml" -N -s -d "&lt;aaaLogin inName="ucsrouser" inPassword="cisco@123" /&gt;" http://10.10.10.10/nuova
From this link

http://developer.cisco.com/web/unifiedcomputing/blogroll/-/blogs/ucs-xml-api-curl-and-xml?_33_redirect=http://developer.cisco.com/web/unifiedcomputing/blogroll?p_p_id=33&amp;p_p_lifecycle=0&amp;p_p_state=normal&amp;p_p_mode=view&amp;p_p_col_id=column-1&amp;p_p_col_count=1&amp;_33_advancedSearch=false&amp;_33_keywords=&amp;_33_delta=5&amp;p_r_p_564233524_resetCur=false&amp;_33_cur=4&amp;_33_struts_action=%2Fblogs%2Fview&amp;_33_andOperator=true
This is the the output that we receive: 
XML PARSING ERROR: Unable to parse the XML API request. Bad XML document.
What is wrong ?
 [/quote]</summary>
    <dc:creator>John McDonough</dc:creator>
    <dc:date>2013-01-03T15:23:09Z</dc:date>
  </entry>
</feed>

