Python Forum

Full Version: How to get specific output on interface?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi, I'm currently working on a project and I want to get specific output for the show interface on cisco device?

Ex.
lab-sw01#sh int f0/0 | i rate
Queueing strategy: fifo
5 minute input rate 0 bits/sec, 0 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec

For this output I only want to get the input and output rate?

Thanks
Sounds like this question should be directed to a Cisco forum, perhaps: https://hardforum.com/threads/cisco-lab.1409412/
@Larz60+, I'm referring to python script..

Though I already found the answer.... They put the interface output from cisco to a specific variable the use regex to match specific string.
OK, please post code so we can help.