Juniper JUNOSE 11.1.X - SYSTEM EVENT LOGGING REFERENCE GUIDE 3-24-2010 Reference Manual page 39

For e series broadband services routers - system event logging reference
Table of Contents

Advertisement

The following examples illustrate how you can change the timestamp on log messages.
service timestamps
Set the time zone to eastern daylight time (EDT), 5 hours behind UTC, and display
the local time on the log messages.
host1(config)#clock timezone EDT -5
Display UTC, but no time zone, on the log messages.
host1(config)#service timestamps log datetime
host1#exit
host1#show log data category cliCommand severity info
***********************************************************
NOTICE 05/14/2001 18:24:49 cliCommand: "configure terminal", console
NOTICE 05/14/2001 18:24:45 cliCommand: "service timestamps log datetime",
console
***********************************************************
Display UTC and the time zone on the log messages.
host1#configure terminal
host1(config)#service timestamps log datetime show-timezone
host1(config)#exit
host1#show log data category cliCommand severity info
***********************************************************
NOTICE 05/14/2001 18:28:45 UTC EDT cliCommand: "configure terminal",
console
NOTICE 05/14/2001 18:28:42 UTC EDT cliCommand: "service timestamps log
datetime show-timezone", console
***********************************************************
Display no timestamp on the log messages.
host1#configure terminal
host1(config)#no service timestamps
host1#exit
host1#show log data category cliCommand severity info
***********************************************************
NOTICE 134 cliCommand: "configure terminal", console
NOTICE 133 cliCommand: "no service timestamps", console
***********************************************************
Use to format timestamps for log messages.
For information about setting local times and time zones, see JUNOSe System
Basics Configuration Guide.
The show log data command displays the log data with the current timestamp
format.
The show log data nv-file command displays the log data with the timestamp
format in effect at the time the log record was written.
Use the no version to remove timestamps from log messages.
See service timestamps.
Chapter 1: System Logging Overview
Setting the Timestamp for Log Messages
15

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the JUNOSE 11.1.X - SYSTEM EVENT LOGGING REFERENCE GUIDE 3-24-2010 and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Junose 11.1.x

Table of Contents