Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements
Webcast-Catalyst9k
New Member

Log port connections and disconnections

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
Hall of Fame Super Blue

Re: Log port connections and disconnections

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

Purple

Re: Log port connections and disconnections

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

5 REPLIES
New Member

Re: Log port connections and disconnections

(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.

Hall of Fame Super Blue

Re: Log port connections and disconnections

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

New Member

Re: Log port connections and disconnections

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.

Purple

Re: Log port connections and disconnections

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

New Member

Re: Log port connections and disconnections

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.

334
Views
0
Helpful
5
Replies
CreatePlease to create content