ASA parsing of show inventory fails
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
Thanks for bringing up the issue. Looks like the parser couldn't accommodate this console output, You might want to contribute for the parser. For it, there is the reference how to develop parser. And there are very nice YouTube video in the page by pyATS users.
https://pubhub.devnetcloud.com/media/pyats-development-guide/docs/writeparser/writeparser.html
Sorry for hijacking the thread, I was looking at one of my other pull request and get here, I think I can fix this one but, just one question, is ASA sending empty output like this VID: ,
Not like this ? VID: N/A
Hi,
I pasted exactly the output of the command line, so "VID: ," is correct.
Thanks for the response, can you please also mention the asa os version you are using?, so I can test against that version and other versions to see it if this doesn't break for others
@muhammad-rafi kindly link PR to this issue for reference.
@muhammad-rafi kindly link PR to this issue for reference.
I have tested this in the lab and it works fine but I have a pull request currently opened 615 and been 17 days and waiting for someone to run the checks and review, once that done, I will then add this one and raise another pull request to fix this, or if like me to include this one on the same pull request? I can do this too, I will update the change log. Let me know what would you prefer
Kindly create a new PR for this fix.
Kindly create a new PR for this fix.
Pull requested created, please review #630