最佳答案
#diagfile信息
<H3C>diagnostic-logfile save
<H3C>cd flash:/diagfile //進入diagfile文件夾
<H3C>dir //查看logfile文件夾中的內容
Directory of flash:/logfile
0 -rw- 53734 Apr 13 2011 00:01:00 diagfile.log
<H3C>cd flash:/
<H3C>tftp 1.1.1.1 put flash:/diagfile/diagfile.log //將診斷信息從交換機導出到PC上。“1.1.1.1”為電腦PC的IP地址; “diagfile.log”為“cd flash:/diagfile”中dir查看到的文件名稱。
(0)
係統視圖執行diagnostic-logfile save
The contents in the diagnostic log file buffer have been saved to the file cfa0:/diagfile/diagfile1.log.
將生成的文件通過more的形式打印在終端上,記錄會話,或通過ftp將對應的日誌文件拷出。
(0)
暫無評論
如有tftp條件如下操作:
命令執行完成之後會顯示相關路徑:
例:
The contents in the
diagnostic log file buffer have been saved to the file flash:/
拿去文件的時候要用put + 路徑不直接以文件名
將信息通過tftp方式傳給IP地址為192.168.1.10的PC(PC上需要開啟TFTP服務器)
<H3C>tftp
192.168.1.10 put flash:/
如果沒有tftp條件直接開啟你命令行軟件記錄會話功能,然後執行命令記錄:
show flash:/
(0)
暫無評論
親~登錄後才可以操作哦!
確定你的郵箱還未認證,請認證郵箱或綁定手機後進行當前操作
舉報
×
侵犯我的權益
×
侵犯了我企業的權益
×
抄襲了我的內容
×
原文鏈接或出處
誹謗我
×
對根叔社區有害的內容
×
不規範轉載
×
舉報說明
暫無評論