Operating System - HP-UX
1827769 Members
2844 Online
109969 Solutions
New Discussion

Samba SWAT status shows smbd not running but...

 
SOLVED
Go to solution
romano r
Frequent Advisor

Samba SWAT status shows smbd not running but...

Hello,
I've installed CIFS/9000 server on my HP-UX11i box. It seems work fine, but using the SWAT status tab it shows me that "nmbd" daemon is running and "smbd" not even if it is running. From this menu I can restart "smbd", but not stop because "not running"; "nmbd" is correctly show as "runnig".

Has anyone an idea on how to manage this?
Thanks
Romano
8 REPLIES 8

Re: Samba SWAT status shows smbd not running but...

can you send the output of
ps -ef|grep bd

???

Cheers

Together we stand divided we fall
Steve Steel
Honored Contributor

Re: Samba SWAT status shows smbd not running but...

romano r
Frequent Advisor

Re: Samba SWAT status shows smbd not running but...

Hello Christos!

>ps -ef |grep bd
root 11 0 0 May 5 ? 0:00 strfreebd
root 1098 1 0 May 5 ? 0:00 /usr/sbin/hubd
root 25553 1 0 11:12:25 ? 0:00 /opt/samba/bin/smbd -D
root 25566 1 0 11:13:11 ? 0:00 /opt/samba/bin/nmbd -D
U.SivaKumar_2
Honored Contributor

Re: Samba SWAT status shows smbd not running but...

Hi,

Check whether the smbd daemon's pid file is created or not.

regards,
U.SivaKumar
Innovations are made when conventions are broken
Zeev Schultz
Honored Contributor

Re: Samba SWAT status shows smbd not running but...

Hi Romano,
This is looks pretty strange but cifs9000
stop script (stopsmb) is the only one that
mentions (removes) /var/opt/samba/locks/*.pid
files (that has smbd/nmbd pid).
Anyway,the problem with SWAT is a bit different
---- From some of my searches ------------
The way the swat (Samba Web Administration Tool) tool determines
whether SMBD is running or not is by doing a name_query on 127.0.0.1
for the name "SAMBA". If it finds this name, then it reports that
smbd is running.

Make sure the configuration has not somehow disabled 127.0.0.1.

There are various places to check depending on the network
configuration in terms of name resolutions:

1. NIS

2. DNS

3. /etc/hosts file

4. nsswitch configuration

Regards

Zeev
So computers don't think yet. At least not chess computers. - Seymour Cray
Zeev Schultz
Honored Contributor
Solution

Re: Samba SWAT status shows smbd not running but...

All right,
Thats where you can see it:
/opt/samba/bin/nmblookup -A localhost.
On my samba:

silverc:root:samba/bin# nmblookup -A localhost
Looking up status of 127.0.0.1
SILVERC <00> - M
SILVERC <03> - M
SILVERC <20> - M
SAMBA <1e> - M

Where 1e stands for group..
So computers don't think yet. At least not chess computers. - Seymour Cray
romano r
Frequent Advisor

Re: Samba SWAT status shows smbd not running but...

Hi again,
[Zeev]
localhost is resolved, I run SWAT even from a remote PC than from the same host were CIFS is running, but alway the same:
smbd: not running
nmbd: running

[SivaKumar]
.pid files are created.

[Steve]
I can't reach docs.cup.hp.com
romano r
Frequent Advisor

Re: Samba SWAT status shows smbd not running but...

Wow!!
Thnk you Zeev 10 pts!!!
The samba host was looking just on DNS, but it could not resolve (due to a bug) localhost (just 127.0.0.1 to localhost and not the reverse). So I edited the nsswitch.conf I put host as 1st choice and it works!!

Thank you all
ciao
Romano