首 页 | 产品大全 | 采购参考 | 厂商专区 | 渠道商情 | 商 城 | 二 手 | Internet服务 | 社 区
美国网件公司北京代表处
 如何成为Myprice加盟厂商
公司首页 公司新闻 产品信息 技术支持 驱动下载 使用手册 解决方案
该厂商统计信息
该厂商目前得分:-24
技术支持指数:-24
 参与评论人数:22
公司旗下品牌
NETGEAR/美国网件
经营范围
>>网络交换机
>>VPN及SSL VPN
>>打印服务器
>>NAS网络存储器
>>SAN网络存储
>>电力线通信设备
>>网络电话
>>无线局域网
>>无线路由器
>>网络软件
资源下载
>> 产品驱动下载
>> 解决方案下载
>> 使用手册下载
网友互动
>> 我要向该厂商提问
>> 查看全部在线问题
联系方式
厂商电话:010-65866060
厂商网址:
http://www.netgear.com.cn
E_mail :给厂商发送Email
 技术支持  给厂商技术支持打分 
常见问题  
 
  ◇ NETGEAR FS108P 全部NETGEAR/美国网件网络交换机
系统日志(Syslog)
答案:

这一部分描述系统日志(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 ?
<cr>                          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 ?
<cr>                          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 ?
<cr>              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 ?
<hostaddress>            Enter Logging Host IP Address
reconfigure                   Logging Host Reconfiguration
remove                          Logging Host Removal
(Netgear Switch Routing) (Config)#logging host 192.168.21.253 ?
<cr>                                Press Enter to execute the command.
<port>                            Enter Port Id
(Netgear Switch Routing) (Config)#logging host 192.168.21.253 4 ?
<cr>                                Press Enter to execute the command.
<severitylevel>            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 ?
<cr>                                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

此FAQ对您有帮助么?[ | ] | 收藏
 
访问美国网件公司北京代表处官方网站 | 访问IT价格网( Myprice.cn )