![]() |
Configuring and Managing MPE/iX Internet Services
> Chapter 7 Samba/iX ServicesTroubleshooting Samba/iX Server |
|||||||||||||||||||||||||||
|
PrerequisitesIn all of the tests it is assumed you have a Samba/iX server 1.19.16p9 or later running on your HP 3000. It is also assumed that the PC is running Windows for Workgroups, Windows 95 or Windows NT with a recent copy of the Microsoft TCP/IP stack. All these tests should be done with Windows for Workgroups (WfW), Windows 95,Windows 98 and Windows NT clients, as they all use different SMB's for file operations. You need to have a sample share called "public" for testing purposes. Check to see if you have "public" share in smb.conf file: [public] comment = files are shared path = /SAMBA/SHR/public read only = yes Troubleshooting ProceduresPlease follow these tests for diagnosing your Samba/iX server. TEST 1:In the directory in which you store your smb.conf file, run the command testparm smb.conf. If it reports any errors then your smb.conf configuration file is faulty.TEST 2:On the client side; open MS-DOS prompt and run "ping SAMBAIXSERVER" from the PC and "ping CLIENTPC" from the HP 3000 system. If you don't get a valid response, then your TCP/IP software is not correctly installed. If you get a message saying "host not found" or similar then your DNS software or hostname is not correctly set up.Ping might fail, if your host is running firewall software. You will need to relax the rules to let in the workstation in question, perhaps by allowing access from another subnet. TEST 3:Run the command "smbclient -L SAMBAIXSERVER" on the HP 3000 system. You should get a list of available shares back. If you get a "connection refused" response, then the SMBD server could not be running. If you get a "session request failed" then the server refused the connection to SMBD. Check your config file (smb.conf) for syntax errors with "testparm" as well as the various directories where Samba/iX keeps its log and lock files. Another common cause of these two errors is having something already running on port 139 (as in the case of NBMON/NBDAEMON) or SMBD already running under INETD. And yet another possible cause for failure of TEST 3 is when the subnet mask and/or broadcast address settings are incorrect. Please check that the network interface IP Address/Broadcast Address/Subnet Mask settings are correct and that Samba/iX has correctly noted these in the log.nmb file.TEST 4:Run the command "nmblookup -B SAMBAIXSERVER __SAMBA__" on the HP 3000. You should get the IP address of your Samba/iX server. If you don't get the IP address, then NMBD is incorrectly installed. Check your INETD, if you run it from there, or that the daemon is running and listening to UDP port 137. Check your INETD entries related to nmbd, as discussed earlier.TEST 5:Run the command "nmblookup -B CLIENTPC '*'" on the HP 3000. You should get the PCs IP address. If you don't get the PCs IP address, then the client software on the PC is not installed correctly, the PC is not started, or you have the name of the PC wrong.TEST 6:Run the command "nmblookup -d 2 '*'" on the HP 3000. This time try the same as the previous test but, try it via a broadcast to the default broadcast address. A number of NetBIOS/TCPIP hosts on the network should respond, although Samba/iX may not catch all of the responses in the short time it listens. You should see "got a positive name query response" messages from several hosts. If this doesn't give a similar result to the previous test, then nmblookup isn't correctly getting your broadcast address through its automatic mechanism. In this case you should experiment using the "interfaces" option in smb.conf to manually configure your IP address, broadcast and netmask. If your PC, and server aren't on the same subnet, then you will need to use the -B option to set the broadcast address to that of the PC's subnet. This test will probably fail if your subnet mask and broadcast address are not correct. (Refer to TEST 3 notes).TEST 7:On the PC, type the command "net view \\SAMBAIXSERVER". You will need to do this from within a "DOS prompt" window. You should get a list of available shares on the server. If you get a "network name not found" or similar error then NetBIOS name resolution is not working. This is usually caused by a problem in NMBD. To overcome the error you could do one of the following (you only need to choose one):
TEST 8:Run the command "net use x: \\SAMBAIXSERVER\Public". You should get a "command completed successfully" message. If not, your PC software is incorrectly installed or your smb.conf is incorrect.TEST 9:Run the following command to test the print services.
TEST 10:Some other tests, along with the ones mentioned previously, might be useful. These tests can be done to check the behavior of the Samba/iX server with these security policies:
Using Logfiles of Samba/iXIn case of problems, check for the job listings for useful error messages and also look into the Samba/iX log file /usr/local/samba/var/log.smb and log.nmb for hints. You can control amount of log messages with the "debug level" directive inside the config file smb.conf. Increasing the log level to 3 or 4 can shed light on the cause of most problems. This also may lead to a large amount of details to be logged into these files.You may have to increase the size of your log file if your debug level is more than 3.
|