Python Forum
How to caputre an output of a CLI
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to caputre an output of a CLI
#1
I need to capture an output of a CLI "show lic ?" in a variable or in buffer.

How to do it in python. I was using tcl where it has "receive_buffer" to capture it, not sure how to do it on python.

Please find the output below

Switch#show lic ?
comments Displays comments about the licenses.
feature-version Indicates the version of the feature that is using or can
use this license.
right-to-use Displays all the RTU licenses.
Reply


Messages In This Thread
How to caputre an output of a CLI - by vel9194 - Aug-07-2017, 09:07 AM
RE: How to caputre an output of a CLI - by hbknjr - Aug-07-2017, 02:17 PM

Forum Jump:

User Panel Messages

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