Ankur, I believe this command is not supported in the current IOS that the poster is running "cat4000-i5s-mz.121-20.EW4 ". You need atleast 12.2.25SG to run the " logging event link-status " command under the interface.
Tahseen, Please check if you can run that command and let us know.
I think to solve this problem, you need to upgrade your switch to IOS 12.25SG to run the commands as posted by Ankur and also check the link below:
See what u r saying is fine but I would like to tell you that whenever i shut interface manually and make no shut i see the log messages counter increasing by 2 which is right but it doesn't display message,Any comment
We both agree with you on this. You see the counter incearing under the interface but you dont see " link up/down" log neither when you console nor when you telnet/ssh to the switch. This was a problem in earlier versions that the IOS wasnot logging the link up/down messages, which has been rectified in IOS 12.2.25SG by introducing the command" looging event link status " under the interface mode or in the global config mode.
You are running an older version of IOS in the switch, so I am in doubt if that command is supported.You can upgrade the switch to atleast 12.2.25SG and then use the command as listed and you should be fine with it.
We are pleased to announce availability of Beta software for 16.6.3. 16.6.3 will be the second rebuild on the 16.6 release train targeted towards Catalyst 9500/9400/9300/3850/3650 switching platforms. We are looking for early feedback from custome...