1829628 Members
1660 Online
109992 Solutions
New Discussion

Re: Login delay

 
boomerang
Frequent Advisor

Login delay

Hi Admins,

When i am logging into my HP-UX B.11.23 machine as root or as any other user,time taken for login is comparatively high when compared to other HP-UX B.11.23 machines.Please let me know the possible reasons.any input will be appreciated.

Thanks in advance.
6 REPLIES 6
Matti_Kurkela
Honored Contributor

Re: Login delay

- Is this system under a higher workload than the others?

- Check the length of /var/adm/wtmp* files. These files record user sessions, and will grow without limit. At login time, the system will search through the wtmp files to find the time of the previous login session of the same user.

Unless you trim those files periodically, these files will eventually grow so big that the search will take a noticeable amount of time.

FTP sessions are also recorded in wtmp files: if your machine is running a FTP server and it is used as an end-point of periodic automated file transfers, your wtmp files will grow faster.

SAM has a pre-configured function for trimming the log files (including the wtmp file) in the "Routine Tasks" section.

MK
MK
Sunil Sheoran
Frequent Advisor

Re: Login delay

Hi
Check the /etc/resolve.conf for any wrong entry. Once rename it try logging ....

Bill Hassell
Honored Contributor

Re: Login delay

If the delay time is about 20-30 seconds for each entry in the DNS file /etc/resolv.conf, your DNS servers have not been updated with your local machine's IP address. I'm assuming that you are logging in with a PC or something similar. To avoid this delay (and since updating DNS seems to be problematic), you can re-order the lookup of hostnames and IP addresses using the file /etc/nsswitch.conf.

If you are using DNS then change the hosts line in /etc/nsswitch.conf:

hosts: files [NOTFOUND=continue UNAVAIL=continue] dns

Then add your local PC's IP address to /etc/hosts. That should eliminate the delay at login.


Bill Hassell, sysadmin
johnsonpk
Honored Contributor

Re: Login delay

SoorajCleris
Honored Contributor

Re: Login delay

Hi ,

As MK and Bill mentioned, the problem may be related to DNS/ wtmp.

Probably, Configuring the Name resolution will resolve your issue.

Regards,
Sooraj U
"UNIX is basically a simple operating system, but you have to be a genius to understand the simplicity" - Dennis Ritchie
boomerang
Frequent Advisor

Re: Login delay

Thank you for your suggestions