set snmp-traps

Description

Configure, enable or disable traps from the list, the enabled traps are sent to the trap receivers.

Syntax

set snmp traps trap-name <trap-name> [ enable <enable> ] [ severity <severity> ] [ repetitions <repetitions> ] [ repetitions-delay <repetitions-delay> ] [ threshold <threshold> ]

Parameters

Parameter

Description

enable

Enable or disable whether a trap is sent for the specific event.

Type: Boolean (true/false)

repetitions

Repetitions on trap sending times between 0 - 10, optional field.

Type: A number with no fractional part (integer).

repetitions-delay

Wait time (in seconds) between sending each trap, optional field.

Type: A number with no fractional part (integer).

severity

Trap hazardous level, optional field, severity of the trap between 1 - 4.

Type: A number with no fractional part (integer).

threshold

The mathematical value associated with the thresholds.

Type: A number with no fractional part (integer).

trap-name

Trap event name.

Options: trap-name

Example

set snmp traps trap-name interface-disconnected enable true severity -1000000 repetitions -1000000 repetitions-delay -1000000 threshold -1000000