< Home

ntp-service max-dynamic-sessions

Function

The ntp-service max-dynamic-sessions command sets the maximum dynamic NTP session allowed to be set up.

The undo ntp-service max-dynamic-sessions command restores the default.

By default, 100 sessions are allowed to be set up.

Format

ntp-service max-dynamic-sessions number

undo ntp-service max-dynamic-sessions

Parameters

Parameter Description Value

number

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

The value is in the range of 0 to 100. By default, it is 100.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

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

  • This command limits the number of only dynamic sessions, not static sessions.

  • Using this command does not affect the NTP session that has been set up. When the number of sessions exceeds the limitation, session cannot be set up any more.

  • Configure this command only on the client. The server does not record the number NTP sessions.

Unicast server/client mode and peer mode are configured through the command line. So, sessions between them are static. Sessions set up in the broadcast, multicast and manycast modes are dynamic.

Example

# Set the maximum NTP dynamic sessions allowed to be set up to 50.

<sysname> system-view
[sysname] ntp-service max-dynamic-sessions 50
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >