FortiMail™ Secure Messaging Platform Version 3.0 MR4 CLI Reference
340 06-30004-0420-20080814
system snmp community set
system snmp community
Use this command to set and configure the system simple network management protocol (SNMP) settings.
Syntax

set system snmp community number <community_int> config {name <name_str>

| queryportv1 <port_int> | queryportv2c <port_int> | queryv1_status

{enable | disable} | queryv2c_status {enable | disable} | status

{enable | disable} | trapevent {cpu | mem | logdisk | maildisk | deferq

| virus | spam | system | raid |ha |archive | ipchg | psu} |

trapportv1_local <port_int>| trapportv1_remote <port_int>|

trapportv2c_local <port_int>| trapportv2c_remote <port_int>|

trapv1_status {enable | disable} | trapv2c_status {enable | disable} }

Keywords and Variables Description
number <community_int> Enter the number of this SNMP community.
name <name_str> Enter the name of this SNMP community
{queryportv1 |
queryportv2c} <port_int> Select the port to listen on for SNMP traffic. The defaults are port 161 for v1
and port 162 for v2c.
{queryv1_status |
queryv2c_status}
{enable | disable}
Activate or deactivate SNMP v1 and v2c traffic.
status
{enable | disable} Activate or deactivate this SNMP community.
trapevent {cpu | mem |
logdisk | maildisk |
deferq | virus | spam |
system | raid | ha |
archive | ipchg | psu}
Select one or more events that will generate a trap when the event occurs or
when the threshold is passed. The events are:
cpu - CPU usage threshold
mem - Memory low threshold
logdisk - Logdisk space low threshold
maildisk - Maildisk space low threshold
deferq - Deferred queue threshold
virus - Virus threshold
spam - Spam threshold
system - System component event
raid - RAID system event
ha - HA system event
archive - Remote archive server event
ipchg - Interface IP address changed
psu - Power supply unit (PSU) event
System events typically involve a change in state of hardware.
To set SNMP trap thresholds, see “set system snmp {sysinfo | threshold}” on
page34 2.
{trapportv1_local |
trapportv1_remote |
trapportv2c_local |
trapportv2c_remote }
<port_int>
Select the ports SNMP v1 and v2c use to send traps to SNMP monitors.
{trapv1_status |
trapv2c_status} {enable
| disable}
Activate or deactivate SNMP v1 and v2c traps