cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2003
Views
5
Helpful
5
Replies

Date and time in logging

mkumailali
Level 1
Level 1

Hi all

i have two issue

1)I have a Fiber switch C3508G-XL i set date with clock set command when it become reboot it lose its date and time and go back to default date like 1-Mar-1993 like this so please help how i change date and time it remain in this switch

2) when i check its logging i.e sh logging then it show like this

Pad3-F-Switch#sh logg

Syslog logging: enabled (0 messages dropped, 10 flushes, 0 overruns)

Console logging: level debugging, 1068 messages logged

Monitor logging: level debugging, 0 messages logged

Buffer logging: level debugging, 534 messages logged

File logging: disabled

Trap logging: level debugging, 538 message lines logged

Logging to 10.84.0.251, 481 message lines logged

Log Buffer (4096 bytes):

nterface GigabitEthernet0/3, changed state to down

5w6d: %LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/3, changed state to down

5w6d: %LINK-3-UPDOWN: Interface GigabitEthernet0/3, changed state to up

5w6d: %LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/3, changed state to up

5w6d: %LINK-3-UPDOWN: Interface GigabitEthernet0/8, changed state to down

5w6d: %LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/8, changed state to down

5w6d: %LINK-3-UPDOWN: Interface GigabitEthernet0/8, changed state to up

so please help me how can i cheack logging status and its time when problem start and when its up

5 Replies 5

inayathulla1
Level 1
Level 1

Hi,

Could you please paste the output of show version???

Please check the Conf reg value once.

Regards,

Inayath

Hi sir

This is version so please

Pad3-F-Switch#sh ver

Cisco Internetwork Operating System Software

IOS (tm) C3500XL Software (C3500XL-C3H2S-M), Version 12.0(5)WC11, RELEASE SOFTWARE (fc1)

Copyright (c) 1986-2005 by cisco Systems, Inc.

Compiled Tue 11-Jan-05 10:23 by antonino

Image text-base: 0x00003000, data-base: 0x00351B48

ROM: Bootstrap program is C3500XL boot loader

Pad3-F-Switch uptime is 6 weeks, 1 day, 16 hours, 37 minutes

System returned to ROM by reload

System restarted at 22:12:04 UTC Tue Nov 4 2008

System image file is "flash:c3500xl-c3h2s-mz.120-5.WC11.bin"

cisco WS-C3508G-XL (PowerPC403) processor (revision 0x01) with 8192K/1024K bytes of memory.

Processor board ID FAA0515K084, with hardware revision 0x01

Last reset from warm-reset

Processor is running Enterprise Edition Software

Cluster command switch capable

Cluster member switch capable

8 Gigabit Ethernet/IEEE 802.3 interface(s)

32K bytes of flash-simulated non-volatile configuration memory.

Base ethernet MAC Address: 00:05:9B:CD:16:00

Motherboard assembly number: 73-3985-07

Power supply part number: 34-0940-01

Motherboard serial number: FAA051402DM

Power supply serial number: NONE

Model revision number: A0

Motherboard revision number: B0

Model number: WS-C3508G-XL-EN

System serial number: FAA0515K084

Configuration register is 0xF

Pad3-F-Switch#

Thanks

Kumail

Hi Kumail,

Thanks for the information.

Here you go the Configuration register is 0xF ...I request you to change it to 0x2102 and hopefully your problem will get resolved.

Please do it and let me know your update after that.....

Regards

Inayath.

Hi sir

I did try config reg command to my switch but i am unable to apply this command so please can you tell me how i did use this command on switch

Thanks

Kumail

Joseph W. Doherty
Hall of Fame
Hall of Fame

"Some platforms have a hardware clock that is separate from the software clock. In Cisco IOS software syntax, the hardware clock is called the "calendar." The hardware clock is a battery-powered chip that runs continuously, even if the router is powered off or rebooted. After you set the hardware clock, the software clock will be automatically set from the hardware clock when the system is restarted or when the clock read-calendar EXEC command is issued. The time specified in this command is relative to the configured time zone. "

I.e. if you don't have the hardware clock, you'll lose the date/time everytime you reboot. If you do have hardware clock, you'll need to set it. Don't know whether your device has the hardware clock.

BTW: both clocks can drift, both can be kept accurate using NTP.

PS: There's also a IOS command, clock save interval, that saves current time to NVRAM or during shutdown. This would keep the running clock from starting at the default, and would be close with a reload. Might not be supported on your device.

How time is recorded in the syslog can be adjusted.

The command you want in your configuration is:

service timestamps log datetime

There are additional options:

[ uptime | datetime [msec] [localtime] [show-timezone] [year] ]

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: