- Community Home
- >
- Networking
- >
- Switching and Routing
- >
- Comware Based
- >
- Re: NTP and time change
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-14-2017 02:34 AM
тАО04-14-2017 02:34 AM
NTP and time change
Hi everyone,
I have a mistake for the time management on our switchs. I configured the NTP service like this : ntp-service unicast-server X.X.X.X
But the system time on the switch has 2 hours late. Actually it's 11:27 but on the switch it's 09:27.
I'm in France and we change to the summer time in March (+1 hour) and to the winter time in October (-1 hour) each year.
How can i put the good time ? I saw the commands "clock summer-time ..." and "clock timezone ...". But must I manually change the year in the command "clock summer-time ..." each year ?
Cordially.
- Tags:
- NTP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-14-2017 03:37 AM
тАО04-14-2017 03:37 AM
Re: NTP and time change
Can you specify which HPE/Aruba Switch(es) are you speaking about?
I'm not an HPE Employee

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-14-2017 06:36 AM
тАО04-14-2017 06:36 AM
Re: NTP and time change
Hi Parnassus!
It sounds to me like a Comware switch. It shouldn't matter what switch it is for ntp on a Comware device. The commands are all there.
Since the clock is 2 hours off, that is a much bigger time change than ntp is allowed to make. The way to fix this is to shut off ntp, manually set the time, and then turn ntp back on.
Assuming this is a Comware switch:
- sys
- undo ntp-service unicast-peer (or server) whatever is configured
- quit
- Use the clock datetime command to manually set the clock
- You can also use the clock timezone command to set up your timezone at this point
- sys
- re-enable the ntp server or peer with the ntp-service command and you should be good to go
- save the configuration so it isn't lost
David
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-14-2017 06:46 AM
тАО04-14-2017 06:46 AM
Re: NTP and time change
What is the output of display ntp-service sessions, display clock and display ntp-service status CLI commands?
Since NTP uses UTC you should probably use the clock timezone CET add 01:00:00 (CET is UTC+1 for France between 01/01/2017 and 26/03/2017 and during 29/10/2017 and 31/12/2017; CEST is UTC+2 for France during summer time in between) and the clock summer-time CEST repeating 02:00:00 2000 March last Sunday 02:00:00 2000 October last Sunday 01:00:00 CLI commands to set respectively your Timezone and summertime.
After that check your local time with the display clock command again to see if it matches with your local time in France.
I'm not an HPE Employee

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-14-2017 06:50 AM - edited тАО04-14-2017 06:54 AM
тАО04-14-2017 06:50 AM - edited тАО04-14-2017 06:54 AM
Re: NTP and time change
VoIP-Buddy wrote: Since the clock is 2 hours off, that is a much bigger time change than ntp is allowed to make.
Is that true even if the offset (reported: 2 hours) is exactly equal to the time offset between UTC versus CEST time in France as of today (Summer time)? ...that time offset is exactly 2 hours now (see here).
I mean: NTP client on the Switch appears synchronized...but it is so only against UTC clock because NTP synchronize on UTC...the OP just need to fix the Switch timezone/summertime if he need to see the Switch's clock referring to CET/CEST instead of just UTC.
NTP isn't un-synchronized with an offset so large...or am I missing something?
I'm not an HPE Employee

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-14-2017 06:55 AM
тАО04-14-2017 06:55 AM
Re: NTP and time change
Hi Parnassus!
There are two things working here. NTP base time is UTC. You then need to set the timezone to convert it to local time. If the UTC is 2 hours off you will have to set the time closer to the real time so that NTP can sync.
I wasn't sure if NTP was synchronized at the UTC or if it was 2 hours off from UTC. Maybe we'll get some more information from the original poster to make it more clear.
Regards,
David
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-14-2017 07:00 AM - edited тАО04-14-2017 07:28 AM
тАО04-14-2017 07:00 AM - edited тАО04-14-2017 07:28 AM
Re: NTP and time change
Yep see my above post...the only thing I wasn't aware is that NTP client service should be shutted down and then bring back on again to force a re-synch if the time offset is *so* large that can't be automatically managed correctly (clearly if the issue is only UTC versus CEST/CET, NTP synchronization is not *the* issue). Let we see what OP will report back to us.
I'm not an HPE Employee

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-16-2017 05:04 AM
тАО04-16-2017 05:04 AM
Re: NTP and time change
try:
time timezone 60
timesync sntp
sntp unicast
sntp server priority 1 x.x.x.x
time daylight-time-rule Western-Europe
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-24-2017 03:13 AM
тАО04-24-2017 03:13 AM
Re: NTP and time change
Thanks for your answers.
Our models of switches are 5500 and 3600 series, so 3com.
If i understand, i must change the year with the commande "clock summer-time..." each year ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-24-2017 05:37 AM
тАО04-24-2017 05:37 AM
Re: NTP and time change
No, this is not something that you need to do every year. If the clock is way out of sync with real time, you need to manually set the clock so that it is much closer to the real time and then restart ntp. Once you do that, ntp should be able to sync the time with your time server and you should be good going forward.
Regards,
David
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-26-2017 12:39 AM
тАО04-26-2017 12:39 AM
Re: NTP and time change
I tried your method : disable ntp, set manually the clock then restart the ntp but it didn't work
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-26-2017 06:30 AM
тАО04-26-2017 06:30 AM
Re: NTP and time change
Ricou,
What about setting the timezone?
Can you send the output from the previous display ntp commands so that we can see what is going on. If the display ntp shows that the switches are sync'd to the configured timesource then the issue is a misconfigured timezone.
David
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-26-2017 11:55 PM
тАО04-26-2017 11:55 PM
Re: NTP and time change
Hi,
you need to set the timezone and daylight savings period if your use that in your country. The syntax differs a bit from Comware 5 to 7. (I'm not sure what exact 5500 platform you run and what 3600, but you can see wether its comware 5 or 7 by doing a "display version" and it will give you some version that starts either with "7. " or "5."
For Comware 5. the syntax, if you live in Denmark as an example is:
clock timezone CET add 01:00:00 clock summer-time CEST repeating 02:00:00 2000 March last Sunday 02:00:00 2000 October last Sunday 01:00:00
and for Comware 7. the syntaxis:
clock timezone CET add 01:00:00 clock summer-time CEST 02:00:00 March last Sunday 02:00:00 October last Sunday 01:00:00
you need to adjust timezone and maybe dates as well.
I think maybe France Paris has the same offset from GMT as Copenhagen does, and in fact uses the same daylightsaving dates. So you should be able to just copy the above for the relevant software version. Then enable NTP and be happy :)
Regards.
Region Midtjylland
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-27-2017 12:41 AM - edited тАО04-27-2017 12:42 AM
тАО04-27-2017 12:41 AM - edited тАО04-27-2017 12:42 AM
Re: NTP and time change
VoIP-Buddy,
With "display ntp-service status" i have this information : Reference time: 07:22:54.435 UTC Apr 27 2017(DCAC1ACE.6F6683C2).
Is it what you wanted to see ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-27-2017 01:10 AM
тАО04-27-2017 01:10 AM
Re: NTP and time change
Hi,
Do a "display clock".
and post output.
Regards
Region Midtjylland
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-27-2017 01:18 AM
тАО04-27-2017 01:18 AM
Re: NTP and time change
Hello @Ricou69,
I don't want to be too harsh but, looking this thread, I noticed that @sdide (Yesterday) and I (two Weeks ago) - not to speak about replies from @VoIP-Buddy and @16again too - already suggested you to test some Comware CLI's NTP and Time Zone related commands (especially regarding configuring your correct Time Zone which, IMHO, is the culprit of your reported issue).
Why don't you simply try them and report back here (by doing a Copy and Paste of results)?
What @sdide wrote you yesteday (@VoIP-Buddy suggested that too) is basically the same I wrote you at very beginning (correctly @sdide pointed out the CLI difference between working with Comware 7 versus 5 but the line of reasoning is the same) but you provided us, as of today, *no* answers or just provided fragmented ones adding very few details to fix your problem...isn't it?
Help us to help you.
I'm not an HPE Employee

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-27-2017 01:39 AM
тАО04-27-2017 01:39 AM
Re: NTP and time change
sdide,
Here : 08:38:01 UTC Thu 04/27/2017
It's actually 10:38...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-27-2017 02:14 AM
тАО04-27-2017 02:14 AM
Re: NTP and time change
parnassus,
I already tried the commands with summer-time, timezone, etc. It's ok but at the beggining of each year i will must type the same command with the new year. We have more than 200 switches, so i will must use a script with IMC to do it on all switches, it's not pratical.
sdide,
It's the version 5 :
Comware Software, Version 5.20.99, Release 2220P11 Copyright (c) 2010-2013 Hewlett-Packard Development Company, L.P. HP A5500-48G-PoE+ EI Switch with 2 Interface Slots uptime is 5 weeks, 6 days, 0 hour, 25 minutes HP A5500-48G-PoE+ EI Switch with 2 Interface Slots with 1 Processor 256M bytes SDRAM 32768K bytes Flash Memory Hardware Version is REV.C CPLD Version is 002 Bootrom Version is 721 [SubSlot 0] 48GE+4SFP+POE Plus Hardware Version is REV.C
But i see in your previous reply that with the version 7, you haven't to specify the year, it would be the best ! Unfortunately we have version 5.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-27-2017 02:47 AM - edited тАО04-27-2017 04:08 AM
тАО04-27-2017 02:47 AM - edited тАО04-27-2017 04:08 AM
Re: NTP and time change
Ricou69 wrote: I already tried the commands with summer-time, timezone, etc. It's ok but at the beggining of each year i will must type the same command with the new year.
Are you sure about that?
Time Zone daylight savings commands provided by me and @sdide should set a Daylight savings configuration which repeat itself each Year since an initial Year (year 2000), forever.
Ricou69 wrote: But i see in your previous reply that with the version 7, you haven't to specify the year, it would be the best ! Unfortunately we have version 5.
A Comware 5 version which is, to be clear, about four years old (R2220P11), reference here.
As of today there is R2222P05. It could be a good idea to stay updated...maybe there were NTP related bugs discovered and fixed during this long time interval between R2220Pxx and R2222P05, never say never about that.
I'm not an HPE Employee

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-27-2017 05:33 AM
тАО04-27-2017 05:33 AM
Re: NTP and time change
I know the version is old, i will upgrad the switches soon.
I will use the commands that you told me and i will see in 2018.
Thanks for all for your helps.
Best regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-10-2017 03:10 AM
тАО10-10-2017 03:10 AM
Re: NTP and time change
We're close to 2018, it's just around the corner...so have you solved?
I'm not an HPE Employee

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-24-2020 06:09 AM
тАО08-24-2020 06:09 AM
Re: NTP and time change
Hi there,
Any help on my issue. New 5510 switch installed and configured NTP etc, however it is still 1 hour off even though its sync with NTP server. What is the possible issue. Someone mentioned about having to do it via the GUI first, surely this cannot be true.
I look forwrd to hearing from you.