技術提示:如何使用PuTTY創建會話的日誌文件

 Technical Tip: How to create a log file of a session using PuTTY

技術提示:如何使用PuTTY創建會話的日誌文件

Description

描述

This article explains how to use PuTTY to create a log file of a session.

本文解釋了如何使用PuTTY創建會話的日誌文件。

Solution

解決方案

1) Double click the PuTTY icon to launch the application

  1. 雙擊PuTTY圖標以啟動應用程序




Now let's Start how to create a log file of your session

現在讓我們開始創建會話的日誌文件

2) Click Logging

  1. 點擊“記錄”(Logging)

The logging settings are listed here on the right. Let's demonstrate how to save a log file to your desktop

記錄設置在這裡的右側列出。讓我們演示如何將日誌文件保存到您的桌面

3) Click All session output

  1. 點擊“所有會話輸出”(All session output)

4) Leave Putty.log as the log file name

  1. 將日誌文件名保留為Putty.log

5) Then click Browse to choose the save location

  1. 然後點擊“瀏覽”(Browse)選擇保存位置

6) Ensure Desktop is selected or Choose Specific Location to save file...

  1. 確保選擇了“桌面”(Desktop)或選擇特定位置保存文件...

7) Then click Save

  1. 然後點擊“保存”(Save)

8) Ensure 'Ask the user every time' is selected... then click Open to begin your session

  1. 確保選擇了“每次詢問用戶”(Ask the user every time)... 然後點擊“打開”(Open)開始您的會話

9) Type your username, then push <Enter>

  1. 輸入您的用戶名,然後按<回車>

10) Type your password, then push <Enter>

  1. 輸入您的密碼,然後按<回車>

Now let's type a simple shell command. PuTTY can log dozens of commands within your session.

現在讓我們輸入一個簡單的shell命令。PuTTY可以在您的會話中記錄數十個命令。

11) Type a simple test command here, then press <Enter>

  1. 在這裡輸入一個簡單的測試命令,然後按<回車>

12) Now type Exit, then push <Enter> to close PuTTY

  1. 現在輸入Exit,然後按<回車>關閉PuTTY

We can see that a log file has been saved to the desktop or specified location.

我們可以看到日誌文件已被保存到桌面或指定位置。

13) Now let's open the log file... double click on file saved in specific location <File Name>

  1. 現在讓我們打開日誌文件... 在特定位置雙擊保存的文件<File Name>

The log file contains all commands entered, great for saving your sessions to review at a later date or attach the saved file in FortiCare Support ticket for TAC review.

日誌文件包含輸入的所有命令,非常適合保存您的會話以便日後回顧,或將保存的文件附加在FortiCare支持票據中以供TAC審查。

FortiGate troubleshooting

FortiGate故障排除

這個網誌中的熱門文章

excel檔案異常變大(可能是物件造成的)

中華電信之合勤ZyXEL數據機的登入帳密

Exchange2013 人員離職(報到)強制更新 離線通訊錄 方式