Other Platform Commands
3-88 Configuring the XSR Platform
Example
XSR#hostname XSR-1800
XSR-1800#

logging

Thiscommandenables/disablesmessageloggingatvaryingseveritylevelsforspecified
destinations.RefertoAppendixAintheXSRUser’sGuideforalistofmostrouteralarmsand
events.Normally,onlyHIGHseverityalarmsareloggedtoredflagcriticaleventsandthose
requiringoperatorintervention.TheDEBUGalarmlevelismeantformaintenancepersonnel
only.
TheXSRmaydiscardLOWandDEBUGlevelalarmsifthesystemistoooccupiedtodeliverthem.
Thenumberofdiscardedmessagesisdisplayedbythefollowinglineinshow logging command
output:
Discards: high=0 medium=0 low=4 debug=22
TheXSRsupportsasmanyasthreeSyslogservers,withloggingseveritylevelsseparately
configurableforeachserver.YoucandisableloggingtoindividualSyslogswiththeno logging
xxx.xxx.xxx.xxxcommand.

LogGen Functionality

ThefileoptionpermitsloggingtoapersistentalarmfileonaCompactFlashcardforHIGHor
MEDIUMalarmsonly.IfnoCompactFlashcardisinstalled,persistentloggingisnotperformed.
TheroutercopiesmessagesfromtheloggingbufferinRAMtothecflash:fileloggenonceper
second.IfpowertotheXSRislost,thealarmhistoryispreservedinloggen.WhentheXSRcomes
upagainitcopiesthehistoryfromloggenbackintotheRAMbuffer.Theentirelogginghistoryis
availableincludingalarmsbeforeandafterpowerdown.
TheXSR’sLogGenfunctionalitydeclaresamessagefloodiftoomanyoutstandingmessagesare
reportedbyothersoftwaremodulesintherouter.LogGenthentemporarilyquitsreportingonthe
ConsolesouserscankeepaccesstotheCLI.MessagesareloggedtotheRAMbufferonly,andare
graduallyreportedtoallotherenableddestinations.ThemessagefloodendswhenLogGen
reducesthenumberofoutstandingmessagesbelowthedefinedthreshold.
Syntax
logging [console | buffered | monitor | snmp | A.B.C.D | A.B.C.D | A.B.C.D | file
| timestamp][level | local | utc][high | medium | low | debug]
console Displayssystemlogstotheconsoleterminal.
buffered SavessystemlogstotheroutersRAM.
monitor DisplayssystemlogstocurrentCLITelnetsession.
snmp SavessystemlogstoaremoteSNMPtrap.
A.B.C.D UptothreeSyslogserverIPaddresses:seetableinUserGuidelines.
level SetsloggingleveltoHigh,Medium,LoworDebug.Enterthelevel
immediatelyaftertheloggingkeywordtosetthatlevelforall
destinations.Enterthelevelafteradestinationtospecifythatlevelonly.
file LogsdatatoafileonaCompactFlashcard.
high SetssystemlogtoHighlevel.