View Only
last person joined: 3 days ago 

Ask questions and share experiences about Apstra, Paragon, and all things network automation.

dev.facts long delay about 10 minutes

  • 1.  dev.facts long delay about 10 minutes

    Posted 06-27-2022 12:42
    Hi community,

    I have a strange behaviour in some our devices. Netconf basic queries take long time to get answered for some devices, no other issues with ssh connections or rest of performance for same devices.

    Example the hello-world script in GitHub:

    with Device(host='', user='App_Dev', password='xxxx',port=22 ) as dev:
        pprint( dev.facts )

    This basic script takes 619.06 second, in some devices.

    I tested other commands, I found the delay is relate to the answer format (again, only some devices) for xml no delay for json long delay, example:

    version = device.rpc.get_software_information() # No delay, all ok
    version = device.rpc.get_software_information({'format':'json'}) # Long delay, or timeout

    When I tested "show version | display json" from cli there is no issues. 
    The issue looks not related to specific version or device type, I've seen that in a MX480  - 16.1R5.7 or and  NFX250 20.4R3

    Appreciated any help