06-27-2005 11:45 PM
Hi All,
If I want switch send log for port up/down, When I using "logging event link-status" command in the port level configuration, the console and syslog server will receviced the port up/down message with port number, but this is difficulty to map the port number with Server or PC, can I do some configuraion let the switch send syslog message including port number and port description ?
thanks
Amber
07-03-2005 08:44 AM
No, this is not possible.
07-03-2005 10:30 PM
Does a Device Fault Manager has a reporting tool regarding link status of ports? how abou on Inventories of RME?
07-12-2005 01:43 PM
Not sure what you are asking here. But this is what we get in our syslog. Is this what you are talking about.
Jul 12 06:24:54 10.102.151.13 14919: Jul 12 06:18:05: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/20, changed state to down
Jul 12 06:24:58 10.102.151.13 14920: Jul 12 06:18:10: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/20, changed state to up
07-15-2005 07:27 PM
Most likely what you are looking to end up with is something that (to my knowledge) is not an option for syslog/traps.
If I understand your question right you want to basically what JB has posted except instead of FastEthernet0/20 you also want additional info about the port that went down. For example, If fa0/20 has server ABC-prod on it, you wanna see ABC-prod in your message. This can be easily done which a syslog-ng, mysql, rancid or switchmap, and a simple PHP frontend to correlate the info.
Simply setup a few tables. one for hosts (that would be your common key between all they tables), one with a list of interfaces and their desciptions (this should also have the device name [phx-sw01.acme.com] included), and finally the table that all your syslog data gets dumped into. You can choose to keep the hosts table or drop it and just index each table based on a auto-increment and use a MUL key based on the device [phx-sw01.acme.com].
Write a simple PHP frontend to re-write your message the way you want. This should be fairly easy to do if you have experience with programing.
Hope that helps.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide