M9000 框式 1+1 主控;支持 MDC/vSystem 多虚拟设备;登录 & 配置审计日志保存在 security‑logfile;普通系统日志 logfile;NAT 转发(flow‑log)业务日志,NAT 会话转发日志不会本地持久化保存到 flash,只支持实时外发日志服务器H3C。
security‑logfile 记录:账号登录 / 注销、登录源 IP、执行完整命令、配置修改操作;普通
logfile只记录事件告警,没有完整命令行,审计必须导出 security‑logfile。 ⚠️M9000 有主备两块主控;主备倒换后旧日志存在备用主控 flash,主、备主控都要导出;存在 MDC 时,每个 MDC 内部独立日志,需要进入对应 MDC 执行保存命令。
1、确认功能开启(默认开启)
system‑view
info‑center enable
info‑center security‑logfile enable
2、把内存缓冲区日志落盘写入 flash
<H3C> security‑logfile save
<H3C> logfile save
3、查看主、备主控日志文件列表
#当前主主控
dir flash:/security‑logfile/
dir flash:/logfile/
#备用主控,slot编号按实际硬件槽位
dir slot1#flash:/security‑logfile/
dir slot1#flash:/logfile/
4、导出(TFTP/FTP,设备作为客户端,PC 运行 TFTP 服务)
#导出安全审计日志(登录+配置操作)示例,文件名替换dir看到的实际文件名
tftp 192.168.1.10 get flash:/security‑logfile/security‑logfile1.log
#导出备主控审计日志
tftp 192.168.1.10 get slot1#flash:/security‑logfile/security‑logfile1.log
#普通系统日志
tftp 192.168.1.10 get flash:/logfile/logfile1.log
tftp 192.168.1.10 get slot1#flash:/logfile/logfile1.log
也支持 USB 拷贝:
copy flash:/security‑logfile/xxx.log usb0:/
5、控制台现场查看(不导出)
display security‑logfile | include login
display security‑logfile | include config
Web 说明:M9000 Web 页面不能直接下载 security‑logfile 审计文件,只能 CLI 导出。
✅M9000 不支持把大量 NAT 会话转换日志保存到本地 flash;NAT flow‑log 只支持实时发送给外部 syslog / 快速日志主机,设备本地不会持久存储历史 NAT 转发记录H3C。
如果之前没有配置日志主机,设备没有留存历史 NAT 转发日志,无法回溯导出过去的 NAT 会话记录。
两种模式二选一,优先用快速日志输出 customlog(性能更高,M9000 防火墙板推荐)H3C:
system‑view
#开启NAT日志总开关
nat log enable
#方式A:快速日志输出(推荐,大流量NAT场景)
customlog format nat standard
customlog host 192.168.1.200 port 514 export nat
#方式B:输出到info‑center syslog,只适合NAT流量很小场景,大流量会占满flash
userlog nat syslog
info‑center loghost 192.168.1.200 514
配置完成后,新产生的 NAT 建立 / 删除会话才会发送给日志服务器,旧的历史 NAT 日志拿不到。
display nat session all
display nat session verbose
这条只能看此时此刻存在的会话;会话拆除之后就消失,不会保存历史记录。
如果设备划分 MDC/vSystem 虚拟防火墙:
switch‑to mdc mdc‑namesecurity‑logfile save、logfile save,再导出该 MDC 内的登录 & 配置日志;info‑center file‑server自动定时把 security‑logfile 备份远端服务器H3C。
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
WEB界面在哪里导出呀