Page 1 of 1

Lost Date and Time at each reboot

Posted: 13 Sep 2023 08:34
by fripouille
Hello,

I’m asking this question because I’ve already had this problem.

I’d like to know if there’s a way for the switch to keep the date and time configuration on each reboot, since I don’t have an NTP server on the network.

Another question: Is it possible to configure a switch as an NTP server for other switches?

We have two OS6865-U28X core switches and OS2360-P24/48X edge switches.

Thanks for your reply.

Re: Lost Date and Time at each reboot

Posted: 13 Sep 2023 10:12
by ruemelin
Hi,

not sure if the switch has a RTC-module that would keep the time sync during a reboot.
For the NTP, as far as I know the NTP-Server should be enabled by default you can check with

Code: Select all

show ip service
and enable with

Code: Select all

ip service ntp admin-state enable
The switch that should sync would need

Code: Select all

ntp server $ip-of-ntp-server-enabled-switch
ntp client admin-state enable
At least on my OS6860-switch it works that way.

Best Regards

Re: Lost Date and Time at each reboot

Posted: 13 Sep 2023 10:38
by fripouille
Thanks for your reply.

I've got the NTP server active, it sees the client request but doesn't retrieve the date and time info...

On the core :
SURETE|COEUR [U1&U2] -> sh ntp server client-list
Total: 1
IP Address Ver Key
---------------------------------------------+---+-------+
172.30.0.5

On the distribution switch :
sSURETE|SR02 [U1&U2] -> sh ntp status
Current time: Tue, Sep 27 2022 11:22:56.100 (CEST),
Last NTP update: -,
Server reference: INIT,
Client mode: enabled,
Broadcast client mode: disabled,
Broadcast delay (microseconds): 4000,
Clock status: unsynchronized,
Stratum: 16,
Maximum Associations Allowed: 128,
Authentication: disabled,
VRF Name: default

SURETE|SR02 [U1&U2] -> sh configuration snapshot ntp
! NTP:
ntp server 172.30.0.1
ntp client admin-state enable

Re: Lost Date and Time at each reboot

Posted: 13 Sep 2023 10:45
by ruemelin
Hi,

had a look in the mgmt-guide:
To disable an NTP client from invoking tests for NTP server synchronization, enter the ntp server
unsynchronized command, as shown:

->

Code: Select all

ntp server unsynchronized
Disabling peer synchronization tests allows the NTP client to synchronize with either an NTP peer that is
not synchronized with an atomic clock or a network of NTP servers that will finally synchronize with an
atomic clock
So I guess this command is needed on the distirbution switch, as the core switch does not sync with a atomic clock or other NTP-server.

Regards

Re: Lost Date and Time at each reboot

Posted: 13 Sep 2023 11:27
by fripouille
I've tried this command, but I don't think it exists on OS5...

SURETE|SR02 [U1&U2] -> ntp server ?
^
<num.num.num.num> <string>
(System Service & File Mgmt Command Set)

SURETE|SR02 [U1&U2] -> sh microcode
/flash/working
Package Release Size Description
-----------------+-------------------------+---------+-----------------------------------
Taos.img 5.1.43.R02 64370736 Alcatel-Lucent OS

Re: Lost Date and Time at each reboot

Posted: 14 Sep 2023 03:54
by silvio
the ntp option unsynchronized isn't available anymore (since 3...4 years). This means that the used ntp server (f.e. other switch) needs a connection to a ntp source with better than stratum 16.

Re: Lost Date and Time at each reboot

Posted: 15 Sep 2023 04:05
by fripouille
So whatever happens, I need an external NTP server.

Re: Lost Date and Time at each reboot

Posted: 18 Sep 2023 05:31
by silvio
correct :-)