Configuring System Message Control

Configure system message control to suppress duplicate error messages on the console, and to determine the action to take if they occur.

Procedure

  1. Enter Global Configuration mode:

    enable

    configure terminal

  2. Configure system message control action:

    sys msg-control action <both|send-trap|suppress-msg>

  3. Configure the maximum number of messages:

    sys msg-control max-msg-num <2-500>

  4. Configure the interval:

    sys msg-control control-interval <1-30>

  5. Enable message control:

    sys msg-control

Example

Switch:1(config)#sys msg-control action suppress-msg
Switch:1(config)#sys msg-control max-msg-num 10
Switch:1(config)#sys msg-control control-interval 15
Switch:1(config)#sys msg-control

Variable Definitions

The following table defines parameters for the sys msg-control command.

Variable

Value

action <both|send-trap|suppress-msg>

Configures the message control action. You can either suppress the message or send a trap notification, or both. The default is suppress.

control-interval <1-30>

Configures the message control interval in minutes. The valid options are 1–30. The default is 5.

max-msg-num <2-500>

Configures the number of occurrences of a message after which the control action occurs. To configure the maximum number of occurrences, enter a value from 2–500. The default is 5.