Logging Function
241
When the log information is output to the info-center, the first part will be
“
<Priority>
”.
For example:
<187>Jun 7 05:22:03 2003 4500 IFNET/6/UPDOWN:Line protocol on
interface Ethernet1/0/2, changed state to UP
The description of the components of log information is as follows:
1
Priority
The priority is computed according to following formula: facility*8+severity-1. The
default value for the facility is 23. The range of severity is 1~8, and the severity will
be introduced in a separate section.
The value of the facility can be set by command
info-center loghost
, .local1 to
local7 corresponding to 16 to 23 respectively, for detailed information, refer to
RFC3164 (The BSD syslog Protocol).
Priority is only effective when information is send to loghost. There is no character
between priority and timestamp.
2
Timestamp
If the logging information is sent to the log host, the default format of the
timestamp is the date, and it can be changed to
boot
format or
none
format
through the command:
info-center timestamp log { date | boot | none }
The date format of timestamp is "
mm dd hh:mm:ss yyyy
".
"
mm
" is the month field, such as: Jan, Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Oct,
Nov, Dec.
"
dd
" is the day field, if the day is less than the 10th, one blank should be added,
such as " 7".
"
hh:mm:ss
" is the time field, "
hh
" is from 00 to 23, "
mm
" and "
ss
" are from 00 to
59.
"
yyyy
" is the year field.
If changed to boot format, it represents the milliseconds from system booting.
Generally, the data are so large that two 32 bits integers are used, and separated
with a dot '.'.
For example:
<189>0.166970 4500 IFNET/6/UPDOWN:Line protocol on interface
Ethernet1/0/2, changed state to UP
It means that 166970ms (0*2^32+166970) has passed from system booting.
If changed to
none
format, the timestamp field is not present in logging
information.
There is a blank between timestamp and sysname. If the timestamp is
none
format, there is a blank between priority and sysname.
3
Sysname
The sysname is the host name, the default value is
4500
.
You can change the host name through
sysname
command.
Summary of Contents for 400 Family
Page 12: ......
Page 16: ...14 ABOUT THIS GUIDE ...
Page 58: ...56 CHAPTER 2 PORT OPERATION ...
Page 68: ...66 CHAPTER 3 VLAN OPERATION ...
Page 98: ...96 CHAPTER 5 NETWORK PROTOCOL OPERATION ...
Page 124: ...122 CHAPTER 6 IP ROUTING PROTOCOL OPERATION ...
Page 156: ...154 CHAPTER 8 ACL CONFIGURATION ...
Page 218: ...216 CHAPTER 11 802 1X CONFIGURATION ...
Page 298: ...296 CHAPTER 13 PASSWORD CONTROL CONFIGURATION OPERATIONS ...
Page 336: ...334 APPENDIX B RADIUS SERVER AND RADIUS CLIENT SETUP ...