IBM Power Connect, learn, share, and engage with IBMPower. Join / Log in
Originally posted by: Bart_G
HMC development, can you confirm that CLIRunner works thru REST API? I followed this instruction https://www.ibm.com/support/knowledgecenter/9040-MR9/p9ehl/apis/CLIRunner_ManagementConsole.htm but I wasn't able to get positive result for any listed 'supported' commands. I opened PMR for it - TS001559713. I need an alternative way to communicate with VIOS using viosvrcmd command ( I don't want to use ssh). According to the documentation I should be able to do it but I wasn't successful. All CLIRunner commands ends with error 'An internal error has occurred. This indicates either an unexpected framework problem or a programming defect. Please contact support."
Moreover, in the XML body example, lssyscfg -r sys command is used for the example. While lssyscfg command is not on the list of supported commands for CLIRunnner.
I thought CLIRunner is used for PowerVC for communication, so it should be possible to use it. However, there is completely lack of documentation.
Originally posted by: manjunathns
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.
Please try this payload, and let me know if you see any issue. Thanks!
Thank you Manju,
It helped, and I'm able to submit CLIRunner query. It would be appreciated if the documentation gets updated.
Sure, We will update the REST Api documentation accordingly. Thanks!
Originally posted by: Sridevi Joshi
KC REST API documentation is updated with allowed command for CLI runner Job