netenglabs / suzieq

Using network observability to operate and design healthier networks
https://www.stardustsystems.net/
Apache License 2.0
791 stars 105 forks source link

[Bug]: Device status dead if Cisco IOS exec-timeout configured with lower value than SuzieQ polling period #913

Open kagarcia1618 opened 1 year ago

kagarcia1618 commented 1 year ago

Suzieq version

0.21.0

Install Type

hand deployed python

Python version

3.8

Impacted component

sq-poller

Steps to Reproduce

  1. Simulate a Cisco IOS network switch with exec-timeout enabled (default value is 10 minutes)
  2. Onboard the Cisco IOS device in the inventory
  3. Configure the poller period parameter inside suzieq-cfg.yml with a value that is higher (30 minutes) than the exec-timeout configured in Cisco IOS switch.

Expected Behavior

Device status should be alive in continuous polling mode.

Observed Behavior

Device status is dead after subsequent polling.

Screenshots

Additional Context

As SuzieQ poller is creating a persistent SSH connectivity to the IOS switch, it was observed that this connection is being disconnected by the Cisco IOS switch due to the exec-timeout expiry which happens prior the next schedule of polling.