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

ucentral-schema: add support for configuring snmpd service using ucentral. WIFI-14152 #28

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

Conversation

fjamarquez
Copy link

These changes make it possible to configure the snmpd service from the json file.

Example:

   "snmpd": {
    "agent": {
	"agentaddress": "UDP:161"
    },
        "access": {
	"private_access": {
                   "context": "none",
                   "group": private",
                   "level": "noauth",
                   "notify": "none",
                   "prefix": "exact",
                   "read": "all",
                   "version": "any",
                   "write": "none"
            },
	"public_access": {
                   "context": "none",                                                                
                   "group": "public",                                                                 
                   "level": "noauth",                                                                
                   "notify": "none",                                                                 
                   "prefix": "exact",                                                                
                   "read": "all",                                                                    
                   "version": "any",                                                                 
                   "write": "none"                                                                   
            } 
    },
        "agentx": {
            "type": "master"
        },
        "com2sec": {
            "public": {
                    "community": "public",
                    "secname": "ro",
                    "source": "default"
             },
             "private": {
                    "community": "private",
                    "secname": "rw",
                    "source": "default"
             }
        },
        "general": {
            "enabled": true,
        },
        "pass": [
            {                               
                    "miboid": ".1.3.6.1.1",
                    "name": "pass protocl",
                    "prog": "/bin/ash /etc/snmp/script.sh"
            },                       
        ], 
        "group": {
            "private_v2c": {
                    "group": "private",
                    "secname": "rw",
                    "version": "v2c"
            },
            "public_v2c": {
                    "group": "public",
                    "secname": "ro",
                    "version": "v2c"
             }
        },
        "system": {
            "sysContact": "company.com",
            "sysLocation": "Spain",
            "sysName": "Host1"
        },
        "view": {
            "all": {
                    "oid": ".1",
                    "type": "included",
                    "viewname": "all"
             }
        }
    }

…tral.

Signed-off-by: Francisco Jose Alvarez <francisco.alvarez@galgus.ai>
@jaspreetsachdev jaspreetsachdev changed the title ucentral-schema: add support for configuring snmpd service using ucentral. ucentral-schema: add support for configuring snmpd service using ucentral. WIFI-14152 Nov 7, 2024
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