收集日志有如下两种方法

方法一:

可在CLI界面下执行supportshow命令打印交换机日志,并保存supportshow回显信息

方法二:

准备工作:

1.搭建ftp server或sftp server

2.光交能正常ping通ftp server

 

日志方法如下:

SNS2224:root> supportsave

This command collects RASLOG, TRACE, supportShow, core file, FFDC data

and then transfer them to a FTP/SCP/SFTP server or a USB device.

This operation can take several minutes.

NOTE: supportSave will transfer existing trace dump file first, then

automatically generate and transfer latest one. There will be two trace dump

files transferred after this command.

OK to proceed? (yes, y, no, n): [no] y

 

Host IP or Host Name: x.x.x.x    ftp server IP

User Name:xxx  fpt server用户名

Password: ftp用户密码

Protocol (ftp | scp | sftp): sftp 选择传输协议

Remote Directory:xxx   ftp server目录名称(保存目录)

 

Saving support information for switch:SNS2224, module:RAS…

……………………….

Saving support information for switch:SNS2224, module:CTRACE_OLD…

Saving support information for switch:SNS2224, module:CTRACE_OLD_MNT…

Saving support information for switch:SNS2224, module:CTRACE_NEW…

Saving support information for switch:SNS2224, module:FABRIC…

…….

Saving support information for switch:SNS2224, module:DIAG…

…..

Saving support information for switch:SNS2224, module:RTE…

Saving support information for switch:SNS2224, module:IF_TREE…

Saving support information for switch:SNS2224, module:ISCSID_DBG…

Saving support information for switch:SNS2224, module:AGDUMP…

Saving support information for switch:SNS2224, module:AGWWNS…

Saving support information for switch:SNS2224, module:AGWWN_CFG…

Saving support information for switch:SNS2224, module:VPWWN_CFG…

…..

Saving support information for switch:SNS2224, module:SSHOW_PLOG…

..

Saving support information for switch:SNS2224, module:SSHOW_OS…

………………………………………………….

Saving support information for switch:SNS2224, module:SSHOW_EX…

..

Saving support information for switch:SNS2224, module:SSHOW_FABRIC…

…………………………………….

Saving support information for switch:SNS2224, module:SSHOW_SERVICE…

……….

Saving support information for switch:SNS2224, module:SSHOW_SEC…

……………..

Saving support information for switch:SNS2224, module:SSHOW_NET…

………………..

Saving support information for switch:SNS2224, module:SSHOW_SYS…

………………………………………

Saving support information for switch:SNS2224, module:SSHOW_FICON…

……….

Saving support information for switch:SNS2224, module:SSHOW_ISWITCH…

Saving support information for switch:SNS2224, module:SSHOW_ISCSI…

Saving support information for switch:SNS2224, module:SSHOW_ASICDB…

………

Saving support information for switch:SNS2224, module:SSHOW_AG…

Saving support information for switch:SNS2224, module:SSHOW_APM…

Saving support information for switch:SNS2224, module:SSHOW_CRYP…

Saving support information for switch:SNS2224, module:SSHOW_FCIP…

Saving support information for switch:SNS2224, module:SSHOW_PORT…

..

Saving support information for switch:SNS2224, module:SSHOW_DCEHSL…

Saving support information for switch:SNS2224, module:SSHOW_FLOW…

Saving support information for switch:SNS2224, module:CEEDEBUG…

Saving support information for switch:SNS2224, module:CEETECHSUPPORT…

Saving support information for switch:SNS2224, module:FCOESUPPORT…

Saving support information for switch:SNS2224, module:C2REGDUMP…

Saving support information for switch:SNS2224, module:C1REGDUMP…

Saving support information for switch:SNS2224, module:PBREGDUMP…

Saving support information for switch:SNS2224, module:BLSREGDUMP…

Saving support information for switch:SNS2224, module:AVREGDUMP…

Saving support information for switch:SNS2224, module:C3REGDUMP…

Saving support information for switch:SNS2224, module:CRYP…

…………….

Saving support information for switch:SNS2224, module:FCIP…

Saving support information for switch:SNS2224, module:VFABRIC…

…..

Saving support information for switch:SNS2224, module:MAPS…

Saving support information for switch:SNS2224, module:FABRIC_WATCH…

Saving support information for switch:SNS2224, module:DM_FTR_FFDC…

Saving support information for switch:SNS2224, module:PSDUMP…

Saving support information for switch:SNS2224, module:CORE_FFDC…

Saving support information for switch:SNS2224, module:ENC_LOGGER…

Saving support information for switch:SNS2224, module:AN_DEBUG…

………………………..

Saving support information for switch:SNS2224, module:AMS_MAPS_LOG…

Saving support information for switch:SNS2224, module:FLOW_VISION_LOG…

Saving support information for switch:SNS2224, module:MP_LOG…

Saving support information for switch:SNS2224, module:RAS_POST…

……….

 

 

SupportSave completed.

 

收集完成后,在ftp server保存目录能看到所有的日志压缩包

转自:https://forum.huawei.com/enterprise/zh/thread/580935446182117376

原文地址:http://www.cnblogs.com/pipci/p/16819563.html

1. 本站所有资源来源于用户上传和网络,如有侵权请邮件联系站长! 2. 分享目的仅供大家学习和交流,请务用于商业用途! 3. 如果你也有好源码或者教程,可以到用户中心发布,分享有积分奖励和额外收入! 4. 本站提供的源码、模板、插件等等其他资源,都不包含技术服务请大家谅解! 5. 如有链接无法下载、失效或广告,请联系管理员处理! 6. 本站资源售价只是赞助,收取费用仅维持本站的日常运营所需! 7. 如遇到加密压缩包,默认解压密码为"gltf",如遇到无法解压的请联系管理员! 8. 因为资源和程序源码均为可复制品,所以不支持任何理由的退款兑现,请斟酌后支付下载 声明:如果标题没有注明"已测试"或者"测试可用"等字样的资源源码均未经过站长测试.特别注意没有标注的源码不保证任何可用性