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

Command Reference

OceanStor 18000 and 18000F V5 Series V500R007

This document is applicable to OceanStor 18500 V5, 18800 V5, 18500F V5, and 18800F V5. Based on the CLI provided by the DeviceManager, this document describes how to use variouscommands classified by functions and how to set the CLI and manage the storage system throughthese commands. The document that you browse online matches the latest C version of the product. Click Download to download documents of other C versions.
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).
change system ntp

change system ntp

Function

The change system ntp command is used to configure the NTP. Run this command if you want the storage system to synchronize its time with that of an NTP server.

Format

change system ntp enabled=? [ server_ip=? ntp_interval=? ntp_unit=? ]

Parameters

Parameter

Description

Value

enabled=?

Whether to enable the time synchronization function.

The value can be "yes" or "no", where:

  • "yes": enables NTP time synchronization.
  • "no": disables the NTP time synchronization.

server_ip=?

IP address of the NTP server. When enabled=? is set to yes, this parameter is valid and mandatory.

The value can be an IPv4 or IPv6 address.

ntp_interval=?

Synchronization period. When enabled=? is set to yes, this parameter is valid and mandatory. This parameter has been deprecated, it can be configured and queried, but has no actual meaning, NTP synchronizes the time automatically.

The maximum synchronization period is 10 days and the minimum synchronization period is 60 seconds.

ntp_unit=?

Unit of the synchronization period. When enabled=? is set to yes, this parameter is valid and mandatory. This parameter has been deprecated, it can be configured and queried, but has no actual meaning, NTP synchronizes the time automatically.

The value can be "day", "hour", "minute" or "second", where:

  • day: The synchronization period is expressed in days.
  • hour: The synchronization cycle is expressed in hours.
  • minute: The synchronization period is expressed in minutes.
  • second: The synchronization period is expressed in seconds.

Level

Super administrator

Usage Guidelines

The command is used to configure only one NTP server. The "add ntp_server general", "remove ntp_server general", "change ntp_server config", and "show ntp_server general" commands are used to configure two NTP servers and a server address can be a domain name. You are advised to use the preceding four commands to configure NTP servers.

  • The time synchronization function is enabled only when enabled=? is set to yes.
  • If you configure NTP for the first time, run change system ntp enabled=? server_ip=? ntp_interval=? ntp_unit=? to enable the time synchronization function and configure an IP address for the NTP server and the synchronization period.
  • This command is invisible to adapt to the NTP authentication feature.

Example

Enable time synchronization. The NTP server address is 192.168.65.23 and the synchronization period is 24 hours.

admin:/>change system ntp enabled=yes server_ip=192.168.65.23 ntp_interval=24 ntp_unit=hour 
WARNING: You are about to change the system network time protocol (NTP) configuration.This operation may affect system licenses, alarms, and SystemReporter. 
Suggestion: Make sure that you want to change the system NTP configuration before performing the operation. 
Have you read warning message carefully?(y/n)y 
Are you sure you really want to perform the operation?(y/n)y 
Command executed successfully.

System Response

None

Translation
Download
Updated: 2019-07-11

Document ID: EDOC1000181601

Views: 310112

Downloads: 39

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