No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

eSight V300R009C00 Single-Node System Software Installation Guide (SUSE Linux) 10

Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Configuring eSight Servers as the NTP Clients (Linux)

Configuring eSight Servers as the NTP Clients (Linux)

If eSight is deployed in a two-node cluster, both the active and standby eSight servers must be configured as NTP clients to ensure that time is consistent between the active and standby servers.

Context

  • The configured NTP client cannot be used with the built-in NTP server of the Windows operating system.
  • Only one NTP server is supported.

Procedure

NOTE:

The following steps are performed on the active server. When the steps are completed, you need to repeat them on the standby server.

  1. Stop eSight. For details, see "Common Operations and Configuration" in the Maintenance Guide"Common Operations and Configuration" in the Maintenance Guide.
  2. Use PuTTY to log in to the operating system of the active server as the root user.
  3. Run the following commands to configure the IP address of the NTP server clock source:

    # echo "server 10.136.249.23 iburst" >> /etc/ntp.conf

    # echo "controlkey 1" >> /etc/ntp.conf

    In the command, 10.136.249.23 is the IP address of the clock source. Change it based on the site requirements.

  4. Configure the NTP service to start automatically upon server startup.

    • In the SUSE 11 operating system, run the following command:

      # chkconfig ntp on

    • In the SUSE 12 operating system, run the following command:

      # chkconfig ntpd on

      Created symlink from /etc/systemd/system/multi-user.target.wants/ntpd.service to /usr/lib/systemd/system/ntpd.service.

  5. Run the following commands to harden the NTP:

    # sed -i '/^restrict[[:space:]].*$/d' /etc/ntp.conf

    # sed -i '$a\restrict -4 default notrap nomodify nopeer noquery' /etc/ntp.conf

    # sed -i '$a\restrict -6 default notrap nomodify nopeer noquery' /etc/ntp.conf

    # sed -i '$a\restrict 127.0.0.1' /etc/ntp.conf

    # sed -i '$a\restrict ::1' /etc/ntp.conf

  6. Restart the NTP client service.

    • In the SUSE 11 operating system, run the following command:

      # service ntp restart

    • In the SUSE 12 operating system, run the following command:

      # service ntpd restart

  7. Set the scheduled task for restarting the NTP client service.

    1. Run the following command to set the restart time:

      #crontab -e

    2. Press i to enter the editing mode.
    3. Add the following information to set a restart task:
      • In the SUSE 11 operating system, run the following command:

        0 1 * * * source /etc/profile; service ntp restart

      • In the SUSE 12 operating system, run the following command:

        0 1 * * * source /etc/profile; service ntpd restart

      NOTE:
      • In the information, 0 1 * * * indicates that the restart task is executed at 01:00 every day. Set the restart task parameters based on Table 12-3.
      • If a scheduled task already exists, modify the task parameter settings to the latest ones.
      Table 12-3 crontab file format

      Location

      Description

      Value Range

      First row

      Minute

      0-59

      Second row

      Hour

      0-23, of which the value 0 indicates the midnight.

      Third row

      Day

      0-31

      Fourth row

      Month

      1-12

      Fifth row

      Week

      0-7, of which the values 0 and 7 indicate Sunday and Saturday, respectively.

      Sixth row

      Command to be executed

      -

    4. Press Esc to exit the editing mode. Enter :wq to save the modification and exit the file.

  8. Execute the time synchronization task.

    • In the SUSE 11 operating system, run the following commands:

      # service ntp stop

      # ntpdate -u 10.137.77.188

      # service ntp start

    • In the SUSE 12 operating system, run the following commands:

      # service ntpd stop

      # ntpdate -u 10.137.77.188

      # service ntpd start

    In the command, 10.137.77.188 is the IP address of the NTP server. Change it based on the site requirements.

  9. Check whether the NTP client is correctly configured.

    1. Check whether the IP address of the NTP server is correctly configured.

      # ntpq -p

       remote           refid      st t when poll reach   delay   offset  jitter
      ==============================================================================
       10.137.77.188   .INIT.          16 u    -  512    0    0.000    0.000   0.000

      If the IP address of the NTP server is displayed, the configuration is successful.

    2. Check whether the scheduled task is successfully configured.

      # crontab -l

      0 1 * * * source /etc/profile; service ntpd restart

      If the scheduled task information configured in 7 is displayed, the configuration is correct.

  10. Starting eSight. For details, see "Common Operations and Configuration" in the Maintenance Guide"Common Operations and Configuration" in the Maintenance Guide.
Download
Updated: 2019-09-02

Document ID: EDOC1100011860

Views: 105362

Downloads: 158

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next