Chapter13NetworkManagementConguration
ConfiguringSysLog
TocongureSysLog,performthefollowingsteps.
Step
CommandFunction
1
ZXR10(config)#loggingonThisenableslog
2
ZXR10(config)#loggingbuffer<buffer-size>Thissetlogbuffersize
3
ZXR10(config)#loggingmode<mode>[<interval>]Thissetsalogcleanupmode
4
ZXR10(config)#loggingconsole<level>
Thissetsleveloflogsto
bedisplayedonaconsole
interfaceortelnetinterface
5
ZXR10(config)#logginglevel<level>
Thissetstheleveloflogsto
besavedinthelogcache
6
ZXR10(config)#loggingftp<level>[vrf<vrf-name>|m
ng]<ftp-server><username><password>[<filenam
e>]
Thissetstheparametersof
FTPlogserver
7
ZXR10(config)#syslogonThisenablesSysLogprotocol
processing
8
ZXR10(config)#sysloglevel<level>
ThissetsaloglevelforSysLog
protocolprocessing
9
ZXR10(config)#syslogserver[vrf<vrf-name>|mng
]<ip-address>[fport<fport>][lport<lport>]
Thissetstheparametersof
thebackgroundSysLogserver
10
ZXR10(config)#showloggingalarm{[typeid
<type>][start-date<date>][end-date
<date>][level<level>]}
Thisdisplaysloginformation
Note:
Instep10,typesofsupportedalarmedinformationincludeenvi-
ronment,board,port,ROS,database,OAM,security,OSPF ,RIP ,
BGP ,DRP ,TCP-UDP ,IP ,IGMP ,T elnet,ARP ,ISIS,ICMP ,SNMPand
RMON.
SysLogConfigurationExample
ThisexampledescribesthesettingSysLog.Beforeconguring
SysLog,enablethelogfunctionwithloggingoncommand.
ZXR10(config)#loggingon
ZXR10(config)#loggingbuffer100
ZXR10(config)#loggingmodeFULLCLEAR
ZXR10(config)#loggingconsolewarnings
ZXR10(config)#logginglevelerrors
CondentialandProprietaryInformationofZTECORPORATION137