You can update the time zone database information on routers running the JUNOS software, independently of the JUNOS operating system. This feature simplifies time zone management in JUNOS systems by allowing for future unforeseen time zone database adjustments. You can configure your router to use a custom time zone database file that you create to meet your requirements by editing an existing time zone database file.
Tasks for setting a custom time zone are:
To import and install time zone files, follow these steps:
/var/tmp
:
# mkdir -p /var/tmp/tz && cd /var/tmp/tz && rm *
# wget 'ftp://elsie.nci.nih.gov/pub/tzdata*.tar.gz'
# tar xvzf tzdata*.gz
africa
antarctica
asia
australasia
europe
northamerica
southamerica
pacificnew
etcetera
factory
backward
systemv
solar87
solar88
solar89
iso3166.tab
zone.tab
leapseconds
yearistype.sh
![]() |
Note: If needed, you can edit the above untarred files to create or modify time zones. |
northamerica
and asia
tz files:
This should show the newly generated tz files in /var/db/zoneinfo/
.
To use a custom time zone, follow these steps:
/var/db/zoneinfo/
):
If you do not configure the router to use imported
time zones, the JUNOS default time zones are shown (saved in the directory /usr/share/zoneinfo/
).