Hierarchical Navigation - HOME
- SUPPORT
- Clock Commands on Cisco IOS XR Software
| -
Viewing Options - PDF (567.2 KB)
- Feedback
Clock Commands on Cisco IOS XR Software Clock Commands on Cisco IOS XR Software This module describes the commands used to set and display the internal clock settings in Cisco IOS XR software. For more than data virtually manually setting the router clock, see Cisco IOS XR Getting Started Guide for the Cisco XR 12000 Series Router . For more than data most configuring the router to synchronize to Network Time Protocol (NTP), see the Implementing NTP on Cisco IOS XR Software module in Cisco IOS XR System Management Configuration Guide for the Cisco XR 12000 Serial Router . - clock read-calendar
- clock ready
- clock summertime-time
- clock timezone
- clock update-agenda
- locale state
- locale language
- show clock
- bear witness clock sync
clock read-calendar To manually copy the hardware clock (calendar) settings into the software clock, use the clock read-calendar command in EXEC mode. Control Default Read calendar is disabled. Command History Release | Modification | Release 3.2 | This command was introduced. | Release iii.3.0 | No modification. | Release iii.4.0 | No modification. | Release 3.5.0 | No modification. | Release 3.6.0 | No modification. | Release 3.7.0 | No modification. | Release 3.8.0 | No modification. | Release 3.9.0 | No modification. | Usage Guidelines To utilize this command, y'all must be in a user group associated with a task group that includes the proper chore IDs. If you lot suspect user group consignment is preventing you from using a control, contact your AAA administrator for aid. The agenda clock is a hardware system clock that runs continuously, fifty-fifty if the router is powered off or rebooted. The hardware system clock is carve up from the software clock settings, which are erased when the router is power cycled or rebooted. Apply the clock read-calendar command to manually copy the hardware clock setting into the software clock. Chore ID Job ID | Operations | host-services | execute | Examples In the post-obit example, the hardware clock settings are copied to the software clock with the clock read-calendar control. The show clock command is and so entered to display the new software clock settings. RP/0/0/CPU0:router# clock read-calendar RP/0/0/CPU0:router# show clock 14:31:57.089 PST Tue Feb 10 2008 Related Commands Command | Description | clock ready | Sets the software clock settings. | clock update-calendar | Sets the agenda from the software clock. | show clock | Displays the clock settings. | update-calendar | Periodically updates the calendar from NTP. | clock prepare To change the software clock settings, employ the clock set up command in EXEC mode. clock set hh : mm : ss { twenty-four hour period month | month mean solar day } twelvemonth Syntax Clarification hh : mm : ss | Current fourth dimension in hours (24-hour format), minutes, and seconds. Colons are required between values. | solar day | Current mean solar day (past date) in the month. | month | Current month (past proper noun). | year | Current yr (no abridgement). Enter a valid four-digit year. | Command Default Clock is not set up. Command History Release | Modification | Release 3.2 | This command was introduced. | Release 3.3.0 | No modification. | Release 3.4.0 | No modification. | Release iii.5.0 | No modification. | Release 3.6.0 | No modification. | Release 3.7.0 | No modification. | Release 3.eight.0 | No modification. | Release iii.9.0 | No modification. | Usage Guidelines To use this command, you must be in a user group associated with a task group that includes the proper chore IDs. If you suspect user group consignment is preventing y'all from using a command, contact your AAA administrator for assistance. Generally, if the system is synchronized by a valid outside timing mechanism, such every bit a Network Time Protocol (NTP) clock source, or if you lot have a networking device with agenda capability, you demand not fix the software clock. Use the clock set command if no other time sources are available. The time specified in this command is relative to the configured time zone. Task ID Task ID | Operations | host-services | execute | Examples This case shows how to gear up the software clock using the clock fix command with the 24-hour interval calendar month arguments showtime. RP/0/0/CPU0:router# clock set 14:12:00 10 feb 2005 14:12:00.114 JST Friday Feb 10 2009 This instance shows how to set the software clock using the clock set command with the month mean solar day arguments get-go. RP/0/0/CPU0:router# clock ready 14:38:00 feb 10 2005 fourteen:38:00.069 PST Tue Feb 10 2009 Examples This example shows how to display the settings of the software clock: RP/0/0/CPU0:router# bear witness clock fourteen:38:eleven.292 PST Tue Feb ten 2009 Examples This instance shows how to display the available months using the online aid ( ? ) function: RP/0/0/CPU0:router# clock set 06:10:00 12 ? january Calendar month of the Year feb march apr may june july august september october november dec Related Commands Command | Description | clock summer-time | Configures the arrangement to switch automatically to daylight saving time. | clock timezone | Sets the fourth dimension zone for display. | show clock | Displays the clock settings. | clock summer-time To configure the system to switch automatically to summer fourth dimension (daylight saving time), employ the clock summer-fourth dimension command in global configuration mode. To remove the daylight saving time setting, utilise the no form of this command. clock summer-fourth dimension zone { date { engagement month year hh : mm date month year hh : mm | month date year hh : mm month date twelvemonth hh : mm } | recurring week day month hh : mm week day month hh : mm } [starting time] no clock summer-time Syntax Clarification zone | Proper noun of the time zone (for example, PDT) to be displayed when summer time is in effect. Table i lists mutual fourth dimension zone acronyms used for the zone argument. | date | Indicates that summer time should start on the first specific date listed in the command and stop on the 2nd specific date in the command. | date | Date of the month. | calendar month | Calendar month. | year | Year (no abbreviation). | hh : mm | Time (24-hour format) in hours and minutes. | recurring | Indicates that summertime time should start and finish on the respective specified days every twelvemonth. | week | Week of the calendar month (values are one to 5, starting time or last). | day | Twenty-four hour period of the calendar week. | start | (Optional) Number of minutes to add together during summer fourth dimension. | Command Default Summer fourth dimension is not configured. offset : 60 Command Modes Global configuration Command History Release | Modification | Release three.2 | This control was introduced. | Release 3.3.0 | No modification. | Release 3.4.0 | No modification. | Release 3.5.0 | No modification. | Release 3.6.0 | No modification. | Release three.7.0 | No modification. | Release 3.8.0 | No modification. | Release 3.9.0 | No modification. | Usage Guidelines To use this command, you must be in a user group associated with a job group that includes the proper task IDs. If you suspect user group consignment is preventing you from using a control, contact your AAA administrator for assist. Use the clock summer-time command if you desire the system to switch automatically to summer time (for display only): -
Utilize the recurring keyword to use the rules on the configured day each year. If clock summer-time zone recurring is specified without parameters, the summertime time rules default to United States standards. The default for the commencement argument is 60 minutes. -
Use the date keyword to specify a start and end date for summer fourth dimension if you cannot use the starting time form. In both forms of the control, the first function of the command specifies when summer time begins and the second part specifies when it ends. All times are relative to the local time zone. The start time is relative to standard time. The finish fourth dimension is relative to summer fourth dimension. If the starting month is after the catastrophe month, the arrangement assumes that you are in the Southern Hemisphere. Chore ID Task ID | Operations | host-services | read, write | Examples The following example specifies that summertime time starts on the first Sunday in April at 02:00 and ends on the last Dominicus in October at 02:00. The recurring keyword indicates that the rules utilize every yr. RP/0/0/CPU0:router(config)# clock summer-fourth dimension PDT recurring 1 Dominicus April 2:00 last Sunday October ii:00 If you lot live where summertime fourth dimension does not follow the blueprint in the first example, you could set it to start on Oct 12, 2008 at 02:00 and end on April 26, 2009 at 02:00, with the following example. The date keyword indicates that the rules employ for the current year just. RP/0/0/CPU0:router(config)# clock summer-time PDT appointment 12 October 2008 2:00 26 April 2009 2:00 Related Commands Control | Description | clock set | Sets the software clock settings. | clock timezone | Sets the fourth dimension zone for display. | clock timezone To ready the time zone for display, use the clock timezone command in global configuration mode. To remove the time zone setting, apply the no form of this command. clock timezone zone hours-offset [minutes-offset] no clock timezone Syntax Description zone | Name of the time zone to be displayed when standard time is in effect. | hours-kickoff | Hours offset from Coordinated Universal Time (UTC). Range is from –23 to +23. | minutes-offset | (Optional) Minutes offset from UTC. | Command Modes Global configuration Command History Release | Modification | Release 3.2 | This command was introduced. | Release 3.3.0 | No modification. | Release iii.4.0 | No modification. | Release 3.5.0 | No modification. | Release 3.half-dozen.0 | No modification. | Release iii.7.0 | No modification. | Release iii.eight.0 | No modification. | Release 3.9.0 | No modification. | Usage Guidelines To use this command, you must be in a user grouping associated with a task grouping that includes the proper task IDs. If you suspect user group consignment is preventing you from using a command, contact your AAA administrator for aid. Apply the clock timezone command to display the time zone only when setting the time manually. The system keeps time internally in UTC. This table lists mutual time zone acronyms used for the zone argument. Tabular array 1 Common Time Zone Acronyms Acronym | Fourth dimension Zone Name and UTC Offset | Europe | GMT | Greenwich Mean Time, as UTC. | BST | British Summertime Time, as UTC plus 1 hour. | IST | Irish Summer Fourth dimension, equally UTC plus 1 60 minutes. | Moisture | Western Europe Time, as UTC. | Westward | Western Europe Summer Time, as UTC plus ane hour. | CET | Central Europe Time, as UTC plus 1 60 minutes. | CEST | Central Europe Summer Fourth dimension, every bit UTC plus 2 hours. | EET | Eastern Europe Fourth dimension, as UTC plus 2 hours. | EEST | Eastern Europe Summer Time, equally UTC plus 3 hours. | MSK | Moscow Time, as UTC plus three hours. | MSD | Moscow Summer Fourth dimension, equally UTC plus 4 hours. | United states and Canada | AST | Atlantic Standard Time, as UTC minus 4 hours. | ADT | Atlantic Daylight Fourth dimension, every bit UTC minus 3 hours. | ET | Eastern Time, either as EST or EDT, depending on place and time of year. | EST | Eastern Standard Time, as UTC minus 5 hours. | EDT | Eastern Daylight Saving Time, as UTC minus iv hours. | CT | Fundamental Time, either as CST or CDT, depending on place and time of year. | CST | Central Standard Fourth dimension, as UTC minus 6 hours. | CDT | Central Daylight Saving Time, as UTC minus 5 hours. | MT | Mountain Fourth dimension, either as MST or MDT, depending on identify and time of year. | MST | Mount Standard Time, equally UTC minus 7 hours. | MDT | Mountain Daylight Saving Fourth dimension, every bit UTC minus 6 hours. | PT | Pacific Time, either every bit PST or PDT, depending on place and fourth dimension of year. | PST | Pacific Standard Fourth dimension, as UTC minus viii hours. | PDT | Pacific Daylight Saving Time, as UTC minus 7 hours. | AKST | Alaska Standard Time, as UTC minus ix hours. | AKDT | Alaska Standard Daylight Saving Time, every bit UTC minus eight hours. | HST | Hawaiian Standard Fourth dimension, as UTC minus x hours. | Australia | WST | Western Standard Time, as UTC plus eight hours. | CST | Central Standard Time, as UTC plus 9.v hours. | EST | Eastern Standard/Summer Fourth dimension, as UTC plus 10 hours (plus 11 hours during summer time). | This table lists an culling method for referring to fourth dimension zones, in which single messages are used to refer to the time zone difference from UTC. Using this method, the alphabetic character Z is used to indicate the cipher meridian, equivalent to UTC, and the letter of the alphabet J (Juliet) is used to refer to the local fourth dimension zone. Using this method, the International Date Line is between fourth dimension zones K and Y. Table 2 Single-Letter Time Zone Designators Letter Designator | Word Designator | Difference from UTC | Y | Yankee | UTC minus 12 hours. | X | Xray | UTC minus xi hours. | West | Whiskey | UTC minus 10 hours. | Five | Victor | UTC minus ix hours. | U | Compatible | UTC minus viii hours. | T | Tango | UTC minus 7 hours. | S | Sierra | UTC minus half-dozen hours. | R | Romeo | UTC minus 5 hours. | Q | Quebec | UTC minus iv hours. | P | Papa | UTC minus 3 hours. | O | Oscar | UTC minus 2 hours. | N | November | UTC minus one hour. | Z | Zulu | Same every bit UTC. | A | Blastoff | UTC plus ane hour. | B | Bravo | UTC plus 2 hours. | C | Charlie | UTC plus 3 hours. | D | Delta | UTC plus 4 hours. | Eastward | Echo | UTC plus 5 hours. | F | Foxtrot | UTC plus 6 hours. | G | Golf game | UTC plus seven hours. | H | Hotel | UTC plus viii hours. | I | India | UTC plus ix hours. | K | Kilo | UTC plus ten hours. | L | Lima | UTC plus 11 hours. | Thou | Mike | UTC plus 12 hours. | Task ID Job ID | Operations | host-services | read, write | Examples The post-obit example shows how to set the time zone to PST and offset eight hours backside UTC: RP/0/0/CPU0:router(config)# clock timezone PST -8 The following example shows how to set the time zone to Atlantic Fourth dimension (AT) for Newfoundland, Canada, which is 3.v hours behind UTC: RP/0/0/CPU0:router(config)# clock timezone AT -3 30 Related Commands Command | Description | clock set | Sets the software clock settings. | clock summer-time | Configures the system to switch automatically to summer time (daylight saving time). | show clock | Displays the clock settings. | clock update-calendar To copy the software clock settings to the hardware clock (calendar), use the clock update-calendar command in EXEC fashion. Syntax Description This command has no arguments or keywords. Control Default No default behavior or values Command History Release | Modification | Release 3.2 | This command was introduced. | Release iii.three.0 | No modification. | Release iii.4.0 | No modification. | Release 3.five.0 | No modification. | Release iii.6.0 | No modification. | Release iii.seven.0 | No modification. | Release 3.8.0 | No modification. | Release three.9.0 | No modification. | Usage Guidelines To apply this command, you must be in a user group associated with a job group that includes the proper task IDs. If you suspect user group consignment is preventing you lot from using a command, contact your AAA ambassador for help. The hardware clock (calendar) runs continuously, even if the router is powered off or rebooted. If the software clock and calendar are not synchronized and the software clock is more accurate, use this control to update the hardware calendar clock to the right appointment and time. Task ID Chore ID | Operations | host-services | execute | Examples The following instance shows how to copy the current fourth dimension from the software clock to the hardware clock: RP/0/RP0/CPU0:router# clock update-calendar Related Commands Control | Description | clock read-calendar | Copies the hardware (agenda) clock settings into the software clock. | locale country To prepare the default country of use, use the locale country command in global configuration mode. To remove the country setting, utilize the no form of this command. locale country land no locale country Syntax Description country | State, where country is a two-character country code. Instance is not important. | Command Default No default behavior or values Control Modes Global configuration Control History Release | Modification | Release 3.2 | This command was introduced. | Release 3.iii.0 | No modification. | Release 3.iv.0 | No modification. | Release 3.5.0 | No modification. | Release 3.half-dozen.0 | No modification. | Release 3.vii.0 | No modification. | Release three.eight.0 | No modification. | Release three.ix.0 | No modification. | Usage Guidelines To use this command, you must be in a user grouping associated with a chore group that includes the proper task IDs. If you doubtable user grouping assignment is preventing you from using a command, contact your AAA ambassador for assistance. Note | This command is not fully supported at this time. | To display a complete listing of the bachelor state codes, utilize the online assist ( ? ) function: RP/0/0/CPU0:router(config)# locale land ? AD Andorra AE United Arab Emirates AF Afghanistan AG Antigua and Barbuda AI Anguilla AL Albania AM Armenia AN Netherlands Antilles AO Angola AQ Antarctica AR Argentine republic AS American Samoa AT Austria AU Australia AW Aruba AZ Republic of azerbaijan BA Republic of bosnia and herzegovina BB Barbados BD People's republic of bangladesh BE Belgium --More than-- Task ID Task ID | Operations | host-services | read, write | Examples The post-obit example shows how to set the state of use to Australia: RP/0/0/CPU0:router(config)# locale country au Related Commands Command | Description | locale language | Sets the default linguistic communication of use. | locale language To ready the default language of use, use the locale language control in global configuration mode. To remove the linguistic communication setting, use the no form of this command. locale language linguistic communication no locale linguistic communication Syntax Description language | Two-character code that specifies the language. Case is not important. | Command Default No default beliefs or values Command Modes Global configuration Command History Release | Modification | Release 3.2 | This command was introduced. | Release 3.three.0 | No modification. | Release iii.4.0 | No modification. | Release 3.five.0 | No modification. | Release three.6.0 | No modification. | Release three.7.0 | No modification. | Release 3.8.0 | No modification. | Release 3.ix.0 | No modification. | Usage Guidelines To use this control, you must be in a user group associated with a job group that includes the proper chore IDs. If you suspect user group consignment is preventing you from using a control, contact your AAA administrator for aid. Note | This command is not fully supported at this fourth dimension. | To brandish a complete list of the available linguistic communication codes, use the online help (?) office: RP/0/0/CPU0:router(config)# locale language ? aa Distant ab Abkhazian af Afrikaans am Amharic ar Arabic equally Assamese ay Aymara --More than-- Task ID Task ID | Operations | host-services | read, write | Examples The following example shows how to set the linguistic communication of utilise to English language: RP/0/0/CPU0:router(config)# locale language en Related Commands Command | Description | locale country | Sets the default country of use. | bear witness clock To display the system clock, use the show clock command in EXEC fashion. Syntax Description detail | (Optional) Indicates the time zone, time source, and current summer fourth dimension setting (if any). | Control Default No default behavior or values Command History Release | Modification | Release 3.ii | This command was introduced. | Release 3.iii.0 | No modification. | Release 3.4.0 | No modification. | Release iii.5.0 | No modification. | Release 3.six.0 | No modification. | Release 3.vii.0 | No modification. | Release iii.8.0 | No modification. | Release iii.ix.0 | No modification. | Usage Guidelines To use this command, you lot must be in a user group associated with a task group that includes the proper task IDs. If you suspect user grouping assignment is preventing you from using a command, contact your AAA administrator for assist. The system clock keeps an "authoritative" flag that indicates whether the fourth dimension is administrative (believed to be authentic). If the system clock has been prepare past a timing source, such as system calendar or Network Fourth dimension Protocol (NTP), the flag is ready. If the time is non administrative, information technology is used only for display. Until the clock is authoritative and the "authoritative" flag is set, the flag prevents peers from synchronizing to the clock when the peers take invalid times. The leading symbols that precede the show clock command display are shown in this table Table 3 evidence clock Brandish Leading Symbol Descriptions Symbol | Clarification | * | Time is not administrative. | (blank) | Time is authoritative. | . | Time is administrative, but NTP is not synchronized. | Job ID Chore ID | Operations | basic-services | read | Examples The post-obit sample output shows the current clock settings: RP/0/0/CPU0:router# evidence clock 16:xviii:28.927 PST Tue Feb 10 2009 The following sample output shows the electric current clock particular, including the time zone and time source: RP/0/0/CPU0:router# show clock detail sixteen:18:07.164 PST Tue February ten 2009 Timezone: PST8PST Timesource: User configured Related Commands Control | Description | clock ready | Sets the software clock settings. | show clock sync To evidence the time difference between the clocks on route processors (RPs) and other line cards (LCs), use the testify clock sync command in EXEC command style. Command Default Displays the clock time for each RP or LC in a secure domain router (SDR), relative to the clock time on the RP where the command is entered. Release | Modification | Release 3.2 | This command was introduced. | Release 3.iii.0 | No modification. | Release 3.4.0 | No modification. | Release iii.5.0 | No modification. | Release 3.6.0 | No modification. | Release 3.7.0 | No modification. | Release iii.eight.0 | No modification. | Release 3.nine.0 | No modification. | Usage Guidelines To employ this command, you must be in a user grouping associated with a job grouping that includes the proper task IDs. If you suspect user group consignment is preventing you from using a command, contact your AAA administrator for help. In a router running Cisco IOS XR software the fourth dimension clock in the main RP is synchronized with the other RPs, DRPs, and LCs in the organization. This synchronization ensures that the standby RP has an accurate time setting if it assumes the principal office and that the events in logs betwixt unlike RPs and LCs tin be hands correlated during debugging. The evidence clock sync command verifies that the cards in the router are synchronized with the primary RP. When this control is run, the primary RP queries the clocks on each menu in the arrangement and displays the time difference between each card and the primary RP. If the time setting on the card is different from the time on the principal RP, the brandish shows if the clock on the card is being adjusted to synchronize with the master RP. Note | The show clock sync command shows the relative time difference between the RP where it is run and the cards in that SDR. If the command is run on the primary RP for the owner SDR, and then the results show the relative time settings for the cards assigned to the possessor SDR. If the command is run on the DSDRSC for a non-owner SDR, then the results are for the cards in that SDR. The show clock sync command tin also exist run on the standby RP, merely the times displayed are relative to that RP. | Task ID Task ID | Operations | ip-services | read | basic-services | read | Examples The following case illustrates sample output from the show clock sync command: RP/0/0/CPU0:router# show clock sync RoundTrip Time Slot Carte du jour Filibuster Offset Local Fourth dimension ---------------------------------------------------------------------- 0 RP Menu 0 ms 0.000 south 16:00:05.798 UTC Sun Apr 09 2006 1 RP Card 1 ms 0.001+s +xvi:00:05.798 UTC Sun Apr 09 2006 2 Line Carte 2 ms 0.000 southward -sixteen:00:05.798 UTC Sun April 09 2006 three Line Carte du jour fifteen ms 0.004+due south -16:00:05.802 UTC Sun Apr 09 2006 four Line Card 1 ms 0.001+due south -16:00:05.798 UTC Sun Apr 09 2006 5 Line Card 2 ms 0.002+due south +16:00:05.799 UTC Sun April 09 2006 Table 4 bear witness clock sync Field Descriptions Field | Description | Slot | Physical slot number of the card. | Carte | Type of card on the specified slot. | RoundTrip Delay | Time (in milliseconds) required for the test bulletin to travel between the RP and LC and back. | Time Get-go | Time difference (in seconds) between cards shown in the brandish. | Local Time | Displays the system clock setting. This is the same every bit the output displayed with the bear witness clock command. The positive (+) or negative (-) sign is added if the card is existence adapted to run faster or slower. | Related Commands Command | Description | clock set up | Sets the software clock settings. | prove clock | Displays the clock settings. | | | |
0 Response to "How To Set Clock On Cisco Router"
Post a Comment