[j-nsp] Time Zone for Juniper server
Yevgeniy Voloshin
yevgeniy.voloshin at gmail.com
Sun Jul 27 04:59:36 EDT 2008
Hi Ayman,
if You configure GMT-2 thats mean minus two, and if You configure GMT+2 its
mean plus two!
"*By default, hour-offset is 0. You can configure this to be a value in the
range from -14 to +12.*"
You can see help output on Your box like on mine:
user at Router> help topic system time-zone
Setting the Time Zone
The default local time zone on the router is UTC (Coordinated Universal
Time, formerly known as Greenwich Mean Time, or GMT). To modify the local
time zone, include the time-zone statement at the [edit system] hierarchy
level:
[edit system]
*time-zone (GMThour-offset *| time-zone);
* You can use the GMT hour-offset option to set the time zone relative to
UTC (GMT) time. By default, hour-offset is 0. You can configure this to
be
a value in the range from -14 to +12.*
You can also specify time-zone as a string such as PDT (Pacific Daylight
Time) or WET (Western European Time), or specify the continent and major
city.
For the time zone change to take effect for all processes running on the
router, you must reboot the router.
Examples: Setting the Time Zone
* Set the time zone relative to UTC (GMT):
[edit]
user at host# set system time-zone GMT+2*
Set the time zone for Pacific Daylight Time:
[edit]
user at host# set system time-zone PDT
[edit]
user at host# show
system {
time-zone PDT;
}
Set the time zone for New York:
[edit]
user at host# set system time-zone America/New_York
[edit]
user at host# show
system {
time-zone America/New_York;
}
For information about what time zones are available, see time-zone.
user at Router> help reference system time-zone
time-zone
Syntax
time-zone (*GMThour-offset *| time-zone);
Hierarchy Level
[edit system]
Release Information
Statement introduced before JUNOS Release 7.4.
GMT hour-offset option added in JUNOS Release 7.4.
Description
Set the local time zone. To have the time zone change take effect for
all processes running on the router, you must reboot the router.
Default
UTC
* Options
GMThour-offset--Set the time zone relative to GMT time.
** Range: -14 through +12
Default: 0*
time-zone--Specify the time zone as UTC, which is the default time
zone,
or as a string such as PDT (Pacific Daylight Time), or use one of the
following continents and major cities:
Africa/Abidjan, Africa/Accra, Africa/Addis_Ababa, Africa/Algiers,
Africa/Asmera, Africa/Bamako, Africa/Bangui, Africa/Banjul,
Africa/Bissau, Africa/Blantyre, Africa/Brazzaville,
Africa/Bujumbura,
Africa/Cairo, Africa/Casablanca, Africa/Ceuta, Africa/Conakry,
Africa/Dakar, Africa/Dar_es_Salaam, Africa/Djibouti, Africa/Douala,
Africa/El_Aaiun, Africa/Freetown, Africa/Gaborone, Africa/Harare,
Africa/Johannesburg, Africa/Kampala, Africa/Khartoum, Africa/Kigali,
Africa/Kinshasa, Africa/Lagos, Africa/Libreville, Africa/Lome,
Africa/Luanda, Africa/Lubumbashi, Africa/Lusaka, Africa/Malabo,
Africa/Maputo, Africa/Maseru, Africa/Mbabane, Africa/Mogadishu,
Africa/Monrovia, Africa/Nairobi, Africa/Ndjamena, Africa/Niamey,
Africa/Nouakchott, Africa/Ouagadougou, Africa/Porto-Novo,
Africa/Sao_Tome, Africa/Timbuktu, Africa/Tripoli, Africa/Tunis,
Africa/Windhoek
America/Adak, America/Anchorage, America/Anguilla,
America/Antigua, America/Aruba, America/Asuncion, America/Barbados,
America/Belize, America/Bogota, America/Boise, America/Buenos_Aires,
America/Caracas, America/Catamarca, America/Cayenne, America/Cayman,
America/Chicago, America/Cordoba, America/Costa_Rica,
America/Cuiaba,
America/Curacao, America/Dawson, America/Dawson_Creek,
America/Denver, America/Detroit, America/Dominica, America/Edmonton,
America/El_Salvador, America/Ensenada, America/Fortaleza,
America/Glace_Bay, America/Godthab, America/Goose_Bay,
America/Grand_Turk, America/Grenada, America/Guadeloupe,
America/Guatemala, America/Guayaquil, America/Guyana,
America/Halifax, America/Havana, America/Indiana/Knox,
America/Indiana/Marengo, America/Indiana/Vevay,
America/Indianapolis,
America/Inuvik, America/Iqaluit, America/Jamaica, America/Jujuy,
America/Juneau, America/La_Paz, America/Lima, America/Los_Angeles,
America/Louisville, America/Maceio, America/Managua, America/Manaus,
America/Martinique, America/Mazatlan, America/Mendoza,
America/Menominee, America/Mexico_City, America/Miquelon,
America/Montevideo, America/Montreal, America/Montserrat,
America/Nassau, America/New_York, America/Nipigon, America/Nome,
America/Noronha, America/Panama, America/Pangnirtung,
America/Paramaribo, America/Phoenix, America/Port-au-Prince,
America/Port_of_Spain, America/Porto_Acre, America/Puerto_Rico,
America/Rainy_River, America/Rankin_Inlet, America/Regina,
America/Rosario, America/Santiago, America/Santo_Domingo,
America/Sao_Paulo, America/Scoresbysund, America/Shiprock,
America/St_Johns, America/St_Kitts, America/St_Lucia,
America/St_Thomas, America/St_Vincent, America/Swift_Current,
America/Tegucigalpa, America/Thule, America/Thunder_Bay,
America/Tijuana, America/Tortola, America/Vancouver,
America/Whitehorse, America/Winnipeg, America/Yakutat,
America/Yellowknife
Antarctica/Casey, Antarctica/DumontDUrville, Antarctica/Mawson,
Antarctica/McMurdo, Antarctica/Palmer, Antarctica/South_Pole
Arctic/Longyearbyen
Asia/Aden, Asia/Alma-Ata, Asia/Amman, Asia/Anadyr, Asia/Aqtau,
Asia/Aqtobe, Asia/Ashkhabad, Asia/Baghdad, Asia/Bahrain, Asia/Baku,
Asia/Bangkok, Asia/Beirut, Asia/Bishkek, Asia/Brunei, Asia/Calcutta,
Asia/Chungking, Asia/Colombo, Asia/Dacca, Asia/Damascus, Asia/Dubai,
Asia/Dushanbe, Asia/Gaza, Asia/Harbin, Asia/Hong_Kong, Asia/Irkutsk,
Asia/Ishigaki, Asia/Jakarta, Asia/Jayapura, Asia/Jerusalem,
Asia/Kabul, Asia/Kamchatka, Asia/Karachi, Asia/Kashgar,
Asia/Katmandu, Asia/Krasnoyarsk, Asia/Kuala_Lumpur, Asia/Kuching,
Asia/Kuwait, Asia/Macao, Asia/Magadan, Asia/Manila, Asia/Muscat,
Asia/Nicosia, Asia/Novosibirsk, Asia/Omsk, Asia/Phnom_Penh,
Asia/Pyongyang, Asia/Qatar, Asia/Rangoon, Asia/Riyadh, Asia/Saigon,
Asia/Seoul, Asia/Shanghai, Asia/Singapore, Asia/Taipei,
Asia/Tashkent, Asia/Tbilisi, Asia/Tehran, Asia/Thimbu, Asia/Tokyo,
Asia/Ujung_Pandang, Asia/Ulan_Bator, Asia/Urumqi, Asia/Vientiane,
Asia/Vladivostok, Asia/Yakutsk, Asia/Yekaterinburg, Asia/Yerevan
Atlantic/Azores, Atlantic/Bermuda, Atlantic/Canary,
Atlantic/Cape_Verde, Atlantic/Faeroe, Atlantic/Jan_Mayen,
Atlantic/Madeira, Atlantic/Reykjavik, Atlantic/South_Georgia,
Atlantic/St_Helena, Atlantic/Stanley
Australia/Adelaide, Australia/Brisbane, Australia/Broken_Hill,
Australia/Darwin, Australia/Hobart, Australia/Lindeman,
Australia/Lord_Howe, Australia/Melbourne, Australia/Perth,
Australia/Sydney
Europe/Amsterdam, Europe/Andorra, Europe/Athens, Europe/Belfast,
Europe/Belgrade, Europe/Berlin, Europe/Bratislava, Europe/Brussels,
Europe/Bucharest, Europe/Budapest, Europe/Chisinau,
Europe/Copenhagen, Europe/Dublin, Europe/Gibraltar, Europe/Helsinki,
Europe/Istanbul, Europe/Kaliningrad, Europe/Kiev, Europe/Lisbon,
Europe/Ljubljana, Europe/London, Europe/Luxembourg, Europe/Madrid,
Europe/Malta, Europe/Minsk, Europe/Monaco, Europe/Moscow,
Europe/Oslo, Europe/Paris, Europe/Prague, Europe/Riga, Europe/Rome,
Europe/Samara, Europe/San_Marino, Europe/Sarajevo,
Europe/Simferopol,
Europe/Skopje, Europe/Sofia, Europe/Stockholm, Europe/Tallinn,
Europe/Tirane, Europe/Vaduz, Europe/Vatican, Europe/Vienna,
Europe/Vilnius, Europe/Warsaw, Europe/Zagreb, Europe/Zurich
Indian/Antananarivo, Indian/Chagos, Indian/Christmas,
Indian/Cocos, Indian/Comoro, Indian/Kerguelen, Indian/Mahe,
Indian/Maldives, Indian/Mauritius, Indian/Mayotte, Indian/Reunion
Pacific/Apia, Pacific/Auckland, Pacific/Chatham, Pacific/Easter,
Pacific/Efate, Pacific/Enderbury, Pacific/Fakaofo, Pacific/Fiji,
Pacific/Funafuti, Pacific/Galapagos, Pacific/Gambier,
Pacific/Guadalcanal, Pacific/Guam, Pacific/Honolulu,
Pacific/Johnston, Pacific/Kiritimati, Pacific/Kosrae,
Pacific/Kwajalein, Pacific/Majuro, Pacific/Marquesas,
Pacific/Midway,
Pacific/Nauru, Pacific/Niue, Pacific/Norfolk, Pacific/Noumea,
Pacific/Pago_Pago, Pacific/Palau, Pacific/Pitcairn, Pacific/Ponape,
Pacific/Port_Moresby, Pacific/Rarotonga, Pacific/Saipan,
Pacific/Tahiti, Pacific/Tarawa, Pacific/Tongatapu, Pacific/Truk,
Pacific/Wake, Pacific/Wallis, Pacific/Yap
Usage Guidelines
*See "Setting the Time Zone".*
Required Privilege Level
system--To view this statement in the configuration.
system-control--To add this statement to the configuration.
---
Yev.
2008/7/27 Ayman Abu Baker <ayman.abu-baker at ericsson.com>
>
> Hi All,
>
> We have a J20 Juniper router (JUNOS 8.0-20070126.0 built 2007-01-26).
>
> I just want to know if the time zone value set below is the same in Unix
> (GMT plus two hours)? Or in Juniper this will mean (GMT minus two
> hours)?
>
> admin at J20Server# show system time-zone
> time-zone GMT-2;
>
> BRs\
> Ayman
> _______________________________________________
> juniper-nsp mailing list juniper-nsp at puck.nether.net
> https://puck.nether.net/mailman/listinfo/juniper-nsp
>
More information about the juniper-nsp
mailing list