This YANG module provides a data model for SNMP Services.
Copyright 2019-2020 Rubicon Communications, LLC.
Example URL
returns netgate.snmp.SnmpConfig
netgate.snmp.SnmpConfig
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-snmp:snmp-config" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
Example URL
creates netgate.snmp.SnmpConfig
netgate.snmp.SnmpConfig to be added to list
dataplane | object (netgate.snmp.snmpconfig.Dataplane) |
snmp-access-control | object (netgate.snmp.snmpconfig.SnmpAccessControl) |
snmp-enable | boolean Default: false Enable the SNMP daemons. |
Object created
Internal error
Object already exists
Example URL
creates or updates netgate.snmp.SnmpConfig
netgate.snmp.SnmpConfig to be added or updated
netgate-snmp:snmp-config | object (netgate.snmp.SnmpConfig) |
Object created
Object modified
Internal error
Example URL
removes netgate.snmp.SnmpConfig
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-snmp:snmp-config" req, _ := http.NewRequest("DELETE", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
Example URL
Dataplane-specific parameters of SNMP server.
netgate.snmp.snmpconfig.Dataplane
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-snmp:snmp-config/netgate-snmp:dataplane" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
Example URL
Dataplane-specific parameters of SNMP server.
netgate.snmp.snmpconfig.Dataplane to be added to list
enable | boolean If true, SNMP server is enabled for dataplane interfaces. |
Object created
Internal error
Object already exists
Example URL
Dataplane-specific parameters of SNMP server.
netgate.snmp.snmpconfig.Dataplane to be added or updated
netgate-snmp:dataplane | object (netgate.snmp.snmpconfig.Dataplane) |
Object created
Object modified
Internal error
Example URL
Dataplane-specific parameters of SNMP server.
Object deleted
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-snmp:snmp-config/netgate-snmp:dataplane" req, _ := http.NewRequest("DELETE", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
Example URL
returns netgate.snmp.snmpconfig.SnmpAccessControl
netgate.snmp.snmpconfig.SnmpAccessControl
Internal error
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/data/netgate-snmp:snmp-config/netgate-snmp:snmp-access-control" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }
Example URL
creates netgate.snmp.snmpconfig.SnmpAccessControl
netgate.snmp.snmpconfig.SnmpAccessControl to be added to list
view | Array of objects (netgate.snmp.snmpconfig.snmpaccesscontrol.View) Defines a subset of the OID tree. |
access | Array of objects (netgate.snmp.snmpconfig.snmpaccesscontrol.Access) Map from group to views. |
community-map | Array of objects (netgate.snmp.snmpconfig.snmpaccesscontrol.CommunityMap) Map community name from SNMP request to security name. |
group | Array of objects (netgate.snmp.snmpconfig.snmpaccesscontrol.Group) Map security name to group. |
Object created
Internal error
Object already exists