ConfD User Community

Snmp query timeout increase

Hi,

We are seeing snmpwalk entry timeout in a scale setup where there are lot of entries. From the snmp log, it says that when it times out, get_next_request is taking almost 70 sec. By the time backend responds, confd times out. Is it possible to tweak this timeout? I tried increasing snmp gw timeout value to 90sec. It does not help. Any pointers?

<INFO> 28-Oct-2020::06:57:46.2487712-24 confd[4550]: snmp get-next-request reqid=1087484991 127.0.0.1:58790 (INTEGER inetCidrRouteIfIndex.1.4.20.100.0.0.24.16.1.3.6.1.2.1.4.24.7.1.4.32.48.32.48.32.1.4.12.0.0.2)
<INFO> 28-Oct-2020::06:57:47.249 7712-24 confd[4550]: snmp get-next-request reqid=1087484991 127.0.0.1:58790 (INTEGER inetCidrRouteIfIndex.1.4.20.100.0.0.24.16.1.3.6.1.2.1.4.24.7.1.4.32.48.32.48.32.1.4.12.0.0.2)
<INFO> 28-Oct-2020::06:57:48.250 rack9-Edgecore7712-24 confd[4550]: snmp get-next-request reqid=1087484991 127.0.0.1:58790 (INTEGER inetCidrRouteIfIndex.1.4.20.100.0.0.24.16.1.3.6.1.2.1.4.24.7.1.4.32.48.32.48.32.1.4.12.0.0.2)
<INFO> 28-Oct-2020::06:57:49.251 7712-24 confd[4550]: snmp get-next-request reqid=1087484991 127.0.0.1:58790 (INTEGER inetCidrRouteIfIndex.1.4.20.100.0.0.24.16.1.3.6.1.2.1.4.24.7.1.4.32.48.32.48.32.1.4.12.0.0.2)

<INFO> 28-Oct-2020::06:58:52.053 712-24 confd[4550]: snmp get-response reqid=1087484991 127.0.0.1:58790 (INTEGER inetCidrRouteIfIndex.1.4.20.100.0.0.24.16.1.3.6.1.2.1.4.24.7.1.4.32.48.32.48.32.1.4.13.50.0.2=0)

image

iso.3.6.1.2.1.4.24.7.1.7.1.4.20.99.255.0.24.16.1.3.6.1.2.1.4.24.7.1.4.32.48.32.48.32.1.4.11.75.0.2 = INTEGER: 0
iso.3.6.1.2.1.4.24.7.1.7.1.4.20.99.255.0.24.16.1.3.6.1.2.1.4.24.7.1.4.32.48.32.48.32.1.4.11.125.0.2 = INTEGER: 0
iso.3.6.1.2.1.4.24.7.1.7.1.4.20.99.255.0.24.16.1.3.6.1.2.1.4.24.7.1.4.32.48.32.48.32.1.4.11.175.0.2 = INTEGER: 0
iso.3.6.1.2.1.4.24.7.1.7.1.4.20.99.255.0.24.16.1.3.6.1.2.1.4.24.7.1.4.32.48.32.48.32.1.4.11.225.0.2 = INTEGER: 0
iso.3.6.1.2.1.4.24.7.1.7.1.4.20.100.0.0.24.16.1.3.6.1.2.1.4.24.7.1.4.32.48.32.48.32.1.4.12.0.0.2 = INTEGER: 0
Timeout: No Response from 127.0.0.1:161

The timeout message comes from snmpwalk, not from confd. If you want to tweak snmpwalk’s timeout, you can use -r <NoOfRetries> or -t <RetryTimeout>.