Skip to main content

cluster time-service ntp key create

Contributors
Suggest changes

Create an NTP symmetric authentication key

Availability: This command is available to cluster administrators at the admin privilege level.

Description

The cluster time-service ntp key create command creates a cryptographic key that can be used to verify that Network Time Protocol (NTP) packets are coming from a configured NTP server.

To use the created key it must be assigned to the required NTP server configuration using the cluster time-service ntp server create or cluster time-service ntp server modify commands.

Note The id, key-type and value must all be configured identically on both the ONTAP cluster and the external NTP time server for the cluster to be able to synchronize time to that server.

Parameters

-id <integer> - NTP Symmetric Authentication Key ID

Uniquely identifies this key in the cluster. Must be an integer between 1 and 65535.

-type <sha1> - NTP Symmetric Authentication Key Type

The cryptographic algorithm that this key is used with. Only SHA1 is currently supported.

-value <text> - NTP Symmetric Authentication Key Value

A 40 character hexadecimal digit string that represents a cryptographic key that is shared with the NTP server.

Examples

The following example creates a new SHA-1 NTP symmetric authentication key.

cluster1::> cluster time-service ntp key create 1 sha1 2e874852e7d41cda65b23915aa5544838b366c51