config community
Description: Configure SNMP v1/v2 community settings.
config community
edit <name>
set *name {string}
set status [enable | disable]
set hosts <name1>, <name2>, …
set query-v1-status [enable | disable]
set query-v1-port [1 – 65535]
set query-v2-status [enable | disable]
set query-v2-port [1 – 65535]
set trap-v1-status [enable | disable]
set trap-v1-lport [1 – 65535]
set trap-v1-rport [1 – 65535]
set trap-v2c-status [enable | disable]
set trap-v2c-lport [1 – 65535]
set trap-v2c-rport [1 – 65535]
set events <name1>, <name2>, …
unset
next
show
end
delete <name>
purge
show
end
| Parameter | Description | Type | Size | Default | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| name | Name of the SNMP community. | string | - | none | ||||||||||||||||
| status | The status of the SNMP community configuration. | option | - | disable | ||||||||||||||||
|
||||||||||||||||||||
| hosts | SNMP community host names. | option | - | none | ||||||||||||||||
| query-v1-status | Status of SNMP v1 queries. | option | - | disable | ||||||||||||||||
|
||||||||||||||||||||
| query-v1-port | SNMP v1 query port number. | integer | 1 - 65535 | 161 | ||||||||||||||||
| query-v2-status | Status of SNMP v2 queries. | option | - | disable | ||||||||||||||||
|
|
|
|||||||||||||||||||
| query-v2-port | SNMP v2 query port number. | integer | 1 - 65535 | 161 | ||||||||||||||||
|
trap-v1-status |
Status of SNMP v1 traps. |
option |
- |
disable |
||||||||||||||||
|
|
|
|||||||||||||||||||
|
trap-v1-lport |
SNMP v1 trap local port. |
integer |
1 - 65535 | 162 | ||||||||||||||||
|
trap-v1-rport |
SNMP v1 trap remote port. |
integer |
1 - 65535 | 162 | ||||||||||||||||
|
trap-v2-status |
Status of SNMP v2 traps. |
option |
- |
disable |
||||||||||||||||
|
|
|
|||||||||||||||||||
|
trap-v2-lport |
SNMP v2 trap local port. |
integer |
1 - 65535 | 162 | ||||||||||||||||
|
trap-v2-rport |
SNMP v2 trap remote port. |
integer |
1 - 65535 | 162 | ||||||||||||||||
|
events |
SNMP trap events. |
option |
- |
none |
||||||||||||||||
|
|
|
|||||||||||||||||||