N Commands
ntp access-group
285
Cisco Nexus 7000 Series NX-OS System Management Command Reference
OL-25806-03
ntp access-group
To configure an access group to control Network Time Protocol (NTP) access, use the ntp access-group
command. To remove the NTP peer access group, use the no form of this command.
ntp access-group {peer | serve | serve-only | query-only | match-all} access-list-name
no ntp access-group {peer | serve | serve-only | query-only | match-all} access-list-name
Syntax Description
Defaults If you do not configure any access groups, NTP access is granted to all devices.
Command Modes Global configuration mode
Supported User Roles network-admin
vdc-admin
Command History
Usage Guidelines Make sure that you are in the correct virtual device context (VDC). To change the VDC, use the switchto
vdc command.
peer Allows the device to receive time requests and NTP control queries to synchronize
itself to the servers specified in the access list.
serve Allows the device to receive time requests and NTP control queries from the
servers specified in the access list but not to synchronize itself to the specified
servers.
serve-only Allows the device to receive only time requests from servers specified in the access
list.
query-only Allows the device to receive only NTP control queries from the servers specified
in the access list.
match-all Enables the access group options to be scanned in the following order: peer, serve,
serve-only, query-only.
access-list-name Name of the NTP access group. The name can be any alphanumeric string up to 32
characters, including special characters.
Release Modification
6.2(2) Added the match-all keyword.
5.2(1) Added the serve, serve-only, and query-only keywords.
5.0(1) This command was introduced.