CISCO IoT FND and TPS Servers User Guide

IoT FND and TPS Servers

Product Information

Specifications:

  • Product Name: Cisco IoT FND and TPS servers
  • Functionality: Time and Timezone synchronization using NTP
    Service

Product Usage Instructions

Setting the Time and Timezone Using NTP Service:

Use the following steps to synchronize the time between the host
VM and the docker:

  1. Run the command to edit the chrony.conf file:
    Example:
    [root@iot-fnd ~]# nano /etc/chrony.conf
  2. Enter the IP address of the NTP server you want to use in the
    chrony.conf file:
    Example:
    server 209.165.200.225
  3. Save the changes, exit, and restart the chrony service:
    Example:
    [root@iot-fnd ~]# systemctl restart chronyd
  4. To view the configured NTP server, use the following
    command:
    Example:
    [root@iot-fnd ~]# chronyc sources

Frequently Asked Questions (FAQ)

Q: How do I check if the time synchronization is
successful?

A: You can check the synchronization status by running the
command ‘timedatectl status’ on the Host VM.

“`

Setting the Time and Timezone Using NTP Service
Use the timedatectl command on the Host VM to perform following operations to sync the time between the host and the docker:
· Displaying the Current Date and Time: timedatectl · Changing the Current Time: timedatectl set-time HH:MM:SS · Changing the Current Date: timedatectl set-time YYYY-MM-DD · Listing the Time Zone: timedatectl list-timezones · Changing the Time Zone: timedatectl set-timezone time_zone · Enabling NTP Service: timedatectl set-ntp yes
· Configuring NTP Server, on page 2
Setting the Time and Timezone Using NTP Service 1

Configuring NTP Server

Setting the Time and Timezone Using NTP Service

Configuring NTP Server
To configure the NTP server on Cisco IoT FND and TPS servers, follow the steps given.
Procedure

Step 1
Step 2 Step 3 Step 4 Step 5

Run the command to edit the chrony.conf file. Example:
[root@iot-fnd ~]# nano /etc/chrony.conf
This will display the current chrony.conf file details. Enter the IP address of the server that you want to use as the NTP server. Example:
server 209.165.200.225

Save the changes by selecting Y and exit. Restart the chrony service using the command given in the example.
Example:
[root@iot-fnd ~]# systemctl restart chronyd

To view the NTP server you configured, use the command given in the example.

Example:

[root@iot-fnd ~]# chronyc sources

MS Name/IP address

Stratum Poll Reach LastRx Last sample

===============================================================================

^* 209.165.200.225

2 10 377 915 +17us[ +19us] +/- 21ms

The newly configured NTP server details are displayed.

Setting the Time and Timezone Using NTP Service 2

Documents / Resources

CISCO IoT FND and TPS Servers [pdf] User Guide
IoT FND and TPS Servers, FND and TPS Servers, TPS Servers, Servers

References

Leave a comment

Your email address will not be published. Required fields are marked *