Forum Discussion

Attish1980's avatar
Attish1980
Icon for Nimbostratus rankNimbostratus
Jun 06, 2019

Timeout settings for ManagementRoot in Python SDK

I am using a python script with F5 SDK to log into over 200 LTMs to carry out certain tasks. Now, certain F5 LTMs might get removed over time and when it happens, my script stalls and is waiting for a long time ( I believe the default timeout is 30s) before it jumps to the next one on the list.

I have tried to add the timeout keyword under ManagementRoot(), but it does not seem to take effect.

mgmt = ManagementRoot("bigip.example.com", "admin", "somepassword", timeout=10)

My question is whether someone has managed to change the timeout for the connection settings and if yes, how.

Thanks for any assistance!