Configure System Message Control

About this task

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> enable

Switch:1# configure terminal

Configure system message control to suppress duplicate error messages on the console and send a trap notification:

Switch:1(config)# sys msg-control action both

Configure the number of occurrences of a message after which the control action occurs:

Switch:1(config)# sys msg-control max–msg–num 2

Configure the message control interval in minutes:

Switch:1(config)# sys msg-control control–interval 3

Enable message control:

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.