Table Of Contents
N Commands
ntp abort
ntp commit
ntp distribute
ntp enable
ntp sync-retry
ntp peer
ntp server
ntp source
ntp source-interface
N Commands
This chapter describes the Cisco NX-OS system management commands that begin with the letter N.
ntp abort
To abort the Network Time Protocol (NTP) configuration, use the ntp abort command.
ntp abort
Syntax Description
This command has no arguments or keywords.
Defaults
None
Command Modes
Global configuration mode
Supported User Roles
network-admin
network-operator
vdc-admin
vdc-operator
Command History
Release
|
Modification
|
4.1(1)
|
This command was introduced.
|
Usage Guidelines
This command does not require a license.
Examples
This example shows how to abort the NTP configuration:
Related Commands
Command
|
Description
|
ntp commit
|
Commits the NTP configuration.
|
ntp distribute
|
Enables Cisco Fabric Services (CFS) distribution for NTP.
|
ntp commit
To commit the Network Time Protocol (NTP) configuration, use the ntp commit command.
ntp commit
Syntax Description
This command has no arguments or keywords.
Defaults
None
Command Modes
Global configuration mode
Supported User Roles
network-admin
network-operator
vdc-admin
vdc-operator
Command History
Release
|
Modification
|
4.1(1)
|
This command was introduced.
|
Usage Guidelines
This command does not require a license.
Examples
This example shows how to commit the NTP configuration:
Related Commands
Command
|
Description
|
ntp abort
|
Aborts the NTP configuration.
|
ntp distribute
|
Enables Cisco Fabric Services (CFS) distribution for NTP.
|
ntp distribute
To enable Cisco Fabric Services (CFS) distribution for the Network Time Protocol (NTP), use the ntp distribute command. To disable this feature, use the no form of this command.
ntp distribute
no ntp distribute
Syntax Description
This command has no arguments or keywords.
Defaults
None
Command Modes
Global configuration mode
Supported User Roles
network-admin
network-operator
vdc-admin
vdc-operator
Command History
Release
|
Modification
|
4.1(1)
|
This command was introduced.
|
Usage Guidelines
This command does not require a license.
Examples
This example shows how to distribute the active NTP configuration to the fabric:
switch(config)# ntp distribute
This example shows how to stop distribution of the active NTP configuration to the fabric:
switch(config)# no ntp distribute
Related Commands
Command
|
Description
|
ntp abort
|
Aborts the NTP configuration.
|
ntp commit
|
Commits the NTP configuration.
|
ntp enable
To enable NTP, use the ntp enable command. To disable, use the no command form.
ntp enable
no ntp enable
Syntax Description
This command has no arguments or keywords.
Defaults
Enabled
Command Modes
Global configuration
Supported User Roles
network-admin
vdc-admin
Command History
Release
|
Modification
|
4.0(3)
|
This command was introduced.
|
Usage Guidelines
This command does not require a license.
NTP must be configured in the default VDC. It cannot be configured in any other VDC.
Examples
This example shows how to disable NTP:
Related Commands
Command
|
Description
|
ntp server
|
Configures a remote NTP server.
|
ntp sync-retry
To resynchronize the Network Time Protocol (NTP) with configured NTP servers, use the ntp sync-retry command.
ntp sync-retry
Syntax Description
This command has no arguments or keywords.
Defaults
None
Command Modes
Any command mode
Supported User Roles
network-admin
network-operator
vdc-admin
vdc-operator
Command History
Release
|
Modification
|
4.0(1)
|
This command was introduced.
|
Usage Guidelines
This command does not require a license.
Examples
This example shows how to resynchronize NTP:
Related Commands
Command
|
Description
|
ntp server
|
Configures a remote NTP server.
|
ntp peer
To do configure the Network Time Protocol peer, use the ntp peer command. To remove the peer, use the no form of this command.
ntp peer host [prefer] [use-vrf vrf]
no ntp peer host [prefer] [use-vrf vrf]
Syntax Description
host
|
Hostname or IP address of the NTP peer.
|
prefer
|
(Optional) Specifies this peer as the preferred peer.
|
use-vrf vrf
|
(Optional) Specifies the virtual routing and forwarding (VRF) used to reach this peer.
|
Defaults
None
Command Modes
Global configuration (config)
Supported User Roles
network-admin
vdc-admin
Command History
Release
|
Modification
|
4.0(1)
|
This command was introduced.
|
Usage Guidelines
This command does not require a license.
Examples
This example shows how to configure an NTP peer:
switch(config)# ntp peer 192.0.2.2
Related Commands
Command
|
Description
|
show ntp peer
|
Displays information about the NTP peer.
|
ntp server
To do configure a Network Time Protocol server, use the ntp server command. To remove the server, use the no form of this command.
ntp server host [prefer] [use-vrf vrf]
no ntp server host [prefer] [use-vrf vrf]
Syntax Description
host
|
Hostname or IP address of the NTP server.
|
prefer
|
(Optional) Specifies this server as the preferred server.
|
use-vrf vrf
|
(Optional) Specifies the virtual routing and forwarding (VRF) used to reach this peer.
|
Defaults
None
Command Modes
Global configuration (config)
Supported User Roles
network-admin
vdc-admin
Command History
Release
|
Modification
|
4.0(1)
|
This command was introduced.
|
Usage Guidelines
This command does not require a license.
Examples
This example shows how to configure an NTP server:
switch(config)# ntp server 192.0.2.2
Related Commands
Command
|
Description
|
show ntp peer
|
Displays information about the NTP peer.
|
ntp source
To do configure the Network Time Protocol source, use the ntp source command. To remove the NTP source, use the no form of this command.
ntp source addr
no ntp source addr
Syntax Description
addr
|
IPv4 or IPv6 address of the source. The IPv4 address format is dotted decimal, x.x.x.x. The IPv6 address format is hex A:B::C:D.
|
Defaults
None
Command Modes
Global configuration (config)
Supported User Roles
network-admin
vdc-admin
Command History
Release
|
Modification
|
4.0(1)
|
This command was introduced.
|
Usage Guidelines
This command does not require a license.
Examples
This example shows how to configure the NTP source:
switch(config)# ntp source 192.0.2.3
This example shows how to remove the NTP source:
switch(config)# no ntp source 192.0.2.3
Related Commands
Command
|
Description
|
show ntp source
|
Displays information about the NTP source.
|
ntp source-interface
To configure the NTP source interface, use the ntp source-interface command. To remove an ntp source interface, use the no form of this command.
ntp source-interface if_index
no ntp source-interface if_index
Syntax Description
if_index
|
Source interface.
|
Defaults
None
Command Modes
Global configuration (config)
Supported User Roles
network-admin
vdc-admin
Command History
Release
|
Modification
|
4.1(3)
|
This command was introduced.
|
Usage Guidelines
This command does not require a license.
Examples
This example shows how to configure an NTP source interface:
switch(config)# ntp source-interface loopback 1
This example shows how to remove an NTP source configuration:
switch(config)# no ntp source-interface loopback 1
Command
|
Description
|
show ntp source-interface
|
Displays information about the NTP source interface.
|