Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 

set date

 

Syntax

Release Information

Command introduced before Junos OS Release 7.4.

key option introduced in Junos OS Release 12.1R2

Description

Set the date and time.

Options

date-timeDate and time. Enter this string inside quotation marks.
ntpUse a Network Time Protocol (NTP) server to synchronize the current date and time setting on the router or switch.
key authentication-key number(Optional) Specify a key number to authenticate the NTP server used to synchronize the date and time. You must specify the same key number used to authenticate the server configured at the [edit system ntp authentication-key number] hierarchy level.
servers(Optional) Specify the IP address of one or more NTP servers.
source-address source-addressSpecify the source address that the router or switch uses to contact the remote NTP server.

Required Privilege Level

view

Related Documentation

List of Sample Output

set date

Output Fields

When you enter this command, you are provided feedback on the status of your request.

Sample Output

set date

user@host> set date ntp