Extending System Message Control

Use the force message control option to extend the message control feature functionality to the software and hardware log messages.

About this task

To enable the message control feature, you must specify an action, control interval, and maximum message number. After you enable the feature, the log messages that get repeated and cross the maximum message number in the control interval, trigger the force message feature. You can either suppress the message or send a trap notification, or both.

Procedure

  1. Enter Global Configuration mode:

    enable

    configure terminal

  2. Configure the force message control option:

    sys force-msg WORD<4-4>

Example

Add a force message control pattern. If you use a wildcard pattern (****), all messages undergo message control.

Switch:1>enable
Switch:1#configure terminal
Switch:1(config)#sys force-msg ****

Variable Definitions

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

Variable

Value

WORD<4-4>

Adds a forced message control pattern, where WORD<4-4> is a string of 4 characters. You can add a four-byte pattern into the force-msg table. The software and the hardware log messages that use the first four bytes that match one of the patterns in the force-msg table undergo the configured message control action. You can specify up to 32 different patterns in the force-msg table, including a wildcard pattern (****) as well. If you specify the wildcard pattern, all messages undergo message control.