Dragon0x40
asked on
Can I get time of day from logging?
I have a 3750 switch.
Cisco IOS Software, C3750 Software (C3750-IPBASE-M), Version 12.2(35)SE5, RELEASE SOFTWARE (fc1)
The log only shows uptime but not hours.
Even if I could change the logging configuration for uptime to include hours, minutes, secs, etc. would it change the information for log events that have already occured?
I am trying to get more information as to when Gi1/0/3 went down and how much time in between each event.
Can I change the prompt and get more information?
>sh logging | inc GigabitEthernet1/0/3
1y40w: %LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet1/0/3, changed state to down
1y40w: %LINK-3-UPDOWN: Interface GigabitEthernet1/0/3, changed state to down
1y40w: %LINK-3-UPDOWN: Interface GigabitEthernet1/0/3, changed state to up
1y40w: %LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet1/0/3, changed state to up
1y40w: %LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet1/0/3, changed state to down
1y40w: %LINK-3-UPDOWN: Interface GigabitEthernet1/0/3, changed state to down
1y40w: %LINK-3-UPDOWN: Interface GigabitEthernet1/0/3, changed state to up
1y40w: %LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet1/0/3, changed state to up
1y40w: %LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet1/0/3, changed state to down
1y40w: %LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet1/0/3, changed state to up
1y40w: %LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet1/0/3, changed state to down
Cisco IOS Software, C3750 Software (C3750-IPBASE-M), Version 12.2(35)SE5, RELEASE SOFTWARE (fc1)
The log only shows uptime but not hours.
Even if I could change the logging configuration for uptime to include hours, minutes, secs, etc. would it change the information for log events that have already occured?
I am trying to get more information as to when Gi1/0/3 went down and how much time in between each event.
Can I change the prompt and get more information?
>sh logging | inc GigabitEthernet1/0/3
1y40w: %LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet1/0/3, changed state to down
1y40w: %LINK-3-UPDOWN: Interface GigabitEthernet1/0/3, changed state to down
1y40w: %LINK-3-UPDOWN: Interface GigabitEthernet1/0/3, changed state to up
1y40w: %LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet1/0/3, changed state to up
1y40w: %LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet1/0/3, changed state to down
1y40w: %LINK-3-UPDOWN: Interface GigabitEthernet1/0/3, changed state to down
1y40w: %LINK-3-UPDOWN: Interface GigabitEthernet1/0/3, changed state to up
1y40w: %LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet1/0/3, changed state to up
1y40w: %LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet1/0/3, changed state to down
1y40w: %LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet1/0/3, changed state to up
1y40w: %LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet1/0/3, changed state to down
Also:
service timestamps log datetime msec
service timestamps log datetime msec
ASKER
thanks ampranti,
Will this change the information in the log about events that have already been logged?
Will this change the information in the log about events that have already been logged?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
You can customize the above commands according your needs..