Mike's PBX Cookbook

Set the Time with NTP

The Linux (UCM/Signalling Server) time of day clock may be more accurate than the Call Server's. We can enable the NTP daemon (optionally synced with an external server) on the Primary Security Server (UCM0), and reference it to synchronise the time and date on all elements - including the Call Server. Call Pilot can also synchronise with a network time server.

Note: Having the correct time and date set (on all elements) is very important in Rel. 7.5!
If SSH security certificates become invalid, elements can drop-out of the security domain.

1 Set the Primary Linux Base first: Base Manager Date & Time NTP Server type Primary Server: Internal

- The "Type of clock source" can be Internal (independent), or External (synchronised).
- In the case of External, enter the IP address of a "higher authority" NTP server (must be reachable).

2 Point the Backup base (UCM1) to the primary NTP server (UCM0) ELAN IP address (the CS is on the ELAN).

- NTP server type for UCM1 can be Secondary, or Not a Clock Server. For either case, enter the primary server address.
- NTP server type for other Linux elements (eg, MAS) is Not a Clock Server, and enter the primary server address.

The Linux Base configuration is complete.

The following images show the relevant (Rel. 7.5) UCM screens:

Base: Date and Time
Internal Clock Source
External Clock Source
Not a Clock Server
Click image to view, or right-click and Open Link in a new window/tab

3 Next, configure the Call Server and enable NTP in LD 117 with the following commands:

=> chg ntp ipaddr <ip UCM0 or NTP server>
=> en ntp
=> sync ntp manual

sync ntp manual will query the NTP server network time, if found.
Check the correct time is returned. If the UTC offset is wrong, enter n and correct it with (hours and minutes):

=> chg utcoffset <hr> 0

When sync ntp manual returns the correct date and time, hit y to accept it.
Then issue:

=> sync ntp background
to have the Call Server date and time update automatically (stop ntp background to disable).

Note: NTP time servers are generally configured to serve only UTC time (Coordinated Universal Time).
Daylight savings time adjustment can be set to take place automatically on the Call Server in LD 2.
NTP must be disabled to make changes in LD 2. Refer to Setting Time and Date for more details.

NTP server check:

You can quickly check if an NTP server is responding in Mac OS X terminal with the SNTP <hostname-or-IP> command:

$ sntp
2014 Nov 11 05:22:08.527749 -0.125693 +/- 0.001083 secs

After the date and time, the response also shows that the NTP server is 0.125693 seconds behind the Mac's local clock (subtract 0.125693 seconds from the local clock to correct it), and that the server time is believed to be correct to within +/- 0.001083 seconds.

Set Date and Time Manually:

Enabling NTP disables being able to set the date and time in LD2 - trying to do so will give TFC errors.
Therefore, to manually change date and time (if the NTP server is unreachable) we must first disable NTP (ADMIN2).

In LD 117:

=> stop ntp background
=> dis ntp

Then goto LD 2, and enter:

. STAD <day> <month> <year> <hour> <minute> <second>

Example: < - Current time. Enter this command exactly as shown.

LD 117 NTP Command Summary:

CHG NTP IPADDRConfigure the IP addresses for the Primary and/or Secondary NTP Servers.
CHG NTP THRESHConfigure the 3 NTP threshold levels (Minimum, Warning, Maximum).
CHG NTP SECUREConfigure the parameters used by the Primary and/or Secondary NTP servers in secure mode of operation.
CHG NTP AUTHMODEConfigure the security mode for the Primary, Secondary, or both, NTP servers.
CHG NTP TIMEINTConfigure the time interval for background NTP synchronization and offset from other background routines.
CHG UTCOFFSETConfigure the time offset (from UTC) for the local time zone.
STAT NTPCheck Status of NTP.
SYNC NTPSynchronize NTP servers manually or in background mode.
STOP NTP BACKGROUNDStop background synchronization from running.
PRT NTPDisplay the current configuration parameters of NTP.

LD 117 Example Output:

>ld 117

=> chg ntp ipaddr             - configure primary NTP server IP

NTP Server's IP address is configured
Primary IP Address:
Secondary IP Address:
The secured parameters for the changed IP address has been reset

=> stat ntp                                - print NTP status information

Primary IP address:
Secondary IP address:
UTC Offset: 00:00
Last Updated: 00:00:00 on 0-0-0
Delta: 00
Threshold: NORMAL
Security Mode for Primary: INSECURE
Security Mode for Secondary: INSECURE
Synchronization Status: INACTIVE

Packets Sent: 0
Packets Received: 0
Primary IP address:
Secondary IP address:
UTC Offset: 00:00
Delta: 00
Threshold: NORMAL
Security Mode for Primary: INSECURE
Security Mode for Secondary: INSECURE
Syncing Mode: INACTIVE

Date and Time: 08:26:19 on 18-5-2012
Type of Error: SCH1689

=> en ntp                                       - enable NTP
NTP is running in CS mode.
Mode of security for Primary:INSECURE
Mode of security for Secondary:INSECURE
NTP feature is enabled.

=> sync ntp manual                              - check the server responds
Trying do not abort from overlay till sync operation is executed
NTP is not running in secured mode
" ERR0061": Delta between server clock and system clock exceeds the critical threshold level.

NTP Server Time is 08:48:53 on 18-5-2012
Do you want to update the time (y/n)? [n]y      - yes, I do!

Updated Call Server Time to 08:49:01 on 18-5-2012


Home » Meridian » Admin » Time Ntp