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

FusionServer Pro E9000 Server iBMC (Earlier Than V250) User Guide 31

This document describes the underlying management software Intelligent Baseboard Management Controller (iBMC) of the servers.
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).
NTP Commands

NTP Commands

Querying NTP Information (ntpinfo)

Function

The ntpinfo command is used to query Network Time Protocol (NTP) information of the iBMC.

Format

ipmcget -d ntpinfo

Parameters

None

Usage Guidelines

None

Example

# Query iBMC NTP information.

iBMC:/->ipmcget -d ntpinfo
Status             : enabled
Mode               : dhcpv4
Preferred Server   : 192.168.2.26
Alternative Server : 192.168.2.77
Synchronize        : successful
Auth Enable        : disabled
Group Key          : not imported

Setting NTP State (ntp -d status)

Function

The ntp -d status command is used to enable or disable NTP.

Format

ipmcset -t ntp -d status -v status

Parameters

Parameter

Description

Value

status Specifies the NTP setting.
  • enabled
  • disabled

Usage Guidelines

NA

Example

# Enable NTP.

iBMC:/->ipmcset -t ntp -d status -v enabled
Set NTP enable status (enabled) successfully.

# Query NTP information.

iBMC:/->ipmcget -d ntpinfo
Status             : enabled
Mode               : dhcpv6
Preferred Server   : 2016:ed8:77b5:0:192:168:2:26
Alternative Server : 2016:ed8:77b5:0:192:168:9:77
Synchronize        : successful
Auth Enable        : disabled
Group Key          : not imported

Setting the Method for Obtaining NTP Information (ntp -d mode)

Function

The ntp -d mode command is used to set the mode for obtaining NTP information.

Format

ipmcset -t ntp -d mode -v mode

Parameters

Parameter

Description

Value

mode Specifies the mode for obtaining NTP information.
  • manual: manually sets NTP information.
  • dhcpv4: automatically obtains NTP information using DHCPv4.
  • dhcpv6: automatically obtains NTP information using DHCPv6.

Usage Guidelines

If mode is DHCPv4, the time zone data is automatically obtained.

Example

# Enable NTP information to be manually set.

iBMC:/->ipmcset -t ntp -d mode -v manual
Set NTP mode (manual) successfully.

# Query NTP information.

iBMC:/->ipmcget -d ntpinfo
Status : enabled
Mode               : manual
Preferred Server   : 192.168.2.26
Alternative Server : 192.168.2.99
Synchronize        : successful
Auth Enable        : disabled
Group Key          : not imported

Setting an Address for the Preferred NTP Server (ntp -d preferredserver)

Function

The ntp -d preferredserver command is used to set an address for the preferred NTP server.

Format

ipmcset -t ntp -d preferredserver -v addr

Parameters

Parameter

Description

Value

addr Specifies the IP address of the preferred NTP server. The value can be any of the following:
  • IPv4 address
  • IPv6 address
  • Domain name

Usage Guidelines

The iBMC only supports Linux NTP servers.

Example

# Set the preferred NTP server address to dhcp1.com.

iBMC:/->ipmcset -t ntp -d preferredserver -v dhcp1.com
Set NTP preferred server (dhcp1.com) successfully.

# Query NTP information.

iBMC:/->ipmcget -d ntpinfo
Status             : enabled
Mode               : manual
Preferred Server   : dhcp1.com
Alternative Server : 2016:ed8:77b5:0:192:168:9:78
Synchronize        : sucessful
Auth Enable        : disabled
Group Key          : not imported

Setting an Address for the Alternative NTP Server (ntp -d alternativeserver)

Function

The ntp -d alternativeserver command is used to set an address for the alternative NTP server.

Format

ipmcset -t ntp -d alternativeserver -v addr

Parameters

Parameter

Description

Value

addr Specifies the address of the alternative NTP server. The value can be any of the following:
  • IPv4 address
  • IPv6 address
  • Domain name

Usage Guidelines

The iBMC only supports Linux NTP servers.

Example

# Set the alternative NTP server address to 2001::1234.

iBMC:/-> ipmcset -t ntp -d alternativeserver -v 2001::1234
Set NTP alternative server (2001::1234) successfully.

# Query NTP information.

iBMC:/->ipmcget -d ntpinfo
Status             : enabled
Mode               : manual
Preferred Server   : dhcp1.com
Alternative Server : 2001::1234
Synchronize        : sucessful
Auth Enable        : disabled
Group Key          : not imported

Setting NTP Server Authentication (ntp -d authstatus)

Function

The ntp -d authstatus command is used to set the NTP server authentication status.

  • If authentication is enabled, authentication is performed before communication between the iBMC and the NTP server is established.
  • If authentication is disabled, no authentication is performed before communication between the iBMC and the NTP server is established.

Format

ipmcset -t ntp -d authstatus -v status

Parameters

Parameter

Description

Value

status Specifies whether an authentication is required.
  • enabled
  • disabled

Usage Guidelines

If authentication is enabled, the NTP group key must be uploaded to the iBMC.

Example

# Enable authentication for NTP servers.

iBMC:/->ipmcset -t ntp -d authstatus -v enabled
Set NTP enable status (enabled) successfully.

# Query NTP information.

iBMC:/->ipmcget -d ntpinfo
Status             : enabled
Mode               : manual
Preferred Server   : dhcp1.com
Alternative Server : 2001::1234
Synchronize        : sucessful
Auth Enable        : enabled
Group Key          : not imported

Uploading the NTP Group Key (ntp -d groupkey)

Function

The ntp -d groupkey command is used to upload the NTP group key to the iBMC. The NTP group key is used for identity authentication before communication between the iBMC and the NTP server is established.

Format

ipmcset -t ntp -d groupkey -v filepath

Parameters

Parameter

Description

Value

filepath Specifies the file that contains the group key. In the /file path/file name format. For example, /tmp/ntp.keys.

Usage Guidelines

Before running this command, use a file transfer tool that supports SFTP, for example WinSCP, to transfer the key file to the specified directory (for example /tmp) of the iBMC file system.

Example

# Upload the NTP group key to the iBMC.

iBMC:/->ipmcset -t ntp -d groupkey -v /tmp/ntp.keys
Set NTP group key (/tmp/ntp.keys) successfully.

# Query NTP information.

iBMC:/->ipmcget -d ntpinfo
Status             : enabled
Mode               : manual
Preferred Server   : dhcp1.com
Alternative Server : 2001::1234
Synchronize        : sucessful
Auth Enable        : enabled
Group Key          : imported 
Translation
Download
Updated: 2019-08-01

Document ID: EDOC1000058833

Views: 219485

Downloads: 1936

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