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).
(Optional) Configuring the eSight Server as the NTP Client

(Optional) Configuring the eSight Server as the NTP Client

You can configure the eSight server as the NTP client in two methods. Only one NTP server can be configured in CLI mode. Multiple NTP servers can be configured on the maintenance tool WebUI. Select a method as required. You can select only one method. Otherwise, conflicts may occur.

(Optional) Configuring the eSight Server as the NTP Client (CLI Mode)

Configure the eSight server as the NTP client in CLI mode. Only one NTP server can be configured.

Context

The configured NTP client cannot be used with the built-in NTP server of the Windows operating system.

Procedure
  1. Stop eSight. For details, see Common Operations and Configuration in Maintenance GuideCommon Operations and Configuration in Maintenance Guide.
  2. Use PuTTY to log in to the server as the root user.
  3. Run the following command 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 commands:

      # 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 9-2.
      • If a scheduled task already exists, modify the task parameter settings to the latest ones.
      Table 9-2 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.

      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.

    NOTE:

    If "no server suitable for synchronization found" is displayed in the ntpdate command output, check the NTP server configurations.

  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. Start eSight. For details, see Common Operations and Configuration in Maintenance GuideCommon Operations and Configuration in Maintenance Guide.

(Optional) Configuring the eSight Server as the NTP Client (WebUI)

This section describes how to configure the eSight server as the NTP client when the NTP server is available. Operations in this section apply to multiple NTP servers.

NOTE:
  • NTP server configuration ensures the consistency between the time of all service nodes. After the NTP server is configured, the NTP server is used as the clock source.
  • If the NTP server is not configured, the management node is used as the clock source.
  • Multiple NTP servers can be configured. The first NTP server must be configured as the active server. Other NTP servers must be configured as standby servers.
  • If multiple NTP servers are configured, the time of the NTP servers must be accurate and consistent. Otherwise, the NTP function may be abnormal.
Prerequisites
  • You have obtained the password for logging in to the maintenance tool.
  • The IP address of the NTP server has been obtained.
Procedure
  1. Log in to the maintenance tool.

    1. In the address box of the browser, enter https://System IP address of eSight:31945/ and press Enter.
    2. Enter the username and password.
    3. Click Login.
      NOTE:
      • For a local two-node cluster, use the floating IP address to log in to the maintenance tool.
      • The maintenance tool provides only one user name sys. The initial password of the sys user is Changeme123.

  1. Choose System > NTP Config from the main menu.
  2. Click Configure NTP in the navigation tree on the left.
  3. Click Add.
  4. In the dialog box that is displayed, enter the IP address of the NTP server in the NTP Server IP Address text box, use the default value Active for Usage, and click OK.
  5. After the NTP configuration task is complete, click OK in the displayed dialog box.
  6. Perform this step only when there are other NTP servers.

    1. Click Add.
    2. In the dialog box that is displayed, enter the IP address of another NTP server in the NTP Server IP Address text box, use the default value Standby for Usage, and click OK.
    3. After the NTP configuration task is complete, click OK in the displayed dialog box.
      NOTE:

      If there are multiple NTP servers, you must delete standby NTP servers before deleting the active NTP server.

Download
Updated: 2019-09-02

Document ID: EDOC1100011860

Views: 104016

Downloads: 158

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