IPI-NTP
Configure feature enable
Use this attribute to enable or disable NTP feature.
Attribute Name: feature-enable
Attribute Type: boolean
Netconf edit-config payload
<ntp xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-ntp">
<vrfs>
<vrf>
<vrf-name>management</vrf-name>
<config>
<vrf-name>management</vrf-name>
</config>
<feature-enable>true</feature-enable> <!-- operation="delete"-->
</vrf>
</vrfs>
</ntp>
Command Syntax
feature ntp (vrf management|)
Configure vrf name
Use this attribute to enable or disable NTP feature.
Attribute Name: feature-enable
Attribute Type: boolean
Netconf edit-config payload
<ntp xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-ntp">
<vrfs>
<vrf>
<vrf-name>management</vrf-name>
<config>
<vrf-name>management</vrf-name>
</config>
<feature-enable>true</feature-enable> <!-- operation="delete"-->
</vrf>
</vrfs>
</ntp>
Command Syntax
no feature ntp (vrf management|)
Configure enable ntp
Use this attribute to enable or disable NTP server
Attribute Name: enable-ntp
Attribute Type: boolean
Netconf edit-config payload
<ntp xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-ntp">
<vrfs>
<vrf>
<vrf-name>management</vrf-name>
<config>
<vrf-name>management</vrf-name>
</config>
<enable-ntp>true</enable-ntp> <!-- operation="delete"-->
</vrf>
</vrfs>
</ntp>
Command Syntax
ntp enable (vrf management|)
Configure enable logging
Use this attribute to specify the vrf for which ntp feature is enabled
Attribute Name: vrf-name
Attribute Type: string
Attribute Name: enable-logging
Attribute Type: empty
Netconf edit-config payload
<ntp xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-ntp">
<vrfs>
<vrf>
<vrf-name>management</vrf-name>
<config>
<vrf-name>management</vrf-name>
</enable-logging><!-- operation="delete"-->
</config>
</vrf>
</vrfs>
</ntp>
Command Syntax
ntp logging (vrf management|)
Configure enable local master
Use this attribute to configure the device as an NTP server.
Attribute Name: enable-local-master
Attribute Type: empty
Netconf edit-config payload
<ntp xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-ntp">
<vrfs>
<vrf>
<vrf-name>management</vrf-name>
<config>
<vrf-name>management</vrf-name>
</config>
<ref-clock-master>
<config>
</enable-local-master>
</config>
</ref-clock-master>
</vrf>
</vrfs>
</ntp>
Command Syntax
ntp master (vrf management|)
Configure local stratum
Use this attribute to configure stratum level for a NTP server.
Attribute Name: local-stratum
Attribute Type: uint8
Attribute Range: 1-15
Netconf edit-config payload
<ntp xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-ntp">
<vrfs>
<vrf>
<vrf-name>management</vrf-name>
<config>
<vrf-name>management</vrf-name>
</config>
<ref-clock-master>
<config>
<local-stratum>1</local-stratum> <!-- operation="delete"-->
</config>
</ref-clock-master>
</vrf>
</vrfs>
</ntp>
Command Syntax
ntp master stratum <1-15> (vrf management|)
Configure enable ntp auth
Use this attribute to enable NTP authentication.
Attribute Name: enable-ntp-auth
Attribute Type: empty
Netconf edit-config payload
<ntp xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-ntp">
<vrfs>
<vrf>
<vrf-name>management</vrf-name>
<config>
<vrf-name>management</vrf-name>
</config>
<authentication>
<config>
</enable-ntp-auth><!-- operation="delete"-->
</config>
</authentication>
</vrf>
</vrfs>
</ntp>
Command Syntax
ntp authenticate (vrf management|)
Configure ntp trusted keys
Use this attribute to configure one or more trusted authentication keys. If a key is trusted, the device will synchronize with a system that specifies this key in its NTP packets
Attribute Name: ntp-trusted-keys
Attribute Type: uint32
Attribute Range: 1-65535
Netconf edit-config payload
<ntp xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-ntp">
<vrfs>
<vrf>
<vrf-name>management</vrf-name>
<config>
<vrf-name>management</vrf-name>
</config>
<authentication>
<config>
<ntp-trusted-keys>1</ntp-trusted-keys> <!-- operation="delete"-->
</config>
</authentication>
</vrf>
</vrfs>
</ntp>
Command Syntax
ntp trusted-key <1-65535> (vrf management|)
Configure ntp request key
Use this to attribute to configure request key which shall be used as password for ntpdc utility.
Attribute Name: ntp-request-key
Attribute Type: uint32
Attribute Range: 1-65534
Netconf edit-config payload
<ntp xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-ntp">
<vrfs>
<vrf>
<vrf-name>management</vrf-name>
<config>
<vrf-name>management</vrf-name>
</config>
<authentication>
<config>
<ntp-request-key>1</ntp-request-key> <!-- operation="delete"-->
</config>
</authentication>
</vrf>
</vrfs>
</ntp>
Command Syntax
ntp request-key <1-65534> (vrf management|)
Configure key id
Use this attribute to set an NTP authentication key.
Attribute Name: key-id
Attribute Type: uint32
Attribute Range: 1-65535
Attribute Name: key-value
Attribute Type: string
Attribute Name: key-type
Attribute Type: enum (0|7)
Netconf edit-config payload
<ntp xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-ntp">
<vrfs>
<vrf>
<vrf-name>management</vrf-name>
<config>
<vrf-name>management</vrf-name>
</config>
<authentication>
<ntp-keys>
<ntp-key> <!-- operation="delete"-->
<key-id>1</key-id>
<config>
<key-id>1</key-id>
<key-value>WORD</key-value>
<key-type>1</key-type>
</config>
</ntp-key>
</ntp-keys>
</authentication>
</vrf>
</vrfs>
</ntp>
Command Syntax
ntp authentication-key <1-65535> md5 WORD 7 (vrf management|)
Configure key value
Use this attribute to set an NTP authentication key.
Attribute Name: key-id
Attribute Type: uint32
Attribute Range: 1-65535
Attribute Name: key-value
Attribute Type: string
Attribute Name: key-type
Attribute Type: enum (0|7)
Netconf edit-config payload
<ntp xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-ntp">
<vrfs>
<vrf>
<vrf-name>management</vrf-name>
<config>
<vrf-name>management</vrf-name>
</config>
<authentication>
<ntp-keys>
<ntp-key> <!-- operation="delete"-->
<key-id>1</key-id>
<config>
<key-id>1</key-id>
<key-value>WORD</key-value>
<key-type>0</key-type>
</config>
</ntp-key>
</ntp-keys>
</authentication>
</vrf>
</vrfs>
</ntp>
Command Syntax
ntp authentication-key <1-65535> md5 WORD (vrf management|)
Configure prefer
preferred NTP server/peer
Attribute Name: prefer
Attribute Type: empty
Attribute Name: auth-key
Attribute Type: uint32
Default Value: 65535
Attribute Range: 1-65535
Attribute Name: minpoll
Attribute Type: uint16
Default Value: 4
Attribute Range: 4-16
Attribute Name: maxpoll
Attribute Type: uint16
Default Value: 6
Attribute Range: 4-16
Netconf edit-config payload
<ntp xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-ntp">
<vrfs>
<vrf>
<vrf-name>management</vrf-name>
<config>
<vrf-name>management</vrf-name>
</config>
<servers>
<server>
<server-address>A.B.C.D</server-address>
<config>
<server-address>A.B.C.D</server-address>
<auth-key>1</auth-key> <!-- operation="delete"-->
<minpoll>4</minpoll> <!-- operation="delete"-->
<maxpoll>4</maxpoll> <!-- operation="delete"-->
</config>
</prefer><!-- operation="delete"-->
</server>
</servers>
</vrf>
</vrfs>
</ntp>
Command Syntax
ntp server (A.B.C.D|X:X::X:X|HOSTNAME) { key <1-65535>| minpoll <4-16>| maxpoll <4-16>| prefer } (vrf management|)
Configure server address
Use this attribute to set the NTP server IP address or hostname
Attribute Name: server-address
Attribute Type: string
Attribute Range: 1-63
Netconf edit-config payload
<ntp xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-ntp">
<vrfs>
<vrf>
<vrf-name>management</vrf-name>
<config>
<vrf-name>management</vrf-name>
</config>
<servers>
<server>
<server-address>A.B.C.D</server-address>
<config>
<server-address>A.B.C.D</server-address>
</config>
</server>
</servers>
</vrf>
</vrfs>
</ntp>
Command Syntax
ntp server (A.B.C.D|X:X::X:X|HOSTNAME) (vrf management|)
Configure peer address
preferred NTP server/peer
Attribute Name: prefer
Attribute Type: empty
Attribute Name: auth-key
Attribute Type: uint32
Default Value: 65535
Attribute Range: 1-65535
Attribute Name: minpoll
Attribute Type: uint16
Default Value: 4
Attribute Range: 4-16
Attribute Name: maxpoll
Attribute Type: uint16
Default Value: 6
Attribute Range: 4-16
Netconf edit-config payload
<ntp xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-ntp">
<vrfs>
<vrf>
<vrf-name>management</vrf-name>
<config>
<vrf-name>management</vrf-name>
</config>
<peers>
<peer>
<peer-address>A.B.C.D</peer-address>
<config>
<peer-address>A.B.C.D</peer-address>
<auth-key>1</auth-key> <!-- operation="delete"-->
<minpoll>4</minpoll> <!-- operation="delete"-->
<maxpoll>4</maxpoll> <!-- operation="delete"-->
</config>
</prefer><!-- operation="delete"-->
</peer>
</peers>
</vrf>
</vrfs>
</ntp>
Command Syntax
ntp peer (A.B.C.D|X:X::X:X|HOSTNAME) { key <1-65535>| minpoll <4-16>| maxpoll <4-16>| prefer } (vrf management|)
Configure minimum pkt spacing
Use this attribute to specify the minimum packet spacing to be permitted
Attribute Name: minimum-pkt-spacing
Attribute Type: uint16
Attribute Range: 1-65535
Netconf edit-config payload
<ntp xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-ntp">
<vrfs>
<vrf>
<vrf-name>management</vrf-name>
<config>
<vrf-name>management</vrf-name>
</config>
<rate-limiting>
<config>
<minimum-pkt-spacing>1</minimum-pkt-spacing> <!-- operation="delete"-->
</config>
</rate-limiting>
</vrf>
</vrfs>
</ntp>
Command Syntax
ntp discard { minimum <1-65535> } (vrf management|)
Configure netmask
use this attribute to specify the allowed NTP client IP network mask
Attribute Name: netmask
Attribute Type: union
Netconf edit-config payload
<ntp xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-ntp">
<vrfs>
<vrf>
<vrf-name>management</vrf-name>
<config>
<vrf-name>management</vrf-name>
</config>
<access-control-entries>
<access-control-entry>
<client-ip-address>CML_IP_ADDR_T</client-ip-address>
<config>
<client-ip-address>CML_IP_ADDR_T</client-ip-address>
</config>
<netmask>NTP_CLIENT_IP_NET_MASK_T</netmask>
</access-control-entry>
</access-control-entries>
</vrf>
</vrfs>
</ntp>
Command Syntax
ntp allow (A.B.C.D|X:X::X:X) mask (A.B.C.D|<1-128>) (vrf management|)
Configure access options
use this attribute to specify the allowed access options for NTP client
Attribute Name: access-options
Attribute Type: bits (kod|nopeer|noserve|noquery|nomodify|notrap|limited)
Netconf edit-config payload
<ntp xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-ntp">
<vrfs>
<vrf>
<vrf-name>management</vrf-name>
<config>
<vrf-name>management</vrf-name>
</config>
<access-control-entries>
<access-control-entry>
<client-ip-address>CML_IP_ADDR_T</client-ip-address>
<config>
<client-ip-address>CML_IP_ADDR_T</client-ip-address>
</config>
<access-options>kod</access-options> <!-- operation="delete"-->
</access-control-entry>
</access-control-entries>
</vrf>
</vrfs>
</ntp>
Command Syntax
ntp allow {kod|nopeer|noserve|noquery|nomodify|notrap|limited} (vrf management|)
Configure client ip address
use this attribute to specify the allowed access options for NTP client
Attribute Name: access-options
Attribute Type: bits (kod|nopeer|noserve|noquery|nomodify|notrap|limited)
Attribute Name: netmask
Attribute Type: inet:ipv4-address
Netconf edit-config payload
<ntp xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-ntp">
<vrfs>
<vrf>
<vrf-name>management</vrf-name>
<config>
<vrf-name>management</vrf-name>
</config>
<access-control-entries>
<access-control-entry>
<client-ip-address>CML_IP_ADDR_T</client-ip-address>
<config>
<client-ip-address>CML_IP_ADDR_T</client-ip-address>
<netmask>NTP_CLIENT_IP_NET_MASK_T</netmask>
</config>
<access-options>kod</access-options> <!-- operation="delete"-->
</access-control-entry>
</access-control-entries>
</vrf>
</vrfs>
</ntp>
Command Syntax
ntp allow mask {kod|nopeer|noserve|noquery|nomodify|notrap|limited} (vrf management|)
Configure enable
Use this attribute to enable NTP debug logs
Attribute Name: enable
Attribute Type: empty
Netconf edit-config payload
<ntp xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-ntp">
<debug>
<config>
</enable><!-- operation="delete"-->
</config>
</debug>
</ntp>
Command Syntax
debug ntp
clear ntp statistics (all-peers|io|local|memory)
Attribute Name: statistics-type
Attribute Type: enum (all-peers|io|local|memory)
Netconf RPC payload
<ntp-clear-statistics xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-ntp">
<statistics-type>all-peers</statistics-type>
</ntp-clear-statistics>
Command Syntax
clear ntp statistics (all-peers|io|local|memory)
ntp sync-retry (vrf management|)
Attribute Name: vrf-name
Attribute Type: string
Netconf RPC payload
<ntp-retry-server-synchronization xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-ntp">
<vrf-name>management</vrf-name>
</ntp-retry-server-synchronization>
Command Syntax
ntp sync-retry (vrf management|)
debug ntp
Netconf RPC payload
<ntp-terminal-debug-on xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-ntp"/>
Command Syntax
debug ntp
no debug ntp
Netconf RPC payload
<ntp-terminal-debug-off xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-ntp"/>
Command Syntax
no debug ntp