Operating System - HP-UX
1846066 Members
2568 Online
110253 Solutions
New Discussion

server takes time to login

 
sandyunix
Occasional Advisor

server takes time to login

Hi Techies,

I have a problem while logging into one of my hp-ux server. It takes quite long time to load the prompt after the password is validated. I had checked the server and found nothing suspectable. Can someone recommend a solution for me.

Thanks.
10 REPLIES 10
Shibin_2
Honored Contributor

Re: server takes time to login

How about your file system thresholds ? How about /var and root file systems ? How about your process threshold ?
Regards
Shibin
sandyunix
Occasional Advisor

Re: server takes time to login

All the filesystems disk space utilisation is below 80%. /var and / are less than 50%. Also the memory utilization and CPU utilization are quite less.
kemo
Trusted Contributor

Re: server takes time to login

check your network configuration
this behavior usually caused by Network misconfiguration,

1- check hostname command and put entry in etc/hosts for the hostname
2- check your DNS "nslookup" and fix any issue if there.
3- use FQDN.

thanks
Steven Schweda
Honored Contributor

Re: server takes time to login

> [...] while logging into [...]

Logging in from what?

> [...] my hp-ux server. [...]

Not a very detailed description of anything.

uname -a

> [...] quite long time [...]

Define "quite long time".

Logging in how? Serial port? Telnet?
RSH/REMSH? SSH? ???

If it's some network method, then a Forum
search for keywords like, say,

slow telnet

should find many old threads which describe a
common reverse-DNS problem which can cause
this kind of behavior (and a few other
possible causes).
Steven Schweda
Honored Contributor

Re: server takes time to login

> 2- check your DNS "nslookup" and fix any
> issue if there.

Check _how_, exactly?

> 3- use FQDN.

For the usual (reverse-) DNS problem, that
would make exactly no difference.


For more useful answers, you might try that
Forum search.
bibith dathan
Advisor

Re: server takes time to login

Hi

Please check size of below files and if it is of huge size trim those ( take backup if needed )
/var/adm/wtmp
/var/adm/btmps
/var/adm/wtmps

Bibith
Rita C Workman
Honored Contributor

Re: server takes time to login

Looking at your issue:
"...while logging into one of my hp-ux server. It takes quite long time to load the prompt after the password is validated"

Based on what you write, clearly you have no issue getting to the server. So resolution is NOT the issue. You get the prompt and login with password - THEN your slow down occurs.

At that point, I might start by taking a look at the files being served up - like the /etc/profile and user's .profile....
Check syntax..

Just a quick thought,
Regards,
Rita
Doug O'Leary
Honored Contributor

Re: server takes time to login

Hey;

Two of the most common reasons for delayed logins were mentioned; hwoever, to reiterate:

/var/adm/*tmp files get updated/searched when you log in. If those files are *huge*, the search will take a bit and so will your log in.

telnet/ssh/ftp all do reverse dns look ups. if you're DNS isn't set up correctly - or even worse - the first dns server isn't responding, your accesses will be delayed while the first one times out and the queries go to the second one..

One more thing to check, assuming those two are ok: do all users experience this or is it just specific users. If only specific users, move their profiles out of the way and try again. If that speeds up the access, then something in borked with their environment.

Those are the things that come immediately to mind. Hope it helps.

Doug O'Leary

------
Senior UNIX Admin
O'Leary Computers Inc
linkedin: http://www.linkedin.com/dkoleary
Resume: http://www.olearycomputers.com/resume.html
Bill Hassell
Honored Contributor

Re: server takes time to login

Rather than "check your DNS", here is a solution that will probably help:

1. Create (or replace) the file /etc/nsswitch.conf with:

passwd: files
group: files
hosts: files [NOTFOUND=continue UNAVAIL=continue] dns
ipnodes: files [NOTFOUND=return UNAVAIL=return TRYAGAIN=return]
services: files
networks: files
protocols: files
rpc: files
publickey: files
netgroup: files
automount: files

2. Add the IP address of your PC, your Linux box, your Mac, whatever you use to login to your system, to the /etc/hosts file.


Bill Hassell, sysadmin
Taifur
Respected Contributor

Re: server takes time to login

Hi,

Check the syslog from /var/adm/syslog/syslog.log .

Check /var/adm/wtmp
/var/adm/utmp


Cheers..
Taifur