Showing posts with label Time. Show all posts
Showing posts with label Time. Show all posts

NTP

It is very simple to setup NTP. In summary here is the 3 steps.

1) Set the timezone

2) Set the time via CLI to get an immediate update

3) Sync up with an NTP source for persistent time sync.

Below is the steps fleshed out.

Set and show date/time

root@UPPER-210> set date ?
Possible completions:
  <time>               New date and time (YYYYMMDDhhmm.ss)
  ntp                  Set system date and time using Network Time Protocol servers
root@UPPER-210> set date 201112301006.00
Fri Dec 30 10:06:00 UTC 2011
root@UPPER-210> show system uptime
Current time: 2011-12-30 10:06:06 UTC
System booted: 2011-12-01 11:08:54 UTC (4w0d 22:57 ago)
Protocols started: 2011-12-01 11:11:11 UTC (4w0d 22:54 ago)
Last configured: 2011-12-01 12:42:59 UTC (4w0d 21:23 ago) by root
10:06AM  up 28 days, 22:57, 1 user, load averages: 0.00, 0.00, 0.00

Model: srx210he
JUNOS Software Release [11.1R1.10]