All pastes #764288 Raw Edit

Kalavera

public text v1 · immutable
·published 2007-11-07 02:13 UTC
rendered paste body
[root@portal1 ~]# nmblookup -T -M -- -
added interface ip=10.0.1.2 bcast=10.0.1.255 nmask=255.255.255.0
Socket opened.
querying __MSBROWSE__ on 10.0.1.255
Got a positive name query response from 10.0.1.2 ( 10.0.1.2 )
Got a positive name query response from 10.0.1.50 ( 10.0.1.50 )
portal1.miraflores.gob.pe, 10.0.1.2 __MSBROWSE__<01>
10.0.1.50 __MSBROWSE__<01>
[root@portal1 ~]# 

[root@portal1 ~]# smbclient -L \\SAMSERVER
Error connecting to 172.168.25.7 (Connection refused)
Connection to SAMSERVER failed
[root@portal1 ~]# 

NEWEST, I THINK somebody does a shutdown on the other end :

[root@portal1 samba]# smbclient -L \\SAMSERVER
Error connecting to 172.168.25.7 (Connection refused)
Connection to SAMSERVER failed
[root@portal1 samba]# nmblookup -n SAMSERVER  -- -
added interface ip=10.0.1.2 bcast=10.0.1.255 nmask=255.255.255.0
Socket opened.
querying - on 10.0.1.255
name_query failed to find name -
[root@portal1 samba]# 


[root@portal1 samba]# /etc/init.d/smb stop 
Shutting down SMB services:                                [  OK  ]
Shutting down NMB services:                                [  OK  ]
[root@portal1 samba]# mv /var/cache/samba/browse.dat /var/cache/samba/browse.dat.old
[root@portal1 samba]# /etc/init.d/smb start
Starting SMB services:                                     [  OK  ]
Starting NMB services:                                     [  OK  ]
[root@portal1 samba]# smbclient -L samserver
Error connecting to 172.168.25.7 (Connection refused)
Connection to samserver failed
[root@portal1 samba]# 





[root@portal1 samba]# ps afxu | grep nmbd
root     15935  0.0  0.0 51168  668 pts/3    S+   21:37   0:00          \_ grep nmbd
root     15843  0.0  0.2 27308 2576 ?        Ss   21:30   0:00 nmbd -D
[root@portal1 samba]# ps afxu | grep smbd
root     15937  0.0  0.0 51172  668 pts/3    S+   21:38   0:00          \_ grep smbd
root     15838  0.0  0.3 33956 3264 ?        Ss   21:30   0:00 smbd -D
root     15839  0.0  0.3 33956 3260 ?        S    21:30   0:00  \_ smbd -D
503      15846  0.4  0.3 34512 3868 ?        S    21:31   0:01  \_ smbd -D
503      15848  0.0  0.3 34512 3924 ?        S    21:31   0:00  \_ smbd -D
root     15852  0.0  0.3 34516 4064 ?        S    21:32   0:00  \_ smbd -D
[root@portal1 samba]# kill -9 15843
[root@portal1 samba]# ps afxu | grep nmbd
root     15939  0.0  0.0 51168  664 pts/3    S+   21:38   0:00          \_ grep nmbd
[root@portal1 samba]# ps afxu | grep smbd
root     15941  0.0  0.0 51168  664 pts/3    S+   21:38   0:00          \_ grep smbd
root     15838  0.0  0.3 33956 3264 ?        Ss   21:30   0:00 smbd -D
root     15839  0.0  0.3 33956 3260 ?        S    21:30   0:00  \_ smbd -D
503      15846  0.4  0.3 34512 3868 ?        S    21:31   0:01  \_ smbd -D
503      15848  0.0  0.3 34512 3924 ?        S    21:31   0:00  \_ smbd -D
root     15852  0.0  0.3 34516 4064 ?        S    21:32   0:00  \_ smbd -D
[root@portal1 samba]# mv /var/cache/samba/browse.dat /var/cache/samba/browse.dat.old
mv: overwrite `/var/cache/samba/browse.dat.old'? yes
[root@portal1 samba]# ls -lah /var/cache/samba/browse.dat
ls: /var/cache/samba/browse.dat: No such file or directory
[root@portal1 samba]# nmb
nmbd       nmblookup  
[root@portal1 samba]# nmb
nmbd       nmblookup  
[root@portal1 samba]# nmbd -D
[root@portal1 samba]# ps afxu | grep smbd
root     16023  0.0  0.0 51168  664 pts/3    S+   21:39   0:00          \_ grep smbd
root     15838  0.0  0.3 33956 3264 ?        Ss   21:30   0:00 smbd -D
root     15839  0.0  0.3 33956 3260 ?        S    21:30   0:00  \_ smbd -D
503      15846  0.3  0.3 34512 3868 ?        S    21:31   0:01  \_ smbd -D
root     15852  0.0  0.3 34516 4064 ?        S    21:32   0:00  \_ smbd -D
[root@portal1 samba]# ps afxu | grep nmbd
root     16025  0.0  0.0 51168  664 pts/3    S+   21:39   0:00          \_ grep nmbd
root     15945  0.0  0.2 27304 2568 ?        Ss   21:38   0:00 nmbd -D
[root@portal1 samba]# smbclient -L samserver
Error connecting to 172.168.25.7 (Connection refused)
Connection to samserver failed
[root@portal1 samba]#