Originally posted by: LaurentOliva
hello,
on HMC (882 SP1), i'm trying to use "clirunner" through the RESTAPI.
When i submit a cliRunner operation, i got the following error :
PUT /rest/api/uom/ManagementConsole/XXXXXXXXXXX/do/CLIRunner
<entry xmlns="http://www.w3.org/2005/Atom" xmlns:ns2="http://a9.com/-/spec/opensearch/1.1/" xmlns:ns3="http://www.w3.org/1999/xhtml">
<id>XXXXXXXXXXX</id>
<title>HttpErrorResponse</title>
<published>2016-01-06T17:10:38.063+01:00</published>
<author>
<name>IBM Power Systems Management Console</name>
</author>
<content type="application/vnd.ibm.powervm.web+xml; type=HttpErrorResponse">
<HttpErrorResponse:HttpErrorResponse xmlns:HttpErrorResponse="http://www.ibm.com/xmlns/systems/power/firmware/web/mc/2012_10/" xmlns="http://www.ibm.com/xmlns/systems/power/firmware/web/mc/2012_10/" xmlns:ns2="http://www.w3.org/XML/1998/namespace/k2" schemaVersion="V1_2_0">
<Metadata>
<Atom/>
</Metadata>
<HTTPStatus kxe="false" kb="ROR">500</HTTPStatus>
<RequestURI kb="ROR" kxe="false">/rest/api/uom/ManagementConsole/XXXXXXXXXXX/do/CLIRunner</RequestURI>
<ReasonCode kb="ROR" kxe="false">Unknown internal error.</ReasonCode>
<Message kb="ROO" kxe="false">REST0060 Unexpected exception invoking WestboundRootAdapter to request a single ROOT object of type class com.ibm.xmlns.powervm.uom.v2012_10.ManagementConsole</Message>
<RequestBody kb="ROO" kxe="false"/>
<RequestHeaders kb="ROO" kxe="false">{Accept-Encoding=identity, Host=<MYHMC>:12443, Content-Length=1286, Content-Type=application/vnd.ibm.powervm.web+xml; type=JobRequest, X-API-Session=*******, X-Transaction-ID=XT10003154}</RequestHeaders>
</HttpErrorResponse:HttpErrorResponse>
</content>
</entry>
The command i'm trying to execute through the CLIRUNNER provided by the RESTAPI is :
$ viosvrcmd -m FRAME --id 1 -c "rmdev -dev XXXXX"
If i execute the command from the HMC CLI, it works.
Is it a bug of the REST API ?
#HMCandCMC#Power-Hardware-Management-Console-Programmers