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.
To use a custom time zone, follow these steps:
[edit]
user@host# set system use-imported-time-zones
/var/db/zoneinfo/):
[edit]
user@host# set system time-zone ?
If you do not configure for using imported time zones,
the JUNOS default time zones are shown (saved in the directory /usr/share/zoneinfo/).
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:
# /usr/libexec/ui/compile-tz northamerica asia
[edit]
# set system use-imported-time-zones
[edit]
# set system time-zone ?
This should show the newly generated tz files in /var/db/zoneinfo/.
[edit]
# set system time-zone <your-time-zone>
# commit
[edit]
# run show system uptime