07-15-2018 10:06 PM - edited 03-01-2019 04:12 AM
Hi,
Can we retrieve configuration in xml format under result tag of json rpc output?
Appending "| display xml " dint work .Can anyone please suggest other options ?
PS : Tried below 2 request.
1)
{
"jsonrpc":"2.0",
"id":1,
"method":"run_action",
"params":{
"path":"/ncs:devices/device{192.168.99.183}/live-status/ios-stats:exec/any",
"th":1,
"params":{
"args": ["show running-config | display xml"]
}
}
}
2)
{
"jsonrpc":"2.0",
"id":1,
"method":"show_config",
"params":{
"th":1,
"path":"/aaa"
}
}'
Thanks,
Chitra
Solved! Go to Solution.
07-15-2018 10:57 PM
The IOS NED exec rpc string is sent to the *device* for execution, so only commands recognized by the device will work.
07-15-2018 10:57 PM
The IOS NED exec rpc string is sent to the *device* for execution, so only commands recognized by the device will work.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide