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

    Related Documentation

     

    set date

    Syntax

    set date (date-time ntp <servers> <source-address source-address>)

    Release Information

    Command introduced before Junos OS Release 7.4.

    Command introduced in Junos OS Release 9.0 for EX Series switches.

    Command introduced in Junos OS Release 11.1 for the QFX Series.

    Description

    Set the date and time.

    Options

    date-time
    —

    Date and time. Enter this string inside quotation marks.

    ntp
    —

    Use a Network Time Protocol (NTP) server to synchronize the current date and time setting on the router or switch.

    servers
    —

    (Optional) Specify the IP address of one or more NTP servers.

    source-address source-address
    —

    Specify 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
    21 Apr 17:22:02 ntpdate[3867]: step time server 172.17.27.46 offset 8.759252 sec
    

    Published: 2012-07-03