Solve the problem of AIX telnet service shutdown and slow response


For the AIX telnet problem, many friends may not find it a good solution. Then we mainly talk about two aspects here. This includes the solution to stop the AIX telnet service and stop the AIX telnet host. So let's first look at how to stop the service.

Stop AIX telnet service

1. First ensure that the inetd daemon is enabled, you can enter #lssrc–s inetd to view; if you return inetd tcpip 270468 active

active Indicates that the inetd process is enabled.

2. Start the telnet service: #startsrc -t telnet

3. Stop the telnet service: #stopsrc -t telnet

4. Enter lssrc -t telnet command to check whether the telnet process is enabled.

5. Please check whether the following fields of the /etc/inetd.conf file are commented out. If it is commented out, it means that the Telnet service is not automatically opened when booting. Br>

The following is a code snippet:

telnet stream tcp6 nowait root /usr/sbin/telnetd telnetd -a


startsrc is the startup process, stopsrc Is to stop the process, lssrc is to get the status of the subsystem

-s is the specified subsystem

-t is the specified type

The solution to the slow response of the host AIX telnet

Cut off the on-site colleague's report database test host (AIX5.3) AIX The telnet host response is very slow, the specific performance is telnet ip_address after the carriage return takes about 1~2 minutes to appear the login: prompt. According to experience, it is caused by DNS resolution.

Log in to this AIX host as root and find that /etc/resolv.conf is empty, nothing:

The following is the code snippet:

DATA_CESHI:/# Ls -l /etc/resolv.conf

-rw-r--r-- 1 root system

0 Sep 21 10:10 /etc/resolv.conf

DATA_CESHI:/#cat /etc/resolv.conf


Two solutions:

1. If DNS is not required, put /etc directly /resolv.conf delete; or configure the correct domain name server name and IP, /etc/resolv.conf file format is similar to the following:

The following is a code snippet:




2, you can manually specify the DNS resolution order in the /etc/netsvc.conf file to local (local), that is, refer to /etc /hosts file. Add a line to the end of the file:

The following is a code snippet:



1. If you do not need DNS, Delete the /etc/resolv.conf file directly;

2. If you need DNS, you need to configure the correct domain name server name and IP in the /etc/resolv.conf file. After the domain name resolution needs to be obtained by the domain name server, Continue the following actions. If the domain name server is slow or busy, it will also cause the AIX telnet host to be slow.

Copyright © Windows knowledge All Rights Reserved