config switch-controller snmp-community
Configure FortiSwitch SNMP v1/v2c communities globally.
config switch-controller snmp-community
Description: Configure FortiSwitch SNMP v1/v2c communities globally.
edit <id>
set name {string}
set status [disable|enable]
config hosts
Description: Configure IPv4 SNMP managers (hosts).
edit <id>
set ip {user}
next
end
set query-v1-status [disable|enable]
set query-v1-port {integer}
set query-v2c-status [disable|enable]
set query-v2c-port {integer}
set trap-v1-status [disable|enable]
set trap-v1-lport {integer}
set trap-v1-rport {integer}
set trap-v2c-status [disable|enable]
set trap-v2c-lport {integer}
set trap-v2c-rport {integer}
set events {option1}, {option2}, ...
next
end
config switch-controller snmp-community
Parameter name |
Description |
Type |
Size |
||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
name |
SNMP community name. |
string |
Maximum length: 35 |
||||||||||||
status |
Enable/disable this SNMP community. |
option |
- |
||||||||||||
|
|
||||||||||||||
query-v1-status |
Enable/disable SNMP v1 queries. |
option |
- |
||||||||||||
|
|
||||||||||||||
query-v1-port |
SNMP v1 query port (default = 161). |
integer |
Minimum value: 0 Maximum value: 65535 |
||||||||||||
query-v2c-status |
Enable/disable SNMP v2c queries. |
option |
- |
||||||||||||
|
|
||||||||||||||
query-v2c-port |
SNMP v2c query port (default = 161). |
integer |
Minimum value: 0 Maximum value: 65535 |
||||||||||||
trap-v1-status |
Enable/disable SNMP v1 traps. |
option |
- |
||||||||||||
|
|
||||||||||||||
trap-v1-lport |
SNMP v2c trap local port (default = 162). |
integer |
Minimum value: 0 Maximum value: 65535 |
||||||||||||
trap-v1-rport |
SNMP v2c trap remote port (default = 162). |
integer |
Minimum value: 0 Maximum value: 65535 |
||||||||||||
trap-v2c-status |
Enable/disable SNMP v2c traps. |
option |
- |
||||||||||||
|
|
||||||||||||||
trap-v2c-lport |
SNMP v2c trap local port (default = 162). |
integer |
Minimum value: 0 Maximum value: 65535 |
||||||||||||
trap-v2c-rport |
SNMP v2c trap remote port (default = 162). |
integer |
Minimum value: 0 Maximum value: 65535 |
||||||||||||
events |
SNMP notifications (traps) to send. |
option |
- |
||||||||||||
|
|
config hosts
Parameter name |
Description |
Type |
Size |
---|---|---|---|
ip |
IPv4 address of the SNMP manager (host). |
user |
Not Specified |