« Back to Technical Discussions

RE: xml api curl for UCS C240

Combination View Flat View Tree View
Threads [ Previous | Next ]
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 '<aaaLogin inName="ucsrouser" inPassword="cisco@123" />' http://10.10.10.10/nuova
I will update the blog.
 
Regards,
John
alexey gan:
Hi,
We have severalUCS C240 servers and based on this example :
curl -H "Content-Type: text/xml" -N -s -d "<aaaLogin inName="ucsrouser" inPassword="cisco@123" />" 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&p_p_lifecycle=0&p_p_state=normal&p_p_mode=view&p_p_col_id=column-1&p_p_col_count=1&_33_advancedSearch=false&_33_keywords=&_33_delta=5&p_r_p_564233524_resetCur=false&_33_cur=4&_33_struts_action=%2Fblogs%2Fview&_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 ?