If you wish to check or update the date and time on a Juniper NetScreen router/firewall from a command line interface, you can establish a Secure Shell (SSH) connection to the device, provided you have already configured it to permit SSH access. You can then use the
get clockcommand to view the current date and time on the Netscreen device.
ns5gt-> get clock Date 06/24/1997 07:43:02, Daylight Saving Time enabled The Network Time Protocol is Disabled Up 917 hours 27 minutes 27 seconds Since 17 May 1997 02:15:35 867138182.710668 seconds since 1/1/1970 0:0:0 GMT GMT time zone area -5:00 GMT time zone offset 4:00 ns5gt->
In the above output, I can see that the date and time are not set correctly. I can see that the time offset from Greenwich Mean Time (GMT) is four hours, which is currently correct for this device, though. You can see the current GMT time as well as the times for many major cities throughout the world at The World Clock - Worldwide.
set clock command can be used to set the date.
ns5gt-> set clock ? mm/dd/yyyy month/day/year dst-off disable daylight saving time ntp enable network time protocol timezone GMT Time zone area ns5gt->
You can specify the month, date, and year in the form
. The time should be specified after the date in the form
[ More Info ]