cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2720
Views
0
Helpful
4
Replies

logging event link-status with port description

amber.chan
Level 1
Level 1

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

4 Replies 4

No, this is not possible.

Regards, LG
*** Please Rate All Helpful Responses ***

Does a Device Fault Manager has a reporting tool regarding link status of ports? how abou on Inventories of RME?

jbhunt
Level 1
Level 1

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

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.