Operating System - HP-UX
1834798 Members
2503 Online
110070 Solutions
New Discussion

Re: service entry in /etc/services not resolving

 
SOLVED
Go to solution
Craig Sterley
Advisor

service entry in /etc/services not resolving

Currently have several system set up running the horcm daemon for our XP san storage. Have one machine that when i put the server name 'horcm0' in the /etc/horcm0.conf file it will not start the horcm service giving the following error:

20:18:56-756c4-06175- ERROR: A wrong ipaddr or servicename line exists in HORCM_MON: line 10

When i replace the service name 'horcm0' with the port number assigned in the services folder all works just fine. I've checked both the conf file and service file for hidden characters without any luck. Looks as though it just doesn't resolve the service name. Any input would be great.

thanks
4 REPLIES 4
Peter Nikitka
Honored Contributor
Solution

Re: service entry in /etc/services not resolving

Hi Craig,


check for the name resolution in /etc/nsswitch.conf

fgrep service /etc/nsswitch.conf
services: nis files

In this case the NIS map is checked for the service name. Add the line with the new service definition to the file on the NIS master used for building the
service.by* maps, rebuild them and the resolution of the new service name will work.

mfG Peter
The Universe is a pretty big place, it's bigger than anything anyone has ever dreamed of before. So if it's just us, seems like an awful waste of space, right? Jodie Foster in "Contact"
Ninad_1
Honored Contributor

Re: service entry in /etc/services not resolving

When you said "I put the server name 'horcm0' in the /etc/horcm0.conf file"
I assume you are saying service name and not server name.
Please ensure you are entering the server name and service name correctly.
Also make sure that the server name entry exists in /etc/hosts and the service name entry exists in the /etc/services
e.g.
/etc/hosts
ip_address servername

in /etc/services
horcm0 11000/udp # RAID-Manager instance 0
horcm1 11001/udp # RAID-Manager instance 1
horcm2 11002/udp # RAID-Manager instance 2

And if you are using DNS that the dns entry for the server name is there. try ping to the server using the server name to ensure this.

Regards,
Ninad
Craig Sterley
Advisor

Re: service entry in /etc/services not resolving

Just in the implementation phase of NIS and forgot that it also controls the services. Thanks for the help.
Peter Nikitka
Honored Contributor

Re: service entry in /etc/services not resolving

Hi Craig,

your profile states

I have assigned points to 0 of 4 responses to my questions.

Perhaps take a look at

http://forums1.itrc.hp.com/service/forums/helptips.do?#28

and assign some points...

mfG Peter
The Universe is a pretty big place, it's bigger than anything anyone has ever dreamed of before. So if it's just us, seems like an awful waste of space, right? Jodie Foster in "Contact"