Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Log Application of SecureCRT

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >

Share

Shulou(Shulou.com)06/01 Report--

Generally speaking, when setting up a switch or router, I will habitually run sh run once, so that it can be restored even if there are errors in the configuration process.

Once, when I was configuring the switch, because I was just modifying the access vlan of the interface, it was very simple. I modified it at once, and then I turned off the SecureCRT easily. After shutting it down, I found that I made a mistake about the interface number that needed to be modified. I was depressed. I didn't make a backup. I didn't even know what the original configuration of the modified interface was. Finally, I asked my colleague to take a copy of the previous configuration before changing the configuration of the interface back. After this, I thought that if SecureCRT had the function of automatic log, after searching, it turned out that it had this function, but I didn't enable it myself. T_T

The method to enable it is as follows: select "options"-"Global configuration" in SecureCRT, and enter the following interface:

Then select "preset session Settings" and click "Edit preset Settings", as shown in the following figure

Then select "record File", according to my settings, each time a connection is established, a log file with the file name of the specified time will be generated in the specified directory, which will record all SecureCRT output information, so it is very convenient to query the commands you have typed.

Time parameter for file name:% Y%M%D_%h%m%s_%H.log

Add time to each line:% Y%M%D_%h:%m:%s

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Network Security

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report