Operating System - HP-UX
1832777 Members
3288 Online
110045 Solutions
New Discussion

Re: inetd unknown service error

 
VINU
Frequent Advisor

inetd unknown service error

dear friends,
I have installed the 'power broker' client in my server ( hp-ux 10.20) ,and made the following entries in /etc/services and /etc/inetd.conf as given in other servers with same os version where it is working fine.

/etc/services
# PowerBroker daemons
pbmasterd 24345/tcp # PowerBroker master daemon
pblocald 24346/tcp # PowerBroker local daemon
pblogd 24347/tcp # PowerBroker log daemon
pbguid 24348/tcp # PowerBroker gui daemon
pbsguid 24349/tcp # PowerBroker secure gui daemon

/etc/inetd.conf
# PowerBroker local daemon
pblocald stream tcp nowait root /usr/sbin/pblocald pblocald

But when I start the inetd daemon or reconfigure it I am getting the following error in syslog and pblocald is not listening on the port ( 24346).

syslog.log
May 26 16:41:41 suboz019 inetd[13532]: pblocald/tcp: Unknown service

Request u any one of u to help me out.

thanks & regards
Vinu
13 REPLIES 13
Sridhar Bhaskarla
Honored Contributor

Re: inetd unknown service error

Hi Vinu,

Are you sure the entry is there in /etc/services?. Double check the spelling and see if there aren't any invisible characters aroudn pblocald word in services file.


-Sri
You may be disappointed if you fail, but you are doomed if you don't try
RAC_1
Honored Contributor

Re: inetd unknown service error

Did you do inetd -c? (i.e did you restart inetd?)

Anil
There is no substitute to HARDWORK
Mel Burslan
Honored Contributor

Re: inetd unknown service error

Please make sure there is execute permissions set for /usr/sbin/pblocald.

after that, when you execute a statement like :

pbrun ksh

what error are you getting ? Better just before running this statement, pop open another telnet session to this system and tail -f syslog.log then execute pbrun ksh command. See what it says as a response and at the same time what types of messages you see coming to the syslog. I have used powerbroker, although not in admin level, to gain root access in a very large environment, but never seen this message. Although, very tiny portion of my servers maybe 15-20 were at 10.20 OS level.

Also, unless this server is the powerbroker master server at the same time, you do not want the line

pbmasterd 24345/tcp # PowerBroker master daemon

in /etc/services.

________________________________
UNIX because I majored in cryptology...
VINU
Frequent Advisor

Re: inetd unknown service error

hi anil & rac and other friends,

entry is there in /etc/services and I had pasted in the problem description, u people can check that.

I have tried both inetd -c and /usr/sbin/inetd start and stop,but the same message(unknown service) coming in syslog.

when I do 'pbrun ksh' , getting the following error

$ pbrun ksh
pbmasterd3.1.0-05: 3001 Connection to pblocald on suboz019 failed: Connection refused
pbrun3.1.0-05@suboz019: 3005 Request ended unexpectedly
$

the error coming in syslog.log at the same time is ,

May 26 18:20:47 suboz019 pbrun3.1.0-05: 3005 Request ended unexpectedly
May 26 18:22:05 suboz019 pbrun3.1.0-05: 3005 Request ended unexpectedly

thanks & regards
vinu


Bharat Katkar
Honored Contributor

Re: inetd unknown service error

VINU,
Not very sure about this but does that PowerBroker local daemon looks for any configuration parameters and that need to be set in the file residing at /etc/rc.config.d directory.

Regards,

You need to know a lot to actually know how little you know
Sridhar Bhaskarla
Honored Contributor

Re: inetd unknown service error

I just copied and pasted the entries for pblocald from your message on my workstation and restarted inetd and it is listening at the port 24346 just fine. You don't really need to have a corresponding binary just to have inetd listen at a port. Just for testing purposes, can you change the lines as below

pblocald 24346/tcp # PowerBroker local daemon

to

testservice 24346/tcp

for /etc/services and

pblocald stream tcp nowait root /usr/sbin/pblocald pblocald

to

testservice stream tcp nowait root /usr/sbin/pblocald pblocald

And see if inetd listens at 24346?

-Sri




You may be disappointed if you fail, but you are doomed if you don't try
RAC_1
Honored Contributor

Re: inetd unknown service error

Check if that port is already in use or not?

netstat -a|grep 24346

Any special chars in /ec/services file?
cat -v /etc/services and check powerborker services particularly.

Anil
There is no substitute to HARDWORK
Mel Burslan
Honored Contributor

Re: inetd unknown service error

a question :

is your pblocald continuosly running ? i.e., at any given time, even if nobody is doing anything powerbroker related, is the command

ps -ef | grep pblocal

shows you a pblocald process ?

also make sure that you have a localhost entry in your /etc/hosts mapping to 127.0.0.1

also make sure that nobody else is using the 24346 port.

last but not the least, is your powerbroker master server aware of the existence of this newly installed server ?
________________________________
UNIX because I majored in cryptology...
VINU
Frequent Advisor

Re: inetd unknown service error

hello sridhar,

made the entries in /etc/services and inetd.cong as u told but same error coming in syslog,

May 26 19:08:04 suboz019 inetd[22156]: Rereading configuration
May 26 19:08:04 suboz019 inetd[22156]: testservice/tcp: Unknown service

the /etc/services entry was,

testservice 24346/tcp # PowerBroker local daemon

and the inetd.conf entry was,

testservice stream tcp nowait root /usr/sbin/pblocald pblocald


thanks & regards
vinu


RAC_1
Honored Contributor

Re: inetd unknown service error

grep [p]blocald /etc/services
Post the results.

What are the perms on /etc/services?? Should have read perms for all.

Anil
There is no substitute to HARDWORK
VINU
Frequent Advisor

Re: inetd unknown service error

hello anil,

the info asked by u is given below,

suboz019:/sbin/init.d > grep [p]blocald /etc/services
pblocald 24346/tcp # PowerBroker local daemon
suboz019:/sbin/init.d > ll /etc/services
-rw-r--r-- 1 root sys 9684 May 26 19:29 /etc/services
suboz019:/sbin/init.d >


thanks & regards
vinu
Mark Grant
Honored Contributor

Re: inetd unknown service error

My guess is that you have a typo somewhere else in your /etc/services file. What you have posted looks OK so is it possible that earlier on in the file you have something that shouldn't be there?
Never preceed any demonstration with anything more predictive than "watch this"
Sanjay_6
Honored Contributor

Re: inetd unknown service error

Hi Vinu,

Try Symark / Powerbroker Support. They are very good. You'll have a solution in no time at all. They will walk you through the solution if necessary,

http://www.symark.com/support.htm

Hope this helps.

Regds