Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Timeout error while fetching response using snmpget #17807

Closed
kaushiksrivatsav opened this issue Jan 17, 2024 · 3 comments · Fixed by #18350
Closed

Timeout error while fetching response using snmpget #17807

kaushiksrivatsav opened this issue Jan 17, 2024 · 3 comments · Fixed by #18350
Assignees
Labels
Issue for 202311 MSFT Triaged this issue has been triaged

Comments

@kaushiksrivatsav
Copy link

kaushiksrivatsav commented Jan 17, 2024

Description

Timeout error generated while running performing SNMP walk.

Steps to reproduce the issue:

1.Deploy M0 topology

  1. get into snmp docker using: docker exec -it snmp bash

  2. execute the below command
    snmpget -v2c -c public fe80::6e19:8fff:feb1:eae0%eth0 1.3.6.1.2.1.1.1.0

Describe the results you received:

root@str-dut-acs-1:/home/admin# docker exec snmp snmpget -v2c -c public fe80::6e19:8fff:feb1:eae0%eth0 1.3.6.1.2.1.1.1.0
Timeout: No Response from fe80::6e19:8fff:feb1:eae0%eth0.

root@str-dut-acs-1:/home/admin# docker exec -it snmp bash
root@str-dut-acs-1:/# snmpget -v2c -c public 10.1.0.32 .1.3.6.1.2.1.1.1.0
Timeout: No Response from 10.1.0.32.

Output of show version:

root@str-dut-acs-1:/home/admin# show versionSONiC Software Version: SONiC.master.0-dirty-20240102.121718
SONiC OS Version: 12
Distribution: Debian 12.4
Kernel: 6.1.0-11-2-armmp
Build commit: 13a16cf87
Build date: Tue Jan  2 12:18:08 UTC 2024
Built by: dut@cpss-arm-vm02Platform: armhf-nn_ixs7215_52x-r0
HwSKU: Nn-7215
ASIC: dut
ASIC Count: 1
Serial Number: NK204510007
Model Number: 3HE16794AA0101
Hardware Revision: 2
Uptime: 07:06:12 up  5:22,  2 users,  load average: 0.51, 0.71, 1.19
Date: Tue 09 Jan 2024 07:06:12Docker images:
REPOSITORY                    TAG                              IMAGE ID       SIZE
docker-teamd                  latest                           b9ad6cc8fc14   349MB
docker-teamd                  master.0-dirty-20240102.121718   b9ad6cc8fc14   349MB
docker-orchagent              latest                           bff5e00febc5   360MB
docker-orchagent              master.0-dirty-20240102.121718   bff5e00febc5   360MB
docker-nat                    latest                           d4282cd5e5de   351MB
docker-nat                    master.0-dirty-20240102.121718   d4282cd5e5de   351MB
docker-sflow                  latest                           473ef2228fbb   350MB
docker-sflow                  master.0-dirty-20240102.121718   473ef2228fbb   350MB
docker-fpm-frr                latest                           dd7555332bfb   371MB
docker-fpm-frr                master.0-dirty-20240102.121718   dd7555332bfb   371MB
docker-macsec                 latest                           b4b82b19dc7d   351MB
docker-eventd                 latest                           ca086cda8c33   331MB
docker-eventd                 master.0-dirty-20240102.121718   ca086cda8c33   331MB
docker-dhcp-relay             latest                           350b86886f3f   338MB
docker-syncd-dut             latest                           efdc512f81d8   440MB
docker-syncd-dut             master.0-dirty-20240102.121718   efdc512f81d8   440MB
docker-platform-monitor       latest                           14c2d1b3988a   601MB
docker-platform-monitor       master.0-dirty-20240102.121718   14c2d1b3988a   601MB
docker-sonic-gnmi             latest                           226c3b42c104   404MB
docker-sonic-gnmi             master.0-dirty-20240102.121718   226c3b42c104   404MB
docker-snmp                   latest                           882176fdfe52   367MB
docker-snmp                   master.0-dirty-20240102.121718   882176fdfe52   367MB
docker-router-advertiser      latest                           2702606cdb97   332MB
docker-router-advertiser      master.0-dirty-20240102.121718   2702606cdb97   332MB
docker-lldp                   latest                           18a1055c0939   337MB
docker-lldp                   master.0-dirty-20240102.121718   18a1055c0939   337MB
docker-mux                    latest                           e72ad58b9a65   344MB
docker-mux                    master.0-dirty-20240102.121718   e72ad58b9a65   344MB
docker-database               latest                           f0433b9ecc65   332MB
docker-database               master.0-dirty-20240102.121718   f0433b9ecc65   332MB
docker-sonic-mgmt-framework   latest                           f1b6290c6435   709MB
docker-sonic-mgmt-framework   master.0-dirty-20240102.121718   f1b6290c6435   709MB
@vivekrnv
Copy link
Contributor

possible that snmpd is not running. Related to this issue #16001

@liat-grozovik
Copy link
Collaborator

@SuvarnaMeenakshi any ETA for fixing the issue?

@SuvarnaMeenakshi
Copy link
Contributor

@SuvarnaMeenakshi any ETA for fixing the issue?
Created below PRs:
#18350
sonic-net/sonic-utilities#3215

lguohan pushed a commit that referenced this issue May 12, 2024
)

Why I did it

1. fix [snmp] Snmpd fails to start when mgmt or Loopback interface is configured with Link local IPv6 address #16001
2. fix Timeout error while fetching response using snmpget #17807

#17045 modified minigraph parser to use management and loopback IPs to support SNMP query over IPv6. With this fix, if mgmt or loopback IP contains link local IP, that will not work as link local IP has to be appended with scope id associating the IP address to a specific interface. This PR change is to ensure that snmp works with link local IPv6 address.

How I did it
Modify minigraph parser to append the Ip address with % scope id if snmp agent address being used is link local IP address.
Modify snmpd.conf.j2 to take this change while checking if an IP address is ipv4 or ipv6.

How to verify it
Verified by configuring link local ipv6 address.
Last login: Wed Mar 13 01:45:09 2024 from 10.1.84.57
admin@<>:~$ sudo netstat -tulnp | grep 161
...
udp6 0 0 fe80::f6ee:31ff:fe9:161 :::* 70355/snmpd

Signed-off-by: Suvarna Meenakshi <sumeenak@microsoft.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue for 202311 MSFT Triaged this issue has been triaged
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants