summaryrefslogtreecommitdiffstats
path: root/Bachelor/CCNA4/en_CCNA4_v30/ch6/6_2_9/content.html
blob: 18ab0b423c7dc0fa0bde0fbafbc915301f3971ff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
<html>



<head>

<meta http-equiv="Content-Language" content="en-us">

<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">

<title>Content</title>

<base target="_self">

</head>



<body background="../../images/bg.gif" topmargin="0" leftmargin="0" marginheight="0" marginwidth="0" onLoad="window.focus();" link="#808080" vlink="#808080" alink="#808080">



<table border="0" cellpadding="0" cellspacing="0" width="100%">

  <tr>

    <td bgcolor="#336666" width="18" valign="top">

    <img border="0" src="../../images/content_lines.gif" width="16" height="25">

    <img border="0" src="../../images/transdot.gif" width="2" height="1"></td>

    <td bgcolor="#336666"><b><font face="Arial" size="2" color="#FFFFFF">6.2</b></font></td>

    <td bgcolor="#336666"><img border="0" src="../../images/transdot.gif" width="10" height="1"></td>

    <td bgcolor="#336666" width="100%"><strong><font size="2" color="#FFFFFF">

    <span style="font-family: Arial">Network Management</span></font></strong></td>

    <td width="9" bgcolor="#336666">&nbsp;</td>

  </tr>

  <tr>

    <td bgcolor="#669999" height="25" width="18">&nbsp;</td>

    <td bgcolor="#669999" height="25"><b>

    <font face="Arial" size="2" color="#FFFFFF">6.2.9</font></b></td> 

    <td bgcolor="#669999"><img border="0" src="../../images/transdot.gif" width="10" height="1"></td>

    <td bgcolor="#669999" height="25" width="100%"><strong>

    <font face="Arial" size="2" color="#FFFFFF">Syslog</font></strong></td>

    <td bgcolor="#669999" height="25" width="9">&nbsp;	</td>

  </tr></table>



