Operating System - HP-UX
1834137 Members
2379 Online
110064 Solutions
New Discussion

Re: Problem with nsswitch.conf file

 
Ankit Kr Gupta
Advisor

Problem with nsswitch.conf file

Dear all,
i have sap netweaver 4.0 on Hp-UX 11.23 machine. There is a script to start & stop SAP system ie startsap & stopsap. This script start the SAP instance with database by calling startdb script. Now i m facing error that this script does not call the startdb script. When i remove the file nsswitch.conf from /etc/nsswitch.conf location then it is working fine. But when i create this file then it does not call the startdb script. Can u tell me that what is the issue. This nsswitch.conf file is also important as when i delete this file my Xmanager does not work .

Plz suggest.

Ankit
8 REPLIES 8
Jeeshan
Honored Contributor

Re: Problem with nsswitch.conf file

do you want to resolve your client with your domain? or do you have any /etc/resolve.conf file? if so then post your resolv.conf file content.

and also post your nsswitch.conf file content.
a warrior never quits
Deepak Kr
Respected Contributor

Re: Problem with nsswitch.conf file

Your startsap & stopsap files must be using domain name server for resolving some entries.

Please provide following

cat /etc/resolv.conf

cat /etc/nsswitch.conf

"There is always some scope for improvement"
Bill Hassell
Honored Contributor

Re: Problem with nsswitch.conf file

nsswitch.conf is a list of the rules to use in translating a name into an IP address. The default one is often not useful. Typically, you want to look in /etc/hosts first, then if not resolved, ask a DNS server. Your startup scripts are failing because they depend on network resources.

It is important to understand what the script is doing so you can troubleshoot the real problem. By removing nsswitch.conf, all addresses will be resolved by your DNS server(s) listed in /etc/resolv.conf, or if none exists, by looking in /etc/hosts. Xmanager also needs network resources, specifically your hostname. If your DNS servers have the wrong IP for your server, then Xwindows will have problems.

You can't determine anything about the problem until you trace the SAP start/stop script. You'll need to see the errors that cause the startdb not to be called. It may be that startdb is actually being called but is reporting an error in the SAP logs. Have you looked at the start/stop log /etc/rc.log?


Bill Hassell, sysadmin
Roland Piette
Regular Advisor

Re: Problem with nsswitch.conf file

Hello,

The log file with trace the start of SAP DB is located in /home/adm directory and his filename is structured as follow : startsap_DVEBMGS.log with
SID : System id
IN : Instance number.

Roland
Ankit Kr Gupta
Advisor

Re: Problem with nsswitch.conf file

Dear all,
Thanks for ur reply,
In my system i have resolv.conf file and nsswitch.conf file both in etc directory.
i am attaching the contents of both the files. and there is no error regarding calling of startdb script in startsap.log file.
Plz suggest.

Ankit
Ankit Kr Gupta
Advisor

Re: Problem with nsswitch.conf file

sorry
attachment missed out.

Ankit
F Verschuren
Esteemed Contributor

Re: Problem with nsswitch.conf file

I always have somting extra in the nsswitch.conf file, I do not know if it is needed but it is on all our servers
hosts: files [NOTFOUND=continue UNAVAIL=continue] dns
F Verschuren
Esteemed Contributor

Re: Problem with nsswitch.conf file

sory I posted 11.11

11.23 looks like:
hosts: files [NOTFOUND=continue UNAVAIL=continue TRYAGAIN=continue] dns