Navigation
Guide That Contains This Content
[+] Expand All
[-] Collapse All

    set date

    Syntax

    set date (date-time | ntp <ntp-server> <source-address source-address>)

    Release Information

    Command introduced before Junos OS Release 7.4.

    Description

    Set the date and time.

    user@host> set date ntp
    21 Apr 17:22:02 ntpdate[3867]: step time server 172.17.27.46 offset 8.759252 sec
    

    Options

    • date-time—Specify date and time in one of the following formats:

      • YYYYMMDDHHMM.SS
      • “month DD, YYYY HH:MM(am | pm)”
    • ntp—Configure the router to synchronize the current date and time setting with a Network Time Protocol (NTP) server.
    • ntp-server—(Optional) Specify the IP address of one or more NTP servers.
    • source-address source-address—(Optional) Specify the source address that is used by the router to contact the remote NTP server.

    Required Privilege Level

    view

    Published: 2013-01-15