cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
666
Views
0
Helpful
0
Replies
Raja.Selvaraj
Enthusiast

JSONRPC run_action method to run live-status command

Hi,

 

I want to run a jsonrpc command to get the live-status of device hostname. I'm trying the below command but couldn't get succeed. Can any one help me to fix this ?

 

Assume i got logged in and get_trans method ran successfully before executing this command. 

 

curl -k -b cookie -X POST http://localhost:8080/jsonrpc -H 'Content-Type: application/json' -d '
{
"jsonrpc":"2.0",
"id":1,
"method":"run_action",
"params":{
"path": "/devices/device{s4xx-e-201}/live-status/ios-stats:exec/show",
"params": {"args":"running-config\\ hostname"},
"th": 1
}
}'

 

response: {"jsonrpc":"2.0","error":{"type":"rpc.method.invalid_params","code":-32602,"message":"Invalid parameters","data":{"param":"path"},"internal":"webui_util636"},"id":1}

0 REPLIES 0
Create
Recognize Your Peers
Content for Community-Ad