跳转到内容
Ask AI

NTP

此内容尚不支持你的语言。

URLGETPOSTPATCHPUTDELETE
/rest/v1/rpc/clock-datetimeNYNNN
/rest/v1/running/ntp-globalYNYNN
/rest/v1/running/ntp-keys/{key-id}YYNNY
/rest/v1/running/ntp-servers/{address}YYNNY
/rest/v1/rpc/ntp-synchronizeNYNNN
/rest/v1/rpc/show-ntpNYNNN
POST HTTPS://{switch IP}/rest/v1/rpc/ntp-synchronize
{
"server": "192.0.0.1"
}
POST HTTPS://{switch IP}/rest/v1/rpc/show-ntp
PATCH HTTPS://{switch IP}/rest/v1/running/ntp-global
{
"enabled": "false",
"authentication": "true",
"fast-jump": "false",
"vrf": "mgmt"
}
PATCH HTTPS://{switch IP}/rest/v1/running/ntp-global
[{
"op": "add",
"path": "source-interface",
"value": ["Loopback0"]
},
{
"op": "remove",
"path": "source-interface/Mgmt0"
}]
POST HTTPS://{switch IP}/rest/v1/running/ntp-keys
{
"key-id": 3,
"type": "sha256",
"key-value": "password"
}
POST HTTPS://{switch IP}/rest/v1/running/ntp-servers
{
"address": "10.250.0.2",
"key-id": 1
}

Tree Diagrams

+--rw ntp-global
| +--rw enabled?
| +--rw authentication?
| +--rw fast-jump?
| +--rw vrf?
| +--rw source-interface*

Table of Properties

NameRequiredType/RangeDescription
ntp-globalMPath-only node, has no configurable value.
Global configuration of ntp
enabledO”true"
"false”(sub-property of ntp-global)
The NTP state.
Default value: “true”
authenticationO”true"
"false”(sub-property of ntp-global)
The NTP authentication state.
Default value: “false”
fast-jumpO”true"
"false”(sub-property of ntp-global)
Configure NTP synchronous step mode to fast jump.
vrfO”mgmt"
"default”(sub-property of ntp-global)
NTP can be enabled only in one VRF at a time. In this revision, it is either default VRF or Management VRF.
Default value: “default”
source-interfaceOEthernet name
Link-aggregation name
Vlan1..4094
Loopback0..199
”Mgmt0”(sub-property of ntp-global)
This is the interface whose IP address is used as the source IP address for generating NTP traffic. User is required to make sure that the NTP server is reachable via this IP address and the same IP address is reachable from the NTP server. The source interface should be in the same VRF as the VRF NTP is enabled in.

Tree Diagrams

+--rw ntp-servers
| +--rw ntp-server* [address]
| +--rw address
| +--rw key-id?

Table of Properties

NameRequiredType/RangeDescription
ntp-serversMPath-only node, has no configurable value.
addressMA.B.C.D
XX:XX:XX:XX:XX:XX:XX:XX(sub-property of ntp-servers)
This server address is a simple ntp server address, It is only used to synchronize the time with the server.
key-idO0..4294967295(sub-property of ntp-servers)
|

Tree Diagrams

+--rw ntp-keys
+--rw ntp-key* [key-id]
+--rw key-id
+--rw type
+--rw key-value

Table of Properties

NameRequiredType/RangeDescription
ntp-keysMPath-only node, has no configurable value.
NTP authentication key configuration
key-idM0..4294967295(sub-property of ntp-keys)
The key-id is used to identify the key, and the key-id is unique.
typeM”md5"
"sha1"
"sha256"
"sha384"
"sha512”(sub-property of ntp-keys)
The type is used to store the key encryption type, and the key encryption type is md5 by default.
key-valueMstring(sub-property of ntp-keys)
The value is used to store the encrypted key value.

Tree Diagrams

+---x ntp-synchronize
| +---w input
| | +---w server
| | +---w unprivileged?
| +--ro output
| +--ro text?

Table of Properties

NameRequiredType/RangeDescription
ntp-synchronizeMPath-only node, has no configurable value.
Synchronize the time with the ntp server.
serverMA.B.C.D
XX:XX:XX:XX:XX:XX:XX:XX(sub-property of input)
The server address is used to synchronize the time with the server.
unprivilegedO”true"
"false”(sub-property of input)
The unprivileged is used to determine whether the user has the right to synchronize the time.
Default value: “false”
textROstring(sub-property of output)

Tree Diagrams

+---x show-ntp
| +--ro output
| +--ro text?

Table of Properties

NameRequiredType/RangeDescription
show-ntpMPath-only node, has no configurable value.
Display NTP info.
textROstring(sub-property of output)

Tree Diagrams

+---x clock-datetime
+---w input
+---w YMD
+---w HMS

Table of Properties

NameRequiredType/RangeDescription
clock-datetimeMPath-only node, has no configurable value.
Set the system clock date and time.
YMDMstring(sub-property of input)
HMSMstring(sub-property of input)