Log interface link changes

Post Reply
ilugo
Member
Posts: 5
Joined: 04 Apr 2013 07:47
Location: Lisbon, Portugal

Log interface link changes

Post by ilugo »

Hello,

I would like to enable logging of interface link changes (port 1/3 changed to link DOWN, etc).

I assume this can be done by changing the log level of the appropriate application / subapplication, but I do not know which one. In previous AOS versions I knew the command would be:

Code: Select all

swlog appid INTERFACE level debug1
I know I can see the list of applications using show swlog appid all, but that list is very long and it's not very easy to guess which app/subapp does precisely what. Short of putting them all in debug level until I find the correct one, I was hoping someone here knew...
Israel G. Lugo
Network Administrator
Instituto Superior Técnico
silvio
Alcatel Unleashed Certified Guru
Alcatel Unleashed Certified Guru
Posts: 1886
Joined: 01 Jul 2008 10:51
Location: Germany

Re: Log interface link changes

Post by silvio »

with following dshell-commands you can global activate swlog also for port-up/down:

> dshell
Working: [Kernel]->esmDebugLevel=4
esmDebugLevel = 0x91d0900: value = 4 = 0x4

Working: [Kernel]->exit

You can check it:
> show log swlog timestamp 10/29/2012 00:00

Time Stamp Application Level Log Message
------------------------+--------------+-------+--------------------------------
MON OCT 29 12:07:11 2012 INTERFACE info 1/3: link -
MON OCT 29 12:07:17 2012 INTERFACE info 1/3: link +


And for deaktivate of this feature pls use:

> dshell
Working: [Kernel]->esmDebugLevel=3
Working: [Kernel]->exit

regards
Silvio
silvio
Alcatel Unleashed Certified Guru
Alcatel Unleashed Certified Guru
Posts: 1886
Joined: 01 Jul 2008 10:51
Location: Germany

Re: Log interface link changes

Post by silvio »

now I have seen you have a 10k. I'm not sure about the correct command for R7. Please check the cli-guide for it. Maybe there is an other way.
regards
Silvio
ilugo
Member
Posts: 5
Joined: 04 Apr 2013 07:47
Location: Lisbon, Portugal

Re: Log interface link changes

Post by ilugo »

Hello,

Thank you for your response. Indeed I am running a 10k.

For switches running AOS 6.x I know it can be done by raising the loglevel of the INTERFACE app. For the 10k, all I could learn from the cli-guide was how to set the loglevel of a specific app/subapp, and how to get a list of them, but there are so many... e.g. ChassisSupervisor alone has 24 subapps.

I think I'll just try the old fashioned way; elevating the loglevel for everything and plugging a cable, to see which app talks about it.

Regards,
Israel G. Lugo
Network Administrator
Instituto Superior Técnico
Post Reply

Return to “OmniSwitch 10k”