cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
907
Views
0
Helpful
2
Replies

How to issue simple show commands?

ian.scheidler1
Level 4
Level 4

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
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
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

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!!!

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the NSO Developer community: