Cisco Nexus 5000 Series Command Reference Release 4.0(1a)N2(1) (OL-16599-01, March 2009)

Send comments to nx5000-docfeedback@cisco.com
7-19
Cisco Nexus 5000 Series Command Reference
OL-16599-01
Chapter 7 System Management Commands
ntp
ntp
To configure the NTP peers and servers for the switch, use the ntp command. Use the no form of this
command to remove configured peers and servers.
ntp {peer hostname | server hostname} [prefer] [use-vrf vrf-name]
no ntp {peer hostname | server hostname}
Syntax Description
Command Default None
Command Modes Configuration mode
Command History
Examples This example forms a server association with a server:
switch(config)# ntp server ntp.cisco.com
You can specify multiple associations. This example forms a peer association with a peer:
switch(config)# ntp peer 10.20.10.0
This example deletes an association with a peer:
switch(config)# no ntp peer 10.20.10.0
Related Commands
peer hostname The hostname or IP address of an NTP peer.
server hostname The hostname or IP address of the NTP server.
prefer (Optional) Specifies this peer/server as the preferred peer/server.
use-vrf vrf-name (Optional) Specifies the virtual routing and forwarding (VRF) used to reach
this peer/server.
Release Modification
4.0(0)N1(1a) This command was introduced.
4.0(1a)N1(1) The keyword use-vrf replaces the keyword vrf. The keyword vrf is retained
for backwards compatibility.
Command Description
ntp distribute Enables CFS distribution for NTP.
show ntp Displays NTP information.