Configuring Log Verbosity For Individual Logs Or All Logs; Setting The Timestamp For Log Messages - Juniper JUNOSE SOFTWARE 11.2.X - SYSTEM EVENT LOGGING REFERENCE GUIDE 6-29-2010 Reference Manual

Software for e series broadband services routers system event logging reference guide
Table of Contents

Advertisement

JunosE 11.2.x System Event Logging Reference Guide

Configuring Log Verbosity for Individual Logs or All Logs

Example

Setting the Timestamp for Log Messages

14
aaaAtm1483Cfg
aaaEngineGeneral
aaaServerGeneral
aaaUserAccess
addressServerGeneral
ar1AaaServerGeneral
atm
atm1483
atmAal5
The default verbosity setting for all logs is low. To change the logging verbosity of an
individual log, specify a category when you enter the log verbosity command. To change
the log verbosity of every log, do not specify an event category when you enter the log
verbosity command. However, after you enter the log verbosity command without
specifying a particular event category, all logs are set to the new verbosity. No log verbosity
overrides are saved.
The following example sets all log categories to verbosity medium, and then it sets the
verbosity level for ds3 events to high.
host1(config)#log verbosity medium
host1(config)#log verbosity high ds3
You can use the service timestamps command to format timestamps for log messages.
By default, log messages display universal coordinated time (UTC) without the time
zone.
The following examples illustrate how you can change the timestamp on log messages.
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
ERROR
low
ERROR
low
ERROR
low
ERROR
low
ERROR
low
ERROR
low
ERROR
low
ERROR
low
ERROR
low
Copyright © 2010, Juniper Networks, Inc.

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the JUNOSE SOFTWARE 11.2.X - SYSTEM EVENT LOGGING REFERENCE GUIDE 6-29-2010 and is the answer not in the manual?

This manual is also suitable for:

Junose 11.2

Table of Contents