As an O & M dBA, you should generate a log record when handling faults or operations. Of course, we usually connect to the system through securecrt, so we use this tool to record logs.
Before each operation, I click to record logs. The trouble is a little troublesome. I am used to this kind of practice. Of course, sometimes I forget to record logs.
After studying it yesterday, securecrt can automatically record logs. Of course, this feature was available N years ago, but I have never studied it.
I searched for the securecrt version, which has reached 7.1. I have been using the 6.0 software many years ago, and there is no need to catch up with new ones, but I updated it today.
Securecrt7.1: http://www.vandyke.com/download/securecrt/download.html
Configure Automatic Log as follows:
1. Options ---> Global Options
2. Edit default setting
3. Set Log File Attributes
Click Log and enter the path and name parameters in the log file name field in the option box:
E: \ Dave \ securecrt_log \ % Y _ % m _ % d _ % H. Log
The log format is: year _ month _ day _ host name. log, and then start log upon connect and append to file.
The parameter description is as follows:
% H Host Name (IP address used to connect to the host)
% Y year
% M month
% D
% H hour
% M minutes
% S seconds
Fill in the on each line session box in custom log data:
% Y % m % d _ % H: % m: % s
The CRT will add a timestamp to each line in the log content, and fill in parameters as needed.
4. Verify
Small knowledge.
Bytes --------------------------------------------------------------------------------------------
All rights reserved. reprinted articles are allowed, but source addresses must be indicated by links. Otherwise, the documents will be held legally responsible!
QQ: 251097186
Skype: tianlesoftware
Email: tianlesoftware@gmail.com
Blog: http://blog.csdn.net/tianlesoftware
WEAVER: http://weibo.com/tianlesoftware
Twitter: http://twitter.com/tianlesoftware
Facebook: http://www.facebook.com/tianlesoftware
LinkedIn: http://cn.linkedin.com/in/tianlesoftware