is there a possibility to use the genie parser on output saved in text files?
The issue is that that it is not possible to install pyATS or genie on the machine where I can access the devices. What I can do is get the output of "show ip interface" save that to a text file and have genie parse that file on my machine.
I could use the NTC TextFSM parser, but wanted to know and learn if it is possible to use genie offline, so to say.
from pyats_genie_command_parse import GenieCommandParse
parse_obj = GenieCommandParse(nos='ios')
data = parse_obj.parse_file(show_command='show version', file_name_and_path='./show_version.txt')
This is a library to be able to parse NOS command output using the availableGenie parsers, it seperates out needing to create a testbed.yml, and allows you to just get the output, and parse the output withGenie parsers.
I tried using this "pyats_genie_command_parse", seems that some command works some didn't...Eg. are "show interfaces GigabitEthernet2/0/3 counters" or "show authentication sessions interface GigabitEthernet2/0/48 details" (to see NAC session in switchport).
These command always throw an exception. Did I miss something? Seems that those with an interface name have this issue...
ModuleNotFoundError: Could not find module_name for command show interfaces xxx counters for nos iosxe from genie: cli() missing 1 required positional argument: 'interface'
Cisco Champion Radio · S7|E44: DevNet Specialization, Programmability and You!
Join this episode, featuring three Cisco partners, as they discuss the ins and outs of DevNet Specialization for partners.
DevNet Specialization is a catalyst for Cisco’s ecos...
If you wonder about Big Data and Analytics, the sessions below at Cisco Live Berlin will be for for you to attend. These sessions will cover what would need to know about Big Data, what are the latest technologies and tools for you to perform tasks of ana...
What does the term "data developer" mean? Apparently, it can mean different things to different people, in different contexts, at different times in history, or in different layers of a solution stack. It implies a developer who focuses on data applicatio...