#
bin
#
get tzdata-latest.tar.gz
NOTE:
If needed, you can edit the above untarred files to create or modify
the time zones.
5.
Select the names of time zone files to compile and feed them to the following script.
For example, to generate
northamerica
and
asia
tz files:
#
/usr/libexec/ui/compile-tz northamerica asia
6.
Enable the use of the generated tz files using the CLI:
[edit]
#
set system use-imported-time-zones
[edit]
#
set system time-zone ?
This should show the newly generated tz files in
/var/db/zoneinfo/
.
7.
Set the time zone and commit the configuration:
[edit]
#
set system time-zone <your-time-zone>
#
commit
8.
Verify that the time zone change has taken effect:
[edit]
#
run show system uptime
Configuring a Custom Time Zone
To use a custom time zone, follow these steps:
1.
Download a time zones archive (from a known or designated source) to the router or
switch. Compile the time zone archive using the
zic
time zone compiler, which generates
tz
files.
2.
Using the CLI, configure the router or switch to enable the use of the generated tz files
as follows:
[edit]
user@host#
set system use-imported-time-zones
3.
Display the imported time zones (saved in the directory
/var/db/zoneinfo/
):
[edit]
user@host#
set system time-zone ?
If you do not configure the router to use imported time zones, the Junos OS default
time zones are shown (saved in the directory
/usr/share/zoneinfo/
).
Related
Documentation
•
Modifying the Default Time Zone for a Router or Switch Running Junos OS on page 12
•
NTP Overview on page 3
•
Understanding NTP Time Servers on page 5
21
Copyright © 2014, Juniper Networks, Inc.
Chapter 2: Configuring Time
Содержание Dynabug 57810
Страница 6: ...Copyright 2014 Juniper Networks Inc vi Time Management Administration Guide for Routing Devices...
Страница 13: ...PART 1 Overview Time Management Overview on page 3 1 Copyright 2014 Juniper Networks Inc...
Страница 14: ...Copyright 2014 Juniper Networks Inc 2 Time Management Administration Guide for Routing Devices...
Страница 20: ...Copyright 2014 Juniper Networks Inc 8 Time Management Administration Guide for Routing Devices...
Страница 54: ...Copyright 2014 Juniper Networks Inc 42 Time Management Administration Guide for Routing Devices...
Страница 56: ...Copyright 2014 Juniper Networks Inc 44 Time Management Administration Guide for Routing Devices...
Страница 57: ...CHAPTER 4 Operational Commands set date 45 Copyright 2014 Juniper Networks Inc...
Страница 59: ...CHAPTER 5 Monitoring Commands show ntp associations show ntp status 47 Copyright 2014 Juniper Networks Inc...
Страница 64: ...Copyright 2014 Juniper Networks Inc 52 Time Management Administration Guide for Routing Devices...
Страница 65: ...PART 4 Index Index on page 55 53 Copyright 2014 Juniper Networks Inc...
Страница 66: ...Copyright 2014 Juniper Networks Inc 54 Time Management Administration Guide for Routing Devices...