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

Addition of host-resource subagents to return supported OIDs in HOST-… #332

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

rsh2prasad
Copy link

What I did ...
Added host resource subagents in src/sonic-snmpagent to return the data for the supported OIDs in HOST-RESOURCES-V2-MIB
The OIDs can be found here: https://mibbrowser.online/mibdb_search.php?mib=HOST-RESOURCES-V2-MIB
In addition, the REDIS entry "MOUNT_POINTS | LastUpdateTime" shows up in the SNMP walk, when it should not, because there is no associated OID entry for this value. This entry was added for logging and consistency purposes.

How I did it ...
Added classes hrFSTable & hrStorageTable to handle the filesystem related attributes for SNMP GET request

How I verified it ...
Added unit tests to verify the newly added OID implementation. The steps to run the unit tests can be found in azure-pipelines.yml in the sonic-snmpagent repo

Description ...
Add SNMP GET support and related unit tests for filesystem and total disk usage table in ietf rfc2790 MIB

Signed-off-by: Rakshintha Prasad [[email protected]]

Copy link

linux-foundation-easycla bot commented Oct 3, 2024

CLA Not Signed

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