跳转到内容
Ask AI

SNMP

此内容尚不支持你的语言。

| ------------------------------------------------------------------ | ------- | -------- | --------- | ------- | ---------- | | /rest/v1/running/snmp-communities/{community-name} | Y | Y | N | N | Y | | /rest/v1/running/snmp-sources/{source-ip}/{udp-port}/{vrf-name} | Y | Y | N | N | Y | | /rest/v1/running/snmp-traps/{trap-type} | Y | N | N | Y | Y | | /rest/v1/running/snmp-users/{user-name} | Y | Y | N | N | Y |

POST HTTPS://{switch IP}/rest/v1/running/snmp-communities
{
"community-name": "test"
}
POST HTTPS://{switch IP}/rest/v1/running/snmp-sources
{
"source-ip": "10.0.0.100",
"udp-port": "162",
"vrf-name": "default"
}
PUT HTTPS://{switch IP}/rest/v1/running/snmp-traps/v2c
{
"trap-ip": "10.50.1.2",
"udp-port": 163,
"vrf-name": "Vrftest1",
"community-name": "default"
}
POST rest/v1/running/snmp-users
{
"user-name": "test3",
"authen-mode": "SHA",
"authen-key": "123456789",
"privacy-mode": "AES",
"privacy-key": "987654321"
}

Tree Diagrams

+--rw snmp-communities
| +--rw snmp-community* [community-name]
| +--rw community-name

Table of Properties

NameRequiredType/RangeDescription
snmp-communitiesMPath-only node, has no configurable value.
community-nameMstring(sub-property of snmp-communities)
SNMP agent community configuration, “public” is the default value and is not allowed to be configured

Tree Diagrams

+--rw snmp-users
| +--rw snmp-user* [user-name]
| +--rw user-name
| +--rw authen-mode?
| +--rw authen-key
| +--rw privacy-mode?
| +--rw privacy-key
| +--ro user-type?

Table of Properties

NameRequiredType/RangeDescription
snmp-usersMPath-only node, has no configurable value.
user-nameMstring(sub-property of snmp-users)
authen-modeO”MD5"
"SHA”(sub-property of snmp-users)
Enables authentication of the user.
authen-keyCMa string of letters, digits, underscores, or hyphens (0 or more characters)(sub-property of snmp-users)
Only applicable when authen-mode.
The key used in MD5 or SHA based authentication algorithms for user authentication.
privacy-modeCO”DES"
"AES”(sub-property of snmp-users)
Only applicable when authen-mode.
Enables privacy of the user.
privacy-keyCMa string of letters, digits, underscores, or hyphens (0 or more characters)(sub-property of snmp-users)
Only applicable when privacy-mode.
A secret key used by the DES or AES based encryption algorithm for authentication password.
user-typeRO”noAuthNoPriv"
"AuthNoPriv"
"Priv”(sub-property of snmp-users)

Tree Diagrams

+--rw snmp-sources
| +--rw snmp-source* [source-ip udp-port vrf-name]
| +--rw source-ip
| +--rw udp-port
| +--rw vrf-name

Table of Properties

NameRequiredType/RangeDescription
snmp-sourcesMPath-only node, has no configurable value.
source-ipMA.B.C.D
XX:XX:XX:XX:XX:XX:XX:XX(sub-property of snmp-sources)
udp-portM0..65535(sub-property of snmp-sources)
Set snmp source udp port, default: 161
vrf-nameM”default”
vrf name(sub-property of snmp-sources)
Set snmp source vrf, default: default(if use default, will set ” in CONFIG_DB)

Tree Diagrams

+--rw snmp-traps
+--rw snmp-trap* [trap-type]
+--rw trap-type
+--rw trap-ip
+--rw vrf-name?
+--rw udp-port?
+--rw community-name?
+--rw user-name

Table of Properties

NameRequiredType/RangeDescription
snmp-trapsMPath-only node, has no configurable value.
trap-typeM”v1"
"v2c"
"v3”(sub-property of snmp-traps)
trap-ipMA.B.C.D
XX:XX:XX:XX:XX:XX:XX:XX(sub-property of snmp-traps)
vrf-nameO”default”
vrf name(sub-property of snmp-traps)
udp-portO0..65535(sub-property of snmp-traps)
Default value: 162
community-nameCOstring(sub-property of snmp-traps)
Only applicable when trap-type = “v1” or trap-type = “v2c”.
user-nameCMstring(sub-property of snmp-traps)
Only applicable when trap-type = “v3”.