Python Forum
How to get specific output on interface?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to get specific output on interface?
#1
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
Reply
#2
Sounds like this question should be directed to a Cisco forum, perhaps: https://hardforum.com/threads/cisco-lab.1409412/
Reply
#3
@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.
Reply
#4
OK, please post code so we can help.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  netmiko: print out specific line matches with 'Cisco IOS Software' in sh ver output sabrina 1 3,359 Nov-28-2022, 10:05 AM
Last Post: carstenlp

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020