Databases
cancel
Showing results for 
Search instead for 
Did you mean: 

cannot ping localhost after reset kernel parameters

Teck Sim
Frequent Advisor

cannot ping localhost after reset kernel parameters

I was able to ping localhost, to other servers. But after I reset kernel parameters, I was unable to ping.
System is HP-UX 11.

Thanks.
16 REPLIES
Arockia Jegan
Trusted Contributor

Re: cannot ping localhost after reset kernel parameters

Can you have look at /etc/rc.log file for error messages for network startup scripts? Try to run /sbin/init.d/net start manually. If you get any error messages please post that messages. Run ifconfig to make sure it's showing the interface is up.
MANOJ SRIVASTAVA
Honored Contributor

Re: cannot ping localhost after reset kernel parameters

Hi Teck


Do a nslookup local hostanem and see how it ersolves its name , if it using the DNS server than there may be an issue , the best way to check this is to rename /etc/resolv.con to some other file and use the /etc/hosts to resolve the name . The check is do a nslookup hostname and once the name is reolved properly thatn may be you can ping to other servers too.


Also what is o/p of netstat -nr is it pointing to the coreect gateway ie deafualt gateway.



Manoj Srivastava
PIYUSH D. PATEL
Honored Contributor

Re: cannot ping localhost after reset kernel parameters

Hi,

Check for various things :

1. /etc/resolv.conf
2. /etc/nsswitch.conf
3. /etc/hosts
4. #ifconfig lan0 ( check whether lan card is up or not )
5. linkloop macaddress ( of the lan card)
6. lanscan
7. make sure that your /etc/hosts contains the following line:
127.0.0.1 localhost loopback

Piyush
S.K. Chan
Honored Contributor

Re: cannot ping localhost after reset kernel parameters

What are the kernel parameters you changed/reset ? Did you check you LAN interface to make sure it's ok (lanscan and lanadmin) ? Is the box able to ping to itself, ping others with IP address ?
PIYUSH D. PATEL
Honored Contributor

Re: cannot ping localhost after reset kernel parameters

Hi,

Check your /etc/resolv.conf (if you are using DNS) and /etc/nsswitch.conf.

If you are only using the /etc/hosts file, check that your nsswitch.conf has

hosts: files [NOTFOUND=continue]

Piyush
Teck Sim
Frequent Advisor

Re: cannot ping localhost after reset kernel parameters

I reset the new kernel parameters to the old values after I did cold-install on HP-UX 11, and reboot the system.

Before changing the new kernel parameters back to the old ones, everything worked fine. I could ping, did nslookup, ping from one server to another server, back and forth, no problem.
Sanjay_6
Honored Contributor

Re: cannot ping localhost after reset kernel parameters

Hi,

Did your lan network came up. What were the parameters you modified. Check and see the /etc/rc.log file if the network came up.

Hope this helps.

Regds
Teck Sim
Frequent Advisor

Re: cannot ping localhost after reset kernel parameters

Error message from /etc/rc.log file:

Start Software Distributor agent daemon
Output from "/sbin/rc2.d/s870 swagentd start:
______________________________________________

Error: swagentd exiting due to initialization error in background process. Check the logfile "/var/adm/sw/swagentd.log" for more information.

I ran /sbin/init.d/net start and it did not return any error messages.

Thanks.
PIYUSH D. PATEL
Honored Contributor

Re: cannot ping localhost after reset kernel parameters

Hi,

What kernel parameters did you change ???

What was the earlier version of OS on the system ??

Piyush
Teck Sim
Frequent Advisor

Re: cannot ping localhost after reset kernel parameters

maxuprc=597,
msgmap=6642,
msgmax=32768,
msgmnb=65535,
ncallout=680,
semmap=3322,
semmni=3320,
semmns=6640,
semmnu=660
Teck Sim
Frequent Advisor

Re: cannot ping localhost after reset kernel parameters

Earlier version was HP-UX 10.20
PIYUSH D. PATEL
Honored Contributor

Re: cannot ping localhost after reset kernel parameters

Hi,

You shouldnt change the paramters of 10.20 for 11 OS. You should revert back with the old parameters of HPUX 11 OS.

You can even boot with the old kernel....since it might have got saved in the /stand directory with vmunix.prev. The current kernel will be vmunix.

Boot with the old kernel and if everything is owrking fine then you could use the old kernel only.

Piyush
Teck Sim
Frequent Advisor

Re: cannot ping localhost after reset kernel parameters

How can I unlock the keyboard?

On the left hand side bottom of the monitor,
"KB LOCKD" appears. How can I get rid of this this?
Thanks.
PIYUSH D. PATEL
Honored Contributor

Re: cannot ping localhost after reset kernel parameters

Hi,

For the console problem, try:

1) Ctrl+shift+reset
2) Powercycle the console
3) Ctrl+D or Ctrl+C
4) Press the F4 key.

Piyush

Arockia Jegan
Trusted Contributor

Re: cannot ping localhost after reset kernel parameters

Can you post the content of netconf file? What did you get when you run /sbin/init.d/net start? Can you run "ifconfig lan0 up"?

Teck Sim
Frequent Advisor

Re: cannot ping localhost after reset kernel parameters

Somehow NIS do not work well after re-setting the kernel parameters.
I went to /etc/rc.config.d/, and changed NIS_CLIENT="0" from 1 in namesvrs.
Now I am able to ping from localhost, and from other servers.

Thanks for all the helps.