<table border="0" cellpadding="0" cellspacing="0" width="95%" bordercolor="#111111">

      <tr>

        <td width="15"></td>

        <td>



          <font face="Arial" size="2"> The Cisco syslog logging utility is based 

          on the UNIX syslog utility. System events are usually logged to the 

          system console unless disabled. The syslog utility is a mechanism for 

          applications, processes, and the operating system of Cisco devices to 

          report activity and error conditions. The syslog protocol is used 

          to allow Cisco devices to issue these unsolicited messages to a 

          network management station.</font><p>



          <font face="Arial" size="2">Every syslog message logged is associated 

          with a timestamp, a facility, a severity, and a textual log message. 

          These messages are sometimes the only means of gaining insight into 

          some device misbehaviors.</font></p>

          <p>



          <font face="Arial" size="2"> Severity level indicates the critical 

          nature of the error message.

          <img border="0" src="../../images/1.gif" align="absmiddle" width="12" height="12"> There are 

          eight levels of severity, 0-7, with level 0 (zero) being the most critical, 

          and level 7 the least critical. The levels are as 

          follows:</font></p>

          <blockquote>

          <table border="0" cellpadding="2" bordercolor="#111111" width="80%" height="198">

            <tr>

              <td width="5%" height="19"><font size="2" face="Arial">0</font></td>

              <td width="95%" height="19">



          <font face="Arial" size="2"> 

              Emergencies</font></td>

            </tr>

            <tr>

              <td width="5%" height="19"><font face="Arial" size="2">1</font></td>

              <td width="95%" height="19">



          <font face="Arial" size="2"> 

              Alerts</font></td>

            </tr>

            <tr>

              <td width="5%" height="19"><font face="Arial" size="2">2</font></td>

              <td width="95%" height="19">



          <font face="Arial" size="2"> 

              Critical</font></td>

            </tr>

            <tr>

              <td width="5%" height="17"><font face="Arial" size="2">3</font></td>

              <td width="95%" height="17">



          <font face="Arial" size="2"> 

              Errors</font></td>

            </tr>

            <tr>

              <td width="5%" height="19"><font face="Arial" size="2">4</font></td>

              <td width="95%" height="19">



          <font face="Arial" size="2"> 

              Warnings</font></td>

            </tr>

            <tr>

              <td width="5%" height="19"><font face="Arial" size="2">5</font></td>

              <td width="95%" height="19">



          <font face="Arial" size="2"> 

              Notifications</font></td>

            </tr>

            <tr>

              <td width="5%" height="19"><font face="Arial" size="2">6</font></td>

              <td width="95%" height="19">



          <font face="Arial" size="2"> 

              Informational</font></td>

            </tr>

            <tr>

              <td width="5%" height="19"><font face="Arial" size="2">7</font></td>

              <td width="95%" height="19">



          <font face="Arial" size="2"> 

              Debugging</font></td>

            </tr>

          </table>



          </blockquote>

          <p>



          <font face="Arial" size="2"> The facility and severity level fields 

          are used for processing the messages. Level 0 (zero) to level 7 are facility 

          types provided for custom log message processing. The Cisco IOS defaults to 

          severity level 6.This setting is configurable.</font></p>

          <p>



          <font face="Arial" size="2">In order to have the NMS receive and 

          record system messages from a device, the device must have syslog 

          configured. 

          <img border="0" src="../../images/2.gif" align="absmiddle" width="12" height="12"> Below is a review of the command line syntax on 

          how to configure these devices.</font></p>

          <p>



          <font face="Arial" size="2"> To enable logging to all supported 

          destinations:</font></p>

          <blockquote>

          <p>



          <font face="Courier New" size="2"> Router(config)#<b>logging on</b></font></p>

          </blockquote>

          <p>



          <font face="Arial" size="2"> To send log messages to a syslog server 

          host, such as CiscoWorks2000: </font></p>

          <blockquote>

          <p>



          <font face="Courier New" size="2"> Router(config)#<b>logging</b> <i>hostname</i> |

          <i>ip 

          address</i></font></p>

          </blockquote>

          <p>



          <font face="Arial" size="2"> To set logging severity level to level 6, 

          informational:</font></p>

          <blockquote>

          <p>



          <font face="Courier New" size="2"> Router(config)#<b>logging trap informational</b></font></p>

          </blockquote>

          <p>



          <font face="Arial" size="2"> To include timestamp with syslog message:</font></p>

          <blockquote>

          <p>



          <font face="Courier New" size="2"> Router(config)#<b>service timestamps log datetime</b></font></p>

          </blockquote>

          <p>

          <TABLE bgcolor="#B0AFAF" width="95%" border="0" cellspacing="0" cellpadding="0">

        <TR>

        <TD valign="top">

        	<TABLE bgcolor="#669999" width="100%" cellspacing="0" cellpadding="0" border="0">

        	<TR>

        	<TD width="5">

            <img border="0" src="../../images/lab_toplft.gif" width="116" height="23"></TD>

        	<TD><IMG alt="" height="1" width="3" src="../../images/s.gif"></TD><TD align="right" valign="top">

            <IMG alt="" src="../../images/corner_ur_7.gif" width="7" height="7"></TD>

        	</TR>

        	</TABLE>

        

        	<TABLE bgcolor="#B0AFAF" width="100%" cellspacing="0" cellpadding="0" border="0">

	        <TR>

      		<TD>

        		<TABLE width="100%" cellpadding="2" cellspacing="0" border="0" bordercolor="#111111">

        		<TR>

        		<TD bgcolor="#ffffff" width="15">&nbsp;</TD>

        		<TD bgcolor="#ffffff"><font FACE="Arial" SIZE="2" COLOR="#000000">

            	<p><font color="#808080">

                <img border="0" src="../../images/links_icon.gif" width="25" height="25">

                <b>Web Links</b></font></p>

            	</font><font FACE="Arial" SIZE="2" COLOR="#808080">



            	<p>Syslog<p>

          <a target="_blank" href="http://www.cisco.com/en/US/tech/tk648/tk362/tk790/tech_protocol_home.html">

          http://www.cisco.com/en/US/tech/tk648/ tk362/tk790/tech_protocol_

          home.html</a></font></p>

            	

                <p>    		

                <IMG alt="" height="2" width="1" src="../../images/s.gif"></p>

                </TD>

        		</TR>

        		</TABLE>

        	</TD>

        	</TR>

        	</TABLE>

        </TD>

        </TR>

        </TABLE><p>

        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

          <font face="Arial" size="2">&nbsp; &nbsp; &nbsp; </font>&nbsp; 

        </td>

      </tr>

    </table>



</body>



</html>