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

Implement sysName OID #170

Open
qiluo-msft opened this issue Oct 20, 2020 · 0 comments
Open

Implement sysName OID #170

qiluo-msft opened this issue Oct 20, 2020 · 0 comments
Assignees

Comments

@qiluo-msft
Copy link
Contributor

Description

Steps to reproduce the issue:

  1. Make sure all the containers running well and snmp is responding query on sysName OID (1.3.6.1.2.1.1.5.0)
  2. Change the hostname in the SONiC host
  3. Verify the hostname inside snmp container are still the old hostname

Describe the results you received:
Query sysName OID and the response is still the old hostname

Describe the results you expected:
Query sysName OID and the response should be the new hostname

Additional information you deem important (e.g. issue happens only occasionally):
Currently the OID is served by snmpd default implementation, so it fetch the hostname from inside snmp container. Suggest override the implementation in sonic-snmpagent repo. The ground truth of hostname should be from ConfigDB, as below command line

redis-cli -n 4 hget "DEVICE_METADATA|localhost" "hostname"

Output of show version:

Applicable to any version

Attach debug file sudo generate_dump:

Not related

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants