09.12.2012 Views

Understanding the network.pdf - Back to Home

Understanding the network.pdf - Back to Home

Understanding the network.pdf - Back to Home

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

uucp UNIX-<strong>to</strong>-UNIX copy system<br />

IOS allows you <strong>to</strong> configure <strong>the</strong> router <strong>to</strong> use any defined syslog<br />

facility by using <strong>the</strong> global configuration command :<br />

local-AS#config t<br />

Enter configuration commands, one per line. End with CNTL/Z.<br />

local-AS(config)#logging facility local6<br />

local-AS(config)#^Z<br />

local-AS#<br />

After <strong>the</strong> message's facility level pair has been determined, it checks<br />

<strong>the</strong> syslog.conf file <strong>to</strong> see which action it should take. There are five<br />

syslog-defined actions:<br />

• Log <strong>to</strong> a file (/usr/log/)<br />

• Forward <strong>the</strong> message <strong>to</strong> ano<strong>the</strong>r syslog process on ano<strong>the</strong>r host<br />

(@hostname or @ip address)<br />

• Write <strong>the</strong> message <strong>to</strong> a specified user's opera<strong>to</strong>r window.<br />

(user,username)<br />

• Write <strong>the</strong> message <strong>to</strong> all users'opera<strong>to</strong>r windows (*)<br />

Here is a sample syslog file that uses facility local7, local6, and local5<br />

<strong>to</strong> collect logging messages for Internet gateway routers, internal<br />

routers, and access servers:<br />

#/etc/syslog.conf<br />

#<br />

#Logging for all Network Gateways<br />

local7.emerg<br />

@logmaster.x2net.net<br />

local7.alert;local7.crit;local7.err *<br />

local7.warning root,help<br />

local7.notice root,netadmin,help<br />

local7.info<br />

/var/log/cisco-gw.info<br />

local7.debug<br />

/var/log/cisco-gw.debug<br />

#

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!