输入您的问题查找答案
   
 
相关文库文档
更多相关文库文档 >>
联系客服
在线技术支持
客户服务热线:

电话销售热线:

服务时间(法定节假日除外):
家庭产品:
周一~周五:8:30~20:30
周六:9:00~18:00
商用产品:
周一~周五:9:00~18:00
商用网络动态

与 NETGEAR 监控专用交换机亲密接触

选择德才兼备的 PoE 交换机

NETGEAR 交换机助力聊城第二人民医院智能监控建设

更多动态 >>

网件文库 » 交换机产品  »  系统日志(Syslog)
系统日志(Syslog)

编号:30139       来自:NetGear       更新日期:2012-03-12       访问数量:52983

这一部分描述系统日志(Syslog)的特性。

概述

系统日志(Syslog)

  • 允许您存储系统信息和(或)错误
  • 可以存储在交换机本地文件或者运行了syslog程序的远程服务器
  • 是从多个系统收集信息日志的方法

稳定的日志文件

目前三个-每个的最后三个会话

每个日志包含两部分

  • 系统启动后的头32个启动日志信息
  • 当启动日志满了以后,最后收到的32个操作日志

文件以ASCII格式保存

  • slog0.txt – slog2.txt
  • oog0.txt – olog2.txt

0为启动,1为最后启动,2为上次启动;第三个将在下次启动覆盖。

可以保存在本地以及时显示最新的信息

日志文件说明

<130>JAN01 00:00:060.0.0.0-1 UNKN [0x800023]:bootos.c(386)4 %% Event (0xaaaaaaaa)

 

A                            B                         C

D

E

F

G

H

I

 

 

A. 优先级

B. 时间戳

C. 堆叠号

D. 类型名称

E. 类型标识

F. 文件名

G. 行号

命令行界面示例

以下是使用系统日志特性的示例。

示例#1: show logging

(Netgear Switch Routing) #show logging

LoggingClientLocalPort:                          514

CLI Command Logging:                          disabled

Console Logging:                                      disabled

Console Logging Severity Filter:             alert

Buffered Logging:                                       enabled

Syslog Logging:                                          enabled

Log Messages Received:                          66

Log Messages Dropped:                            0

Log Messages Relayed:                             0

Log Messages Ignored:                              0

示例#2: show logging buffered

(Netgear Switch Routing) #show logging buffered ?

                          Press Enter to execute the command.

(Netgear Switch Routing) #show logging buffered

Buffered (In-Memory) Logging:                           enabled

Buffered Logging Wrapping Behavior:              On

Buffered Log Count :                                            66

<1>JAN 01 00:00:02 0.0.0.0-0 UNKN[268434944]: usmdb_sim.c(1205) 1 %% Error 0(0x0)

<2>JAN 01 00:00:09 0.0.0.0-1 UNKN[268434944]: bootos.c(487) 2 %% Event (0xaaaaaaaa)

<6> JAN 01 00:00:09 0.0.0.0-1 UNKN[268434944]: bootos.c(531) 3 %% Starting code...

<6>JAN 01 00:00:16 0.0.0.0-3 UNKN[251627904]: cda_cnfgr.c(383) 4 %% CDA: Creating new STK file.

<6>JAN 01 00:00:39 0.0.0.0-3 UNKN[233025712]: edb.c(360) 5 %% EDB Callback: Unit Join: 3.

<6>JAN 01 00:00:40 0.0.0.0-3 UNKN[251627904]: sysapi.c(1864) 6 %% File user_mgr_cfg: same version (6) but the sizes (2312->7988) differ

示例#3: show logging traplogs

(Netgear Switch Routing)          #show logging traplogs ?

                          Press Enter to execute the command.

(Netgear Switch Routing)          #show logging traplogs

Number of Traps Since Last Reset............          6

Trap Log Capacity............................          256

Number of Traps Since Log Last Viewed.......          6

Log          System Up           Time                Trap

0              0 days               00:00:46              Link Up: Unit: 3 Slot: 0 Port: 2

1              0 days               00:01:01               Cold Start: Unit: 0

2              0 days               00:21:33               Failed User Login: Unit: 1 User ID: admin

3              0 days               18:33:31               Failed User Login: Unit: 1 User ID: \

4              0 days               19:27:05               Multiple Users: Unit: 0              Slot: 3 Port: 1

5              0 days               19:29:57               Multiple Users: Unit: 0              Slot: 3 Port: 1

示例#4: show logging hosts

(Netgear Switch Routing) #show logging hosts ?

              Press Enter to execute the command.

(Netgear Switch Routing) #show logging hosts

Index              IP Address              Severity              Port              Status

--------              ----------                     -------                 -------              ----

1                192.168.21.253           critical                 514              Active

示例#5: logging port configuration

(Netgear Switch Routing)#config

(Netgear Switch Routing) (Config)#logging ?

 buffered                       Buffered (In-Memory) Logging Configuration.

cli-command              CLI Command Logging Configuration.

console                        Console Logging Configuration.

host                               Enter IP Address for Logging Host

syslog                           Syslog Configuration.

(Netgear Switch Routing) (Config)#logging host ?

            Enter Logging Host IP Address

reconfigure                   Logging Host Reconfiguration

remove                          Logging Host Removal

(Netgear Switch Routing) (Config)#logging host 192.168.21.253 ?

                                Press Enter to execute the command.

                            Enter Port Id

(Netgear Switch Routing) (Config)#logging host 192.168.21.253 4 ?

                                Press Enter to execute the command.

            Enter Logging Severity Level (emergency|0, alert|1,critical|2, error|3, warning|4, notice|5, info|6, debug|7).

(Netgear Switch Routing) (Config)#logging host 192.168.21.253 4 1 ?

                                Press Enter to execute the command.

(Netgear Switch Routing) (Config)#logging host 192.168.21.253 4 1

(Netgear Switch Routing) #show logging hosts

Index              IP Address              Severity              Port              Status

--------              ----------                     -------                 -------              ----

1                 192.168.21.253            alert                  4                    Active

 

序号 no.

日期 date

作者 author

摘要 summary

1

2010-11-03

Netgear

文档创建

  
 
以上内容是否为您所需要的答案?
以上内容是否清晰、简明和易于理解的?
您是如何知道网件社区的?