cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2147
Views
0
Helpful
5
Replies

Log port connections and disconnections

Dave Ewart
Level 1
Level 1

I've just upgraded the supervisor engine in my old 4006s (from Sup-II to Sup-II+) and all is well.  This has also brought a migration from CatOS to IOS.  Previously (under Sup-II and CatOS) I was able to record to syslog each individual port connection and disconnection, e.g.:  Oct 25 09:39:11 westcomms 2010 Oct 25 08:39:10 UTC +00:00 %ETHC-5-PORTTOSTP:Port 3/48 joined bridge port 3/48 Oct 25 09:39:17 westcomms 2010 Oct 25 08:39:16 UTC +00:00 %ETHC-5-PORTFROMSTP:Port 3/48 left bridge port 3/48  This logging information is actually very useful for troubleshooting, but I can't find any way to reinstate this under IOS.  I have syslogging enabled and other messages are correctly appearing there.  How can I record the above under my new setup?  Thanks...  Dave.

2 Accepted Solutions

Accepted Solutions

Dave

You don't say which IOS you are using but usually with 4500/6500 using IOS you need to add this to each interface -

int gi3/1

logging event link-status

Jon

View solution in original post

  If you want it on all ports , at the global level "logging event link-status default"  .

View solution in original post

5 Replies 5

Dave Ewart
Level 1
Level 1

(Urgh, horrible editor, let's try formatting that a little better...)

I've just upgraded the supervisor engine in my old 4006s (from Sup-II to  Sup-II+) and all is well.  This has also brought a migration from CatOS  to IOS.  Previously (under Sup-II and CatOS) I was able to record to  syslog each individual port connection and disconnection, e.g.:

Oct 25  09:39:11 westcomms 2010 Oct 25 08:39:10 UTC +00:00  %ETHC-5-PORTTOSTP:Port 3/48 joined bridge port 3/48

Oct 25 09:39:17  westcomms 2010 Oct 25 08:39:16 UTC +00:00 %ETHC-5-PORTFROMSTP:Port 3/48  left bridge port 3/48

This logging information is actually very useful  for troubleshooting, but I can't find any way to reinstate this under  IOS.

I have syslogging enabled and other messages are correctly  appearing there.  How can I record the above under my new setup?

Thanks...

Dave.

Dave

You don't say which IOS you are using but usually with 4500/6500 using IOS you need to add this to each interface -

int gi3/1

logging event link-status

Jon

logging event link-status

That's exactly what I need, thanks Jon.  I guess this defaults to OFF on the larger chassis switches, but is ON by default on the smaller switches (I've got a 3750 which doesn't require the above).

Excellent, cheers,

Dave.

  If you want it on all ports , at the global level "logging event link-status default"  .

glen.grant wrote:

  If you want it on all ports , at the global level "logging event link-status default"  .

Ah, that's useful, Glen, thanks.  It seems to "logging event link-status global" on my switch, but this is a better general solution.

Cheers,

Dave.