This post is more than 5 years old

1 Rookie

 • 

106 Posts

4283

October 11th, 2016 07:00

Change ntp server without reboot

Hello all

I'm trying to setup ntp server on unity 500.

I've tried with this command uemcli -d Y.Y.146.100 -u admin -p XXXX /net/ntp/server create -server X.X.2.25

But I receive the following messages

Operation failed. Error code: 0x60008f4

A reboot is required to set the Date and Time. Please use the reboot dialog box from the GUI or specify allowDU/allowReboot option from the CLI to reboot and set the time. (Error Code:0x60008f4)

How can setup ntp without reboot..this box is just in production and I'm not able to reboot all the system

thanks

Matteo

169 Posts

October 11th, 2016 18:00

What Unity box is this?. Can you raise a SR for this?.

If you want to try yourself, you can try to adjust the time with little difference (say 15 mins from current time) - repeat this several times until the time is close to the NTP servers time.

To check the difference from unity ssh login:

00:37:51 service@none-spa spa:~> ntpdc -c sysinfo X.X.2.25

***Warning changing to older implementation

***Warning changing the request packet size from 160 to 48

system peer:          Y.Y.146.100

system peer mode:     client

leap indicator:       00

stratum:              2

precision:            -16

root distance:        0.02322 s

root dispersion:      0.01038 s

reference ID:         [Y.Y.146.100]

reference time:       dba81027.be7cd000  Wed, Oct 12 2016  1:28:07.744 <-- this is the time at ntp server

system flags:         ntp calibrate

jitter:               389.283691 s

stability:            126.760 ppm

broadcastdelay:       0.003906 s

authdelay:            0.000122 s

00:41:14 service@none-spa spa:~> ntpdate -q X.X.2.25

server X.X.2.25, stratum 2, offset 2841.831678, delay 0.27527

12 Oct 00:41:42 ntpdate[23238]: step time server X.X.2.25 offset 2841.831678 sec

00:41:42 service@none-spa spa:~> date

Wed Oct 12 00:43:24 UTC 2016

Above example, the local time is 2841 seconds (47 minutes) behind ntp time.

Using unisphere GUI, increment the time to 15 mins (many repeats required) until the time is with in 10 minutes of ntp server (Below is full example using uemcli)

00:45:20 service@none-spa spa:~> uemcli -u admin -p pass  /sys/time set -utc "2016-10-12 1:30:00" -force noReboot <-- too much diff, failed because, it requires reboot

Operation failed. Error code: 0x60008f5

A reboot is required to set the Date and Time. Please use the reboot dialog box from the GUI or specify allowDU/allowReboot option from the CLI to reboot and set the time. (Error Code:0x60008f5)

00:46:28 service@none-spa spa:~> date; uemcli -u admin -p pass  /sys/time set -utc "2016-10-12 1:00:00" -force noReboot

Wed Oct 12 00:46:59 UTC 2016

Operation completed successfully.

01:00:57 service@none-spa spa:~> date; uemcli -u admin -p pass  /sys/time set -utc "2016-10-12 1:15:00" -force noReboot

Wed Oct 12 01:01:03 UTC 2016

Operation completed successfully.

01:15:34 service@none-spa spa:~> date; uemcli -u admin -p pass  /sys/time set -utc "2016-10-12 1:30:00" -force noReboot

Wed Oct 12 01:15:41 UTC 2016

Operation completed successfully.

01:32:34 service@none-spa spa:~> ntpdate -q X.X.2.25

server X.X.2.25, stratum 2, offset 270.622916, delay 0.27530

12 Oct 01:35:22 ntpdate[20689]: step time server X.X.2.25 offset 270.622916 sec

01:35:27 service@none-spa spa:~> ntpdc -c sysinfo X.X.2.25

***Warning changing to older implementation

***Warning changing the request packet size from 160 to 48

system peer:          Y.Y.146.100

system peer mode:     client

leap indicator:       00

stratum:              2

precision:            -16

root distance:        0.00063 s

root dispersion:      0.01045 s

reference ID:         [Y.Y.146.100]

reference time:       dba8129a.b8d83000  Wed, Oct 12 2016  1:38:34.722

system flags:         ntp calibrate

jitter:               0.000000 s

stability:            78.712 ppm

broadcastdelay:       0.003906 s

authdelay:            0.000122 s

Only 4 mins diff now (270 seconds)

01:35:34 service@none-spa spa:~> uemcli -u admin -p pass  /net/ntp/server create -server X.X.2.25 -force noReboot

ID = NTP_DefaultId_X.X.2.25

Operation completed successfully.

No Events found!

Top