In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
In this issue, the editor will bring you an example analysis of SecureCRT automatic logging. The article is rich in content and analyzes and narrates it from a professional point of view. I hope you can get something after reading this article.
Now the management of a large number of databases, strong real-time, often encounter database emergencies, every time I do the key steps of the operation I keep a log, retain all the operations and output contents, on the one hand, after dealing with the problem can make a summary, see if there are problems in the process, improve their ability to deal with problems. On the other hand, you can give the customer a record to keep the information at that time.
But the problem arises, often forgetting to keep the operation records in an urgent situation, resulting in many operation records can not be saved after brushing the screen, resulting in no operation records and the result of select output after dealing with the accident. Today, I specially find time to check some information and automatically record the log of CRT. The specific settings are as follows:
First, select "options"-- "Global options" in the menu
2. Then select General-default session-Edit default settings
Third, then select the log file
Enter the log path name you want to save plus the log file name in the log file name
Here, in order to log each session, you can use the supported parameters
% H hostname% S session name
% Y year% M month% D day
H hours, m minutes, s seconds
For example, I filled in D:\ work\ XXXX\ Logs\% H\% Y-%M-%D_%h%m%s.log
Even if it is kept in the D:\ work\ XXXX\ Logs\ directory, parameters can be used in the path.
\% H\ this setting allows you to put the logs of the same host into a folder. The folder name is the hostname, and no folder will be created automatically.
Here, you can check the connection to start logging.
Because we often turn on SecureCRT, but we don't necessarily use it all the time, in order to know when every line of command I enter, you can fill in [% h:%m:%s] in the "per line" setting.
This will record the entry time of each line of log.
In this way, you don't have to worry about forgetting to log information in the future. A log file is automatically created each time a window is opened. It's convenient.
The above is the example of SecureCRT automatic logging shared by Xiaobian. If you happen to have similar doubts, you might as well refer to the above analysis to understand. If you want to know more about it, you are welcome to follow the industry information channel.
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.