question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ASA parsing of show inventory fails

See original GitHub issue

Parsing of the “show Inventory” command fails on one of our ASA firewalls:

From the sensible script:

FAILED! => {"msg": "parse_genie: Missing keys: [['Ethernet 1/13', 'pid'], ['Ethernet 1/13', 'vid'], ['Ethernet 1/13', 'sn'], ['Ethernet 1/14', 'pid'], ['Ethernet 1/14', 'vid'], ['Ethernet 1/14', 'sn']] - Failed to parse command output."} from the command output:

Name: "Ethernet 1/13", DESCR: "10gbase-lr"
PID: RTXM228-401-C98, VID: , SN: ACW111115H9

Name: "Ethernet 1/14", DESCR: "1glx"
PID: FTLF1318P3BTL-C, VID: , SN: FNS11111J1K

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:8 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
lsheikalcommented, Feb 28, 2022

Kindly create a new PR for this fix.

0reactions
muhammad-raficommented, Mar 1, 2022

Kindly create a new PR for this fix.

Pull requested created, please review #630

Read more comments on GitHub >

github_iconTop Results From Across the Web

Genie parser "show inventory" error on some IOS platforms
Solved: Hi pyATS community, just to let you know - or maybe I did anything wrong ... There are errors with the genie...
Read more >
IV50487: CISCO ASA DOES NOT PROPERLY PARSE ... - IBM
The inability to parse the event correctly is due to events that contain hyphens in their event payload. For example, <187>%ASA-3-713228: Group =...
Read more >
ASA | In the Works - A tech apprenticeship
Currently, I've only built parsing strings for Cisco ASAs and Catalyst ... After I've upgraded the firewall, I use “show version,” “show inventory,” ......
Read more >
parsing across multiple lines with ansible - Stack Overflow
You are not showing the task from which you get that output from (and "inventory output" is a quite confusing term in this...
Read more >
Write a parser — pyATS Development Guide documentation
The pyATS Library provides you with many out-of-the box parsers for use with the most frequently-used Cisco show commands and OS/platform combinations.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found