HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

clock — Set the system clock. More information: <https://www.cisco.com/c/en/us/td/docs/ios/fundamentals/comm

Submitted by: @import:tldr-pages··
0
Viewed 0 times
thecommandclimoresetclocksystem

Problem

How to use the clock command: Set the system clock. More information: <https://www.cisco.com/c/en/us/td/docs/ios/fundamentals/command/reference/cf_book/cf_c1.html#clock>.

Solution

clock — Set the system clock. More information: <https://www.cisco.com/c/en/us/td/docs/ios/fundamentals/command/reference/cf_book/cf_c1.html#clock>.

Enter privileged execution mode:
clock set {{23}}:{{59}}:{{59}} {{31}} {{april}} {{2000}}


Auto negotiate with the far end of the link, defaulting to active-clock:
clock active prefer


Auto negotiate with the far end of the link, defaulting to passive-clock:
clock passive prefer


Show the current clock mode negotiated by the firmware:
clock show interfaces

Code Snippets

Enter privileged execution mode

clock set {{23}}:{{59}}:{{59}} {{31}} {{april}} {{2000}}

Auto negotiate with the far end of the link, defaulting to active-clock

clock active prefer

Auto negotiate with the far end of the link, defaulting to passive-clock

clock passive prefer

Show the current clock mode negotiated by the firmware

clock show interfaces

Context

tldr-pages: cisco-ios/clock

Revisions (0)

No revisions yet.