找回密码
 注册

QQ登录

只需一步,快速开始

查看: 23173|回复: 21

华为SA1456C日志如何清空?

[复制链接]
发表于 2017-4-7 13:33:30 | 显示全部楼层 |阅读模式
我想问下华为SA1456C,web方式登录后系统工具里用户日志、防火墙日志,这些日志怎么清空?
发表于 2018-8-13 19:44:58 | 显示全部楼层

努力挣猫粮
发表于 2017-4-7 13:44:28 | 显示全部楼层
清除配置类消息记录和系统出错记录。

WAP>oamcmd clear log

清除ONT内部PON芯片的统计项:

chipdebug clear

清除ONT内部所有统计信息:

chipdebug clearall

清除所有统计配置表项的统计数据。

WAP>bbsp clear policy-stats btv all
 楼主| 发表于 2017-4-7 14:38:34 | 显示全部楼层
setttt 发表于 2017-4-7 13:44
清除配置类消息记录和系统出错记录。

WAP>oamcmd clear log

还是大神厉害!刚入手sa1456c,正在学习中!
 楼主| 发表于 2017-4-9 08:23:03 | 显示全部楼层
本帖最后由 hack288 于 2017-4-21 09:48 编辑

更新下,清空日志最好的办法在shell里进行,干净彻底:
具体:

Welcome Visiting Huawei Home Gateway
Copyright by Huawei Technologies Co., Ltd.

Login:root
Password:
Password is default value, please modify it!
WAP>su
success!
SU_WAP>shell

BusyBox v1.18.4 (2016-04-17 22:20:48 CST) built-in shell (ash)
Enter 'help' for a list of built-in commands.

profile close core dump
WAP(Dopra Linux) # cd /mnt/jffs2/
WAP(Dopra Linux) #
WAP(Dopra Linux) # ls
CfgwithoutlineD        ftvoipcfgstate         mount_osgi_ok
DLNA_PATH              hard_version           oldcrc
FTCRC                  hw_boardinfo           ontstatusfile
ProductLineMode        hw_boardinfo.bak       optic_init_par.bin
TelnetEnable           hw_bootcfg.xml         optic_par_debug
USBCfgFlag             hw_ctree.xml           panicinfo
Updateflag_bak         hw_ctree_bak.xml       reboot_info
app                    hw_hardinfo_feature    resetkey
ceaseadv.conf          hwontdebuglogctrl.bin  roguestatus
cfmflag                hwontdebuglogdata.bin  rootfs_upgrade
chip_threshold         hwontlog.bin           save_upgrade_status
dhcpc                  main_version           scflie_0
emergencystatus        module_desc.xml        scflie_1
equipment              module_desc_bak.xml    xmlcfgerrorcode
fsok                   mount_ok               xpon_mode
WAP(Dopra Linux) #
WAP(Dopra Linux) # cat /dev/null > hwontdebuglogctrl.bin
WAP(Dopra Linux) #
WAP(Dopra Linux) # cat /dev/null > hwontdebuglogdata.bin
WAP(Dopra Linux) #
WAP(Dopra Linux) # cat /dev/null > hwontlog.bin
WAP(Dopra Linux) #
WAP(Dopra Linux) #
然后重启,日志完全消失了!最后记得把使能日志--->保存日志那个勾去掉就不会产生日志了
发表于 2017-4-18 21:33:58 | 显示全部楼层
学习了 谢谢分享
发表于 2017-6-4 23:23:17 | 显示全部楼层
017版本清除不了???
发表于 2018-4-20 22:06:48 | 显示全部楼层
hack288 发表于 2017-4-9 00:23
更新下,清空日志最好的办法在shell里进行,干净彻底:
具体:

学习了 谢谢分享
发表于 2018-4-21 07:35:56 | 显示全部楼层
学习     感谢分享
发表于 2018-4-21 12:00:27 | 显示全部楼层
hack288 发表于 2017-4-9 08:23
更新下,清空日志最好的办法在shell里进行,干净彻底:
具体:

华为光猫的日志会清除吗?有偿求助,可以加我QQ514467
*滑块验证:
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|小黑屋|宽带技术网 |网站地图 粤公网安备44152102000001号

GMT+8, 2025-6-20 18:47 , Processed in 0.025745 second(s), 5 queries , Redis On.

Powered by Discuz! X3.5 Licensed

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表