event mat
To publish an event when a mac-address is learned in the mac-address-table, use the event mat command in applet configuration mode. To disable the publishing of events, use the no form of this command.
event [tag event-tag] mat {interface {type number | regexp interface-name} [mac-address mac-address] | mac-address mac-address [interface {type number | regexp interface-name}]} [maxrun maxruntime-number] [hold-down seconds] [type {add | delete}]
no event mat
Syntax Description
tag |
(Optional) Specifies a tag using the event-tag argument that can be used with the trigger command to support multiple event statements within an applet. |
event-tag |
(Optional) String that identifies the tag. |
interface |
Specifies the interface. |
type number |
Interface type and number. |
regexp interface-name |
Specifies a regular expression pattern to match against interface names. |
mac-address |
Specifies the MAC address. |
mac-address |
The MAC address. |
maxrun |
(Optional) Specifies the maximum runtime of the applet. If the maxrun keyword is specified, the maxruntime-number value must be specified. If the maxrun keyword is not specified, the default applet run time is 20 seconds. |
maxruntime-number |
(Optional) Number of seconds specified in ssssssss[.mmm] format, where ssssssss must be an integer representing seconds from 0 to 31536000, and where mmm must be an integer representing milliseconds between 0 and 999. |
hold-down |
(Optional) Specifies the time to delay the event processing. |
seconds |
(Optional) Number that represents seconds and optional milliseconds in the format ssssssssss[.mmm]. The range for seconds is from 1 to 4294967295. The range for milliseconds is from 0 to 999. If using milliseconds only, specify the milliseconds in the format 0.mmm. |
type |
(Optional) Monitors the MAC address table events. You must specify one of the following options:
|
Command Default
By default, no events are published.
Command Modes
Applet configuration (config-applet)
Command History
Release |
Modification |
---|---|
12.2(52)SE |
This command was introduced. |
12.2(54)SG |
This command was integrated into Cisco IOS Release 12.2(54)SG. |
Usage Guidelines
You must specify either interface or mac-address. If one of them is specified, the other one is optional. All the keywords can be used in any combination.
Examples
The following example shows how to publish an event when a mac-address is learned in the mac-address-table:
Router(config)# event manager applet mat
Router(config-applet)# event mat interface fastethernet0 hold-down 34 type delete
Router(config-applet)#