Added timeout crash avoidance

This commit is contained in:
2026-03-06 22:59:56 +01:00
parent faf343b176
commit 78d240a1fc
3 changed files with 8 additions and 2 deletions

View File

@@ -91,8 +91,6 @@ async def idrac7_8PoolRemote_v3(remoteIP: str, queueToInsrt: asyncio.Queue):
snmpEngine.close_dispatcher()
print(voltResult)
# Exhaust CPU1 and CPU2 temp
exhaustTemp = None

View File

@@ -56,6 +56,10 @@ async def idrac9PoolRemote_v3(remoteIP: str, queueToInsrt: asyncio.Queue):
errorIndication, errorStatus, errorIndex, mainVarBinds = await iterator
if errorIndication:
if errorIndication == "No SNMP response received before timeout":
print(f"Host {remoteIP} timed out.\nContinuing...")
snmpEngine.close_dispatcher()
return 1
print(errorIndication)
elif errorStatus:
print(