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

Add capability to read resolv.conf for FQDN sysname #335

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ashish12pant
Copy link

- What I did
Read domain name from /etc/resolv.conf and return FQDN value for sysName

- How I did it

  • As default behaviour only hostname will be returned. If hostname configured in config_db is FQDN than that value will returned
  • If hostname in config_db is not FQDN and If there is a domain name in the /etc/resolv.conf. Domain name is read from the file and FQDN value is returned for sysName.

- How to verify it
snmpget -Oqv -v 2c -c 'public' <ip_address> 1.3.6.1.2.1.1.5.0

- Description for the changelog
Capability to read resolv.conf for FQDN sysname

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

Successfully merging this pull request may close these issues.

1 participant