Originally posted by: manjunathns
Hi,
The CLIRunner Job is still being supported in the HMC. I am not sure on the version of HMC you are using. And yes, we did not want to support all the CLI commands through this REST Job. PowerVC still uses this Job for performing some operations.
Having said that, we agree that the documentation needs to be updated. We will look into the PMR you have opened for the reason for failure of the Job. But below is the sample CLIRunner payload to execute the viosvrcmd command. Please try this and let me know if you see any issue..
Along wit the X-Api-Session token, you also need to pass Content-Type = application/vnd.ibm.powervm.web+xml; type=JobRequest in the header.
<JobRequest:JobRequest
xmlns:JobRequest="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_0">
<Metadata>
<Atom/>
</Metadata>
<RequestedOperation kxe="false" kb="CUR" schemaVersion="V1_0">
<Metadata>
<Atom/>
</Metadata>
<OperationName kxe="false" kb="ROR">CLIRunner</OperationName>
<GroupName kxe="false" kb="ROR">ManagementConsole</GroupName>
</RequestedOperation>
<JobParameters kxe="false" kb="CUR" schemaVersion="V1_0">
<Metadata>
<Atom/>
</Metadata>
<JobParameter schemaVersion="V1_0">
<Metadata>
<Atom/>
</Metadata>
<ParameterName kxe="false" kb="ROR">cmd</ParameterName>
<ParameterValue kxe="false" kb="CUR">viosvrcmd -m jill --id 1 -c "ioslevel"</ParameterValue>
</JobParameter>
<JobParameter schemaVersion="V1_0">
<Metadata>
<Atom/>
</Metadata>
<ParameterName kxe="false" kb="ROR">acknowledgeThisAPIMayGoAwayInTheFuture</ParameterName>
<ParameterValue kxe="false" kb="CUR">true</ParameterValue>
</JobParameter>
</JobParameters>
</JobRequest:JobRequest>
Please try this payload, and let me know if you see any issue. Thanks!
-Manju