cancel
Showing results for 
Search instead for 
Did you mean: 

login query

SOLVED
Go to solution
himacs
Super Advisor

login query

server B.11.23

Server takes long time to login after giving password.The same is happening with all the users.

Regards
himacs
13 REPLIES
Manix
Honored Contributor

Re: login query

Please tell how are you logging in ,ssh ,telnet
is it slow from console as well.

Is the DNS pingable & do check local lookups
by keeping files ahead of DNS in /etc/nsswitch.conf.

Thanks
Manix

HP-UX been always lovable - Mani Kalra
Bill Hassell
Honored Contributor

Re: login query

This is a very frequently asked question. Most likely your DNS server is not configured correctly, specifically, reverse look up records (IP to hostname) are missing. You can verify this by asking HP-UX to lookup your local PC's IP address (not hostname): nslookup 1.2.3.4

As a temporary workaround (sometimes DNS changes take a very long time to fix), configure your resolver order by changing /etc/nsswitch.conf like this:

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
aliases: files

Then add your PC's address to the /etc/hosts file. The actual hostname is unimportant, like pc1 pc2 pc3 pc4, etc. Now, nslookup 1.2.3.4 should return immediately and your login will be immediate.

Repeat for every possible client address until DNS is corrected. For the DNS folks: every DHCP address must have a reverse (IP address) lookup record.


Bill Hassell, sysadmin
P Arumugavel
Respected Contributor

Re: login query

Any NFS filesytem mounted on your server?

Rgds...
himacs
Super Advisor

Re: login query

Hi Bill/Hassil,

Thanks for the response.

We are not using dhcp and dns.

my nsswitch.conf looks like below

cat nsswitch.conf
#
# /etc/nsswitch.files:
#
# @(#)B11.23_LR
#
# An example file that could be copied over to /etc/nsswitch.conf; it
# does not use any name services.
#
passwd: files
group: files
hosts: files
ipnodes: files
services: files
networks: files
protocols: files
rpc: files
publickey: files
netgroup: files
automount: files
aliases: files


Regards
himacs

himacs
Super Advisor

Re: login query

Hi Vel,

NFS and NIS disabled in the server.


Regards
himacs
himacs
Super Advisor

Re: login query

Hi Manix,

I can login to console using telnet with no delay.

But ssh not happening with console.

Its not problem with hostname .Login is happening perfrctly but after some delay.

Regards
himacs
P Arumugavel
Respected Contributor

Re: login query

Verify any filesystem size goes out of extent?
himacs
Super Advisor

Re: login query

Hi Vel,
All the mountpoints are under threshold value.


bdf
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol3 2097152 357608 1725968 17% /
/dev/vg00/lvol1 1835008 410088 1413832 22% /stand
/dev/vg00/lvol8 10485760 5376952 5071752 51% /var
/dev/vg00/lvol7 7356416 3596784 3730336 49% /usr
/dev/vg00/lvol4 4194304 1880744 2297952 45% /tmp
/dev/vg00/lvol9 11534336 8654552 2705008 76% /oracle
/dev/vg00/lvol6 8388608 6296064 2076232 75% /opt
/dev/vg00/lvol5 2097152 934912 1153216 45% /home
/dev/vg02/lvol6 37888000 12883351 23442362 35% /arch
/dev/vg02/flexdata 1048576 422064 587406 42% /flexdata
/dev/vg03/lvol20 76800000 27802345 45936697 38% /flexdb02
/dev/vg_rac/data1 10240000 872315 8782262 9% /data1
/dev/vg_rac/data2 15728640 9746391 5608419 63% /data2


Regards
himacs
Alzhy
Honored Contributor
Solution

Re: login query

cd /var/adm
cp -p wtmps wtmps.OLD
cp /dev/null wtmps


Your SSH into the server should now be "fast".. Your current SSHD daemon is likely afflicted with that SSHD bug...

Hakuna Matata.
himacs
Super Advisor

Re: login query

Hi Admins,

Problem solved.I have nulled wtmps and btmps.Now logging is immedaite.

Regards
himacs
Alzhy
Honored Contributor

Re: login query

Awesome..
Now how how about some LUV if you feel you've been helped....

;^))
Hakuna Matata.
Manix
Honored Contributor

Re: login query

Good to see it is resolved ..what i mean to say the same thing as Bill said that due to DNS the resolution may takes time ,so we check with "files" in nsswitch.conf .

If resolution is taking time then DNS is usually comes into question,yes it didn`t happened in this case.
HP-UX been always lovable - Mani Kalra
madhuchakkaravarthy
Trusted Contributor

Re: login query

hi

/usr/sbin/acct/fwtmp /tmp/wtmp.old

remove the old logs...

after deleting use -ic to replace the original file.

regards

MC