Specifications
2-321
Catalyst 4500 Se ries S wit ch C is co IO S C om mand R efer ence —Re lease I OS XE 3 .3.0 XO(1 5.1 (1)XO)
OL_28738 -01
Chapter 2 Cisco IOS Commands for the Catalyst 4500 Series Switches
logging event link-status (interface configuration)
logging event l ink-status ( interface con figuration)
To enable the link-status event messaging on an interface, use the logging event link-status comman d.
Use the no form of this command to disable link-status event messaging. Use the
logging event link-status use-global command to apply the global link-status setting.
logging event link-status
no logging event link-status
logging event link-status use-global
Defaults Global link-st atus messaging is enab led.
Command Modes Interface configur ation mode
Usage Guidelines To enable system logging of interface state-change events on a specif ic interface, enter the
logging event link-status command in interface configuration mode.
To enable system logging of interface stat e-change events on all inter faces in the system, ent er the
logging event link-status global command in globa l configuration mode. All interfaces without the
state change event configuration use the global setting.
Examples This example shows how to enable logging event sta te-change events on interf ace gi11/1:
Switch# config terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)# interface gi11/1
Switch(config-if)# logging event link-status
Switch(config-if)# end
Switch#
This example shows how to turn off logging event link status regardless of th e global setting:
Switch# config terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)# interface gi11/1
Switch(config-if)# no logging event link-status
Switch(config-if)# end
Switch#
This example shows how to enable the global event link-status setting on interface gi11/1:
Switch# config terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)# interface gi11/1
Switch(config-if)# logging event link-status use-global
Switch(config-if)# end
Switch#