Link to home
Start Free TrialLog in
Avatar of Dragon0x40
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
Avatar of ampranti
ampranti
Flag of Greece image

conf tservice timestamps debug datetime msec

You can customize the above commands according your needs..
Also:
service timestamps log datetime msec
Avatar of Dragon0x40
Dragon0x40

ASKER

thanks ampranti,

Will this change the information in the log about events that have already been logged?
ASKER CERTIFIED SOLUTION
Avatar of ampranti
ampranti
Flag of Greece image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial