genieparser icon indicating copy to clipboard operation
genieparser copied to clipboard

'show ip ospf interface' really slow when many interfaces

Open frdaigle opened this issue 2 years ago • 5 comments

This command will last about 17 minutes on a switch that has 540 ospf interfaces.

Looking at the parser code, a 'show run | section vrf {vrf-id}' is run for each interfaces to gather vrf data. To optimize the code, it would be better to do 'show run | section vrf' once and refer to this returned dictionary for each OSPF interfaces.

frdaigle avatar Apr 05 '23 20:04 frdaigle

Hi, Ticket heading and problem statement both are different. Could you please clarify whether you are looking for the API for show run | section vrf ?, and for Which OS / Device model ?

And , also would be good if you can share the reference logs (manual) to analyze further data to cross check. Are the system CPU/memory status only peaks when executing these cli`s ?

vkuttykr avatar Apr 18 '23 11:04 vkuttykr

Could you please clarify and share logs to analyze and to cross check, if you are still facing the issue.

sudheergovindu avatar Apr 28 '23 09:04 sudheergovindu

As we currently not supporting, we will add to backlog for support as per priority of customer need to resolve the issue you are facing in future. If you need further assistance, please let me know and I'll do my best to provide additional guidance.

sudheergovindu avatar May 02 '23 06:05 sudheergovindu

Thank you for bringing this issue to our attention. Unfortunately, at the moment, we do not support the specific request you have made. However, we value your feedback and understand the importance of resolving this issue for our customers. Therefore, we will prioritize adding it to our backlog for future support based on the level of need expressed by our customers.

If you require any further assistance or have any other questions, please don't hesitate to let me know. I am here to help and will endeavor to provide any additional guidance or information you may require.

sudheergovindu avatar May 16 '23 10:05 sudheergovindu

Opened PR #780 to address this issue. The optimized parser brought a 17 minute run of the command down to ~2 minutes.

virrsa avatar Aug 18 '23 19:08 virrsa