I know we can use JSON RPC to query devices for live-status information that is not stored in CDB. Is there an equivalent way to obtain this information via REST API ?
admin@ncs> show devices device CBP62BBSAA02 live-status system information
live-status system information system-name <customer device name removed>
live-status system information chassis-type "7750 SR-c12"
live-status system information software-version B-12.0.R9
live-status system information system-up-time "7 days"
live-status system information last-time-configuration-saved "2016/04/28 15:30:38"
I would expect this is possible, I have used actions over REST quite a bit. I don’t have environment handy to check your specific request, but see below a REST call for a RPC-Ping on a JunOS box:
NCS CLI equivalent is :
admin@ncs> request devices device VICPE1 ping 10.255.255.1
Hope this helps!
I used a GET at URL
Nick, check here, an existing community thread which has an example of executing a live-status command through rest (from Mike Leske).