部署日誌服務器(網絡設備部分)
阿新 • • 發佈:2018-07-15
side center 信息 0.10 cat warnings lis aci -i
Cisco設備
logging on
logging 10.100.117.36 //配置日誌主機地址
logging trap 6 //指定日誌消息的級別
logging facility local6 //可根據實際應用配置
logging source-interface e0 //日誌發出用的源ip地址
日誌消息的級別
- 0:緊急(Emergencies)
- 1:告警(Alerts)
- 2:嚴重的(Critical)
- 3:錯誤(Errors)
- 4:警告(Warnings)
- 5:通知(Notifications)
- 6:信息(Informational)
- 7:調試(Debugging)
H3C設備
info-center enable //打開信息中心 inf-center loghost host-ip-addr channel 2 facility local-number //設置日誌主機的IP地址 info-center logging host host-ip-addr //設置日誌主機的信息通道 info-center host host-ip-addr channel {channel-number|channel-name} //設置日誌主機記錄工具 info-center timestamp loghost {date|iso[with-timezone]|no-year-date|none} //配置發送的日誌信息的時間戳格式
華為設備
info-center channel 6 name loghost1 //配置通道6的名稱為loghost1 info-center source IP channel 6 log level informational //配置信息通道6允許輸出IP模塊的日誌信息,允許輸出的日誌級別最低為informational info-center loghost source Ethernet1/0/0或Vlanif //配置發送日誌信息的源接口 info-center loghost x.x.x.x channel 6 Info-center loghost1 192.168.1.2 facility local6 language English//配置日誌信息輸出到日誌主機
ASA設備
logging device-id hostname
logging device-id context-name
ciscoasa(config)# logging enable
ciscoasa(config)# logging timestamp
ciscoasa(config)# logging trap informational
ciscoasa(config)# logging host inside 192.168.0.2
博科設備
syslogdipadd x.x.x.x (set log server IP)
syslogdipshow (show log server IP)
syslogdfacility -l 6 (set the facility level to 6)
部署日誌服務器(網絡設備部分)