Linux users can log Telnet sessions by using the tee command with the pipe options, as follows:
telnet host-ip-address 2>&1 | tee text-file
For example:
telnet 192.168.10.10 2>&1 | tee routerlog.txt
telnet host-ip-address 2>&1 | tee text-file
For example:
telnet 192.168.10.10 2>&1 | tee routerlog.txt
MS-Windows users can use the set logfile filename option within the Telnet utility, as follows:
c:windowssystem32>telnet
Welcome to Microsoft Telnet Client
Escape Character is 'CTRL+]'
Microsoft Telnet> set logfile routerlog.txt
Log file : routerlog.txt
Client logging on
Microsoft Telnet> open 10.0.0.1
Connecting To 10.0.0.1...
c:windowssystem32>telnet
Welcome to Microsoft Telnet Client
Escape Character is 'CTRL+]'
Microsoft Telnet> set logfile routerlog.txt
Log file : routerlog.txt
Client logging on
Microsoft Telnet> open 10.0.0.1
Connecting To 10.0.0.1...
After the Telnet session is over, you can read the text file (routerlog.txt, in this example) using any text editor.
자동적으로 routerlog.txt file에 telnet 에 대한 log file을 기록 합니다.
반응형