Set Date & Time Stamp on Cisco Logs
If installing a new Cisco network device, then you have the option of setting the date and time during the initial configuration. However, if your Cisco device is part of a previous network installation, there are a set of easy commands in the Cisco IOS used to configure the device's date and time stamps. Keep in mind that these steps must be followed anytime your network interface loses power, as most Cisco devices dump the internal memory containing date and time information in the event of power loss.
Instructions" with "hostname" being substituted with the name of your device, type "en", then press "Enter." The command prompt will change to "hostname#." Depending on your network settings, you may need a password from your network administrator to enter privileged mode.
3. Type "conf t" and press "Enter." The command prompt changes to "hostname (config) #," thereby alerting you that you are in global configuration mode.
4. Type "clock timezone zone hours-offset." Replace "zone" with the time zone of your router and substitute the "hours-offset" with the amount of hours you are from Greenwich Mean Time (GMT). For example, if you are located in the Eastern time zone (EST), you would replace "zone" with EST and "hours-offset" with -5, as EST is minus-five hours from GMT. A link to the a World Time Zone Map is provided in Resources to assist you in determining the GMT. Press "Enter."
5. Type "clock summer-time zone recurring." Replace "zone" with your time zone's daylight time. For example, if you are in the Eastern time zone (EST), then you would type "clock summer-time EDT recurring," thereby instructing the router to adjust for Eastern Daylight Time (EDT). Press "Enter."
6. Type "CNTL/Z" or "End." Press "Enter." This will return you to executive privileged mode, as you cannot set the clock in global configuration mode.
7. Type "clock set hh:mm:ss day month year" and press "Enter." The command line should resemble "clock set 12:10:00 January 25 2010." Always use military time to set the clock. Your router's logs will now have the correct time and date stamp.
8. Type "show clock," thereby confirming you have set the correct date and time stamp.
9. Save your changes to the configuration file by typing "copy running-config startup-config." Press "Enter."
Tags: date time, Enter command, mode Type, press Enter command, time zone