System information

80 Deploying Samba on IBM Eserver BladeCenter
5.1 Checking the server status
The Samba suite has several programs that can be used for checking the smbd and nmbd
daemons.
5.1.1 Checking the status
The status of the Samba server can be viewed by running the smbstatus command or
through SWAT. Checking status through SWAT is shown in “Status” on page 73.
A brief status report is returned by the command:
smbstatus -b
The report will be similar to Example 5-1.
Example 5-1 Brief status report
[root@portal1 root]# smbstatus -b
Samba version 2.2.7
PID Username Machine Time logged in
-------------------------------------------------------------------
23645 eburt m23bzzkv Mon Nov 11 09:28:08 2002
23802 mojoe burte Mon Nov 11 10:34:57 2002
The more detailed report shown in Example 5-2 is returned by the command:
smbstatus -d
Example 5-2 Verbose status report
[root@portal1 root]# smbstatus -d
using configfile = /etc/samba/smb.conf
Opened /var/cache/samba/connections.tdb
Samba version 2.2.7
Service uid gid pid machine
----------------------------------------------
redbook mojoe mojoe 23802 burte (9.24.104.129) Mon Nov 11 10:38:43 2002
mojoe mojoe mojoe 23802 burte (9.24.104.129) Mon Nov 11 10:34:57 2002
IPC$ eburt eburt 23645 m23bzzkv (9.24.104.164) Mon Nov 11 09:28:08 2002
No locked files
5.1.2 Checking resources
Checking the available resources without using a Windows system is done with the
smbclient command. The public browsable shares can be viewed by executing the
command:
smbclient -U% -L localhost
The output will look similar to what is shown in Example 5-3 on page 81. The available shares
are shown in the Sharename column.