Cisco IOS Cookbook by Kevin Dooley & Ian Brown

Cisco IOS Cookbook by Kevin Dooley & Ian Brown

Author:Kevin Dooley & Ian Brown [Kevin Dooley]
Language: eng
Format: epub
Tags: COMPUTERS / Networking / General
ISBN: 9780596554828
Publisher: O'Reilly Media
Published: 2008-12-16T16:00:00+00:00


Time-Stamping Router Logs

Problem

You want the router to record the time along with log and debug messages.

Solution

The service timestamp global configuration command enables timestamps on debug and logging messages. Use the log keyword to turn on time-stamping of log messages:

Router#configure terminal Enter configuration commands, one per line. End with CNTL/Z. Router(config)#service timestamps log datetime localtime Router(config)#end Router#

The command to turn on timestamps for debug messages is similar, but uses the debug keyword:

Router#configure terminal Enter configuration commands, one per line. End with CNTL/Z. Router(config)#service timestamps debug datetime localtime Router(config)#end Router#



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.