ntp-service max-dynamic-sessions

Function

The ntp-service max-dynamic-sessions command sets the maximum number of dynamic NTP sessions that a device can set up.

The undo ntp-service max-dynamic-sessions command restores the maximum dynamic NTP session to the default value.

By default, a maximum of 100 sessions are allowed to be set.

Format

ntp-service max-dynamic-sessions number

undo ntp-service max-dynamic-sessions

Parameters

Parameter Description Value
number

Sets the maximum number of dynamic NTP sessions allowed to be set up.

The value is an integer ranging from 0 to 100. The default value is 100.

Views

System view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
ntp write

Usage Guidelines

Usage Scenario

This command limits the number of dynamic sessions only.

Precautions

Note the following when using the ntp-service max-dynamic-sessions command:

  • This command limits the number of dynamic sessions only.
  • Unicast server/client mode symmetric active modes are configured using the command line. So, sessions between them are static. Sessions set up in the symmetric passive, broadcast, and multicast modes are dynamic.
  • This command does not affect the existing NTP sessions. If the number of dynamic sessions exceeds the upper limit, dynamic sessions will not be created anymore.

The ntp-service max-dynamic-sessions command is only run on a client. The server does not record the number of NTP sessions.

If this command is the first NTP configuration command, the system automatically adds the ntp-service server disable/ntp-service ipv6 server disable command in the configuration file to disable the NTP service. To enable the NTP service, run the undo ntp-service server disable/undo ntp-service ipv6 server disable command. If this command is the last NTP configuration command to be deleted, the system automatically deletes the ntp-service server disable/ntp-service ipv6 server disable command from the configuration file.

Example

# Set the maximum number of NTP dynamic sessions allowed to be set up to 50.
<HUAWEI> system-view
[~HUAWEI] ntp-service max-dynamic-sessions 50
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >