White Papers

Technical white paper
6 Remote script execution using RESTful APIs
Remote script execution can also be implemented using RESTful APIs. Using REST APIs you can create
remote RACADM commands, IPMI commands and SSH script and link them to alert policies. Click on the
following links for more information:
Create IPMI Commands from Remote Script Execution page using REST APIs
Create RACADM Commands from Remote Script Execution page using REST APIs
Create scripts with SSH key authentication using REST APIs
Create Alert policy and link with action “Remote Script”
6.1 Create IPMI Commands from Remote Script Execution page using REST
APIs
Below payload creates IPMI remote command with name test_ipmi and
Command used: -I lanplus sel time get
URI: https://100.97.140.61/api/ApplicationService/Settings
Method: POST
Payload:
{
"ConsoleSetting": [
{
"Name": "REMOTE_COMMAND_NAME2",
"DefaultValue": "",
"Value": "test_ipmi",
"DataType": "java.lang.String",
"GroupName": "REMOTE_COMMAND_ACTION_SETTING2"
},
{
"Name": "REMOTE_COMMAND_IP2",
"DefaultValue": "",
"Value": "",
"DataType": "java.lang.String",
"GroupName": "REMOTE_COMMAND_ACTION_SETTING2"
},
{
"Name": "REMOTE_COMMAND_USER2",
"DefaultValue": "",
"Value": "",
"DataType": "java.lang.String",
"GroupName": "REMOTE_COMMAND_ACTION_SETTING2"
},
{
"Name": "REMOTE_COMMAND_TYPE2",
"DefaultValue": "",