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

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
Highlighted
Cisco Employee

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.

View solution in original post

1 REPLY 1
Highlighted
Cisco Employee

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.

View solution in original post

Content for Community-Ad