Sunday, August 4, 2013

Set Date Time on JunOS (Juniper Operating Sytem)

This intruction of set date time on JunOS.

#### Set Manual Date Time August 4, 2013 and 07:30:00 PM.
user@JunOS> set date ?
Possible completions:
 
  ntp                  Set system date and time using Network Time Protocol servers
  
user@JunOS> set date 201308041930.00 
Sun Aug  4 19:30:00 UTC 2013


#### Set Auto Date from NTP server
user@JunOS> set date ntp ?
Possible completions:
  <[Enter]>            Execute this command
             IP addresses of NTP servers
  source-address       Source address to use
  |                    Pipe through a command

#### Failed  
user@JunOS> set date ntp 192.168.0.1 
 4 Aug 19:01:05 ntpdate[4562]: no server suitable for synchronization found

#### Success
user@JunOS> set date ntp 192.168.0.2  
 4 Aug 19:30:34 ntpdate[4571]: step time server 192.168.0.2 offset -38185.458839 sec


#### Verify 
user@JunOS> show system uptime 
Current time: 2013-08-04 19:31:20 UTC
System booted: 2013-08-03 16:14:37 UTC (15:16:43 ago)
Protocols started: 2013-08-03 16:15:08 UTC (15:16:12 ago)
Last configured: 2013-08-04 03:21:11 UTC (04:10:09 ago) by user
 7:31AM  up 15:17, 1 user, load averages: 0.00, 0.00, 0.00


Ref. Set Date Time on Cisco Router

No comments: