cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
69
Views
0
Helpful
0
Replies

genie.metaparser.util.exceptions.InvalidCommandError

Hi guys! 

I'm having an strange behaviour. 

When executing a py that gets som outputs from iosXR devices, som of them works fine and some other devices (configured on the same testbed) are faling with the following error:


The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/opt/genie/python/inventari_rd.py", line 122, in <module>
RD = DEVICE.parse("show bgp instance all vrf all ipv4 unicast summary")
File "src/genie/conf/base/device.py", line 535, in genie.conf.base.device.Device.parse
File "src/genie/conf/base/device.py", line 574, in genie.conf.base.device.Device._get_parser_output
File "src/genie/conf/base/device.py", line 572, in genie.conf.base.device.Device._get_parser_output
File "src/genie/metaparser/_metaparser.py", line 311, in genie.metaparser._metaparser.MetaParser.parse
genie.metaparser.util.exceptions.InvalidCommandError: Invalid command has been executed

the strange thing is that if I run the same command to the same device with the "genie parse" command on the shell, the command works fine. so, I'm lost on this issue.

Is there anyone that has faced the same problem?

thanks in advance!

0 Replies 0