Aruba & ProVision-based
1753786 Members
7772 Online
108799 Solutions
New Discussion юеВ

Re: Time and date is resetting itself back to default

 
nils-norway
Occasional Contributor

Time and date is resetting itself back to default

I have a HP Procurve 2530-switch that I use the following commands to set the time and date in CLI:

config
time 01/23/2015 15:07:45
wr mem
reboot
y

 

When the switch has booted up again, the time/date that I defined is still there.

But if I use the command boot instead of reboot, it is resetting itself back to default, which is 01/01/1990.

The same happens if I pull out the power cord or the power goes down. I would think the switch remembered this setting, since I used the command for writing the changes to the memory of the switch.

 

Someone that could come with any suggestion?!

3 REPLIES 3
FranoM
Advisor

Re: Time and date is resetting itself back to default

Hello,

 

This model has no battery inside to keep (logs and) time in memory.

 

Use ntp server to re-synchronise the time and date when the swich is rebooted.

 

Regards,

Zab
Occasional Visitor

Re: Time and date is resetting itself back to default

Hi how would I be able to configure (connect to ntp server) my switch if am on the pacific region.

TerjeAFK
Respected Contributor

Re: Time and date is resetting itself back to default

Like this:

 

timesync sntp
sntp unicast
sntp server priority 1 0.us.pool.ntp.org
sntp server priority 2 1.us.pool.ntp.org
time daylight-time-rule continental-us-and-canada
time timezone 60

 

This requires that you have DNS servers setup on your switch:

 

ip dns server-address priority 1 8.8.8.8