cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
759
Views
5
Helpful
1
Replies

Running IOS commands via RESTAPI leveraging python3 on Cisco SBC Router / SBC

Hello,

 

We have a Cisco SBC router to make and receive telephone calls.

SBC is running load "isr4300-universalk9.16.06.07.SPA.bin".

 

I want to run IOS command, 'show call active voice compact'  using python3 program off the box. 

I have researched the link -

https://developer.cisco.com/codeexchange/github/repo/CiscoDevNet/python_code_samples_network/

other details about GSAPI XCC interface.

 

What would be the best approach here and is there an example I could follow ?

 

Thanks,

1 Accepted Solution

Accepted Solutions

Hello @RishikulSaxena18768 there is a number of Python libraries you can use here, to send CLI commands to your device. Take a look at this code sample of Netmiko https://developer.cisco.com/codeexchange/github/repo/bigevilbeard/Basic_NetMiko - you can adjust the destination device, show command etc...

 

Hope this helps.

Please mark this as helpful or solution accepted to help others
Connect with me https://bigevilbeard.github.io

View solution in original post

1 Reply 1

Hello @RishikulSaxena18768 there is a number of Python libraries you can use here, to send CLI commands to your device. Take a look at this code sample of Netmiko https://developer.cisco.com/codeexchange/github/repo/bigevilbeard/Basic_NetMiko - you can adjust the destination device, show command etc...

 

Hope this helps.

Please mark this as helpful or solution accepted to help others
Connect with me https://bigevilbeard.github.io
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 community: