Before SWAT can be run, the following lines in the configuration files
need to be updated. SWAT is available for guest users only.
In the file SERVICES.NET.SYS, the following line should be added to
include SWAT service:
swat 901/tcp #SWAT Tool
In the file INETDCNF.NET.SYS, the following line should be added to
include SWAT service:
swat stream tcp nowait.400 MGR.SAMBA /SAMBA/SMB20/bin/swat swat -a
How to invoke SWAT:
SWAT can be invoked by starting your favorite web browser with the
following arguments in the "go to" field:
http://sambaservername:901/. Here 901 is the port where SWAT
operates, refer to
Figure 7-9 "SWAT".
Figure 7-9 SWAT
SWAT can be used to open pages with links to online help and documentation,
as shown in Figure 7-9 "SWAT". This is done
from a remote location with the aid of a Web browser.
SWAT is used to provide a Web interface to view and configure smb.conf.
It provides the flexibility of altering the configuration file to reflect
changes with respect to shares. View or configure Global Variables using SWAT
as shown in Figure 7-10 "Global Variables".
Figure 7-10 Global Variables
Use SWAT to view the currently configured smb.conf file in abbreviated
and full views, as shown in Figure 7-11
"Current Config".
Figure 7-11 Current Config
A snapshot of active connections, shares and open files can be provided by
SWAT, as shown in Figure 7-12
"Server Status". The Server Status can be actively monitored by SWAT.
Figure 7-12 Server Status
How to use SWAT:
To use the SWAT interface, just point and click on any of the options
on the front page banner. The following are the brief descriptions of
what each link in the banner stands for:
Home
Samba help and documentation page
Globals
Link to global variable and configuration options
Shares
This link allows you to select the available shares for
configuration or lets you create/delete shares from the
record.
Printers
This link makes it possible to choose existing printers from the
printers section of smb.conf file and change the
configuration for each one of them.
Status
The status of the Server can be polled by clicking on this link,
smbd and nmbd running status can also be checked.
In addition, information on active connections, active share and
active files that are open can be retrieved, allowing easy
monitoring of server usage.
View
This link gives an abbreviated view of the smb.conf
file. A full view can also be obtained by clicking on the "Full
View" button.