cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
464
Views
0
Helpful
2
Replies
ian.scheidler1
Enthusiast

How to issue simple show commands?

I might be asking sth. really easy here (and I may just have forgotten about how to do it). But here we go:

How can I issue simple show commands to a device and pick up the info the device gives me upon that show command?

Is this possible via JSON RPC or REST API...or can it be done from NSO CLI?

For example. How would I issue a simple "show version" command utilizing NSO's capabilities (CLI, APIs or other ways)?

Thanks for the help/refresher.

1 ACCEPTED SOLUTION

Accepted Solutions
frjansso
Cisco Employee

CLI: request devices device volvo-fw-router-ASA-firewall-esc0-1 live-status asa-stats:exec any args show version

REST:

curl -v -H "Content-Type:application/vnd.yang.data+xml" -u admin:admin -d "<any><args>show version</args></any>" http://localhost:8080/api/operational/devices/device/volvo-fw-router-ASA-firewall-esc0-1/live-status/asa-stats:exec/_operations/any

View solution in original post

2 REPLIES 2
frjansso
Cisco Employee

CLI: request devices device volvo-fw-router-ASA-firewall-esc0-1 live-status asa-stats:exec any args show version

REST:

curl -v -H "Content-Type:application/vnd.yang.data+xml" -u admin:admin -d "<any><args>show version</args></any>" http://localhost:8080/api/operational/devices/device/volvo-fw-router-ASA-firewall-esc0-1/live-status/asa-stats:exec/_operations/any

View solution in original post

Great...thanks a lot...that is just what I needed/couldn't remember. I thought it might be faster to ask here than to search through the API docs (which I personally find quite unwieldy for quick reference).

Thanks a lot!!!