Fortinet white logo
Fortinet white logo

CLI Reference

config system alert-snmp-trap

config system alert-snmp-trap

Use this command to configure SNMP alert traps.

Syntax

config system alert-snmp-trap

edit "snmp_trap_name"

set ip <ipv4 address>

set version {version1|version2c|version3}

set trapport-local <integer>

set trapport-remote <integer>

next

end

snmp_trap_name

Add or edit a table value

ip

The IP address of the SNMP trap server.

version

The version of the SNMP trap server.

trapport-local

The local trap port number of the SNMP server.

trapport-remote

The remote trap port number of the SNMP server.

Example

config system alert-snmp-trap

edit "1"

set ip 10.0.11.16

set version version2c

set trapport-local 162

set trapport-remote 162

next

end

config system alert-snmp-trap

config system alert-snmp-trap

Use this command to configure SNMP alert traps.

Syntax

config system alert-snmp-trap

edit "snmp_trap_name"

set ip <ipv4 address>

set version {version1|version2c|version3}

set trapport-local <integer>

set trapport-remote <integer>

next

end

snmp_trap_name

Add or edit a table value

ip

The IP address of the SNMP trap server.

version

The version of the SNMP trap server.

trapport-local

The local trap port number of the SNMP server.

trapport-remote

The remote trap port number of the SNMP server.

Example

config system alert-snmp-trap

edit "1"

set ip 10.0.11.16

set version version2c

set trapport-local 162

set trapport-remote 162

next

end