|
|
Communicator 3000 MPE/iX Release 6.0 (Platform Software Release C.60.00): HP 3000 MPE/iX Computer Systems > Chapter 10 Technical Articles Introducing Samba/iX |
|
by Wendy Cheng Samba/iX is a suite of programs which work together to allow clients to access a server's file space and printers via the Server Message Block (SMB) protocol. Samba is the Server Message Block (SMB) file server that runs on MPE/iX shell operating system on MPE/iX release 6.0. It allows the MPE/iX shell operating system to act as a file and printer server for SMB clients which are mainly for Microsoft LAN Manager and compatible products. These compatible clients can be Windows for Workgroups, Windows 95, Windows NT, or other clients. Initially Samba/iX was written for UNIX, now it also runs on MPE/iX, NT, and other operating systems. Samba/iX provides the file and printer sharing services between NT and HP 3000 systems. In practice, the user can redirect disks and printers to MPE disks and printers from Windows NT, Windows 95, LAN Manager, or other clients. A generic UNIX program that is part of the Samba/iX suite has also been ported to MPE/iX Shell operating system. This program allows UNIX or MPE users to use an FTP-like interface to access file space and printers on any other SMB servers. This capability enables these operating systems to act like a LAN server or Windows NT server. Samba/iX contains programs like SMBD and NMBD to provide server functionality and also contains utilities like SMBCLIENT or NMBLOOKUP to provide client functionality. The following lists the major components of Samba/iX:
With the availability of Samba/iX on a MPE/iX 6.0 system, you can set up your HP 3000 system as a Samba server. In order to set up the HP 3000 system as a Samba server, you have to create a configuration file that basically contains the information required for file and printer sharing services. This Samba configuration file contains information on various shares you may access. This file resides in /usr/local/samba/lib directory and is read when the SMBD server is run. Samba/iX supports both file and printer sharing services. As a result, you can define not only file shares but also printer shares. A listener process is then started under the control of INETD. The listener process waits for incoming client connection requests and creates child processes as needed. The Samba/iX server side validates user name and password which are sent by the client and grants access to the requested share if it is appropriate. When the client connection is established, the client can then send requests to the Samba/iX server that allow them to access shares, open files, read and write files. At the DOS prompt on a PC client, you can use NET VIEW command to retrieve information about available shares from the Samba/iX server. You can use NET USE command to connect to server shares and to map them to disk drivers. These network drivers are then accessible to regular PC applications. You don't need to use DOS commands for connecting or accessing shares, this can also be done from the Windows File Manager. You can also access server based printers using Samba/iX. Printer sharing works in such a way that the client creates a file on server directory associated with the printer, and then the server process triggers a configurable command to push that file into the MPE spooler. Before you start to run Samba/iX server or client components, you should have set up the TCP/IP networking on your HP 3000 system as well as your PC. On the HP 3000 system side, you should have a proper IP address and subnet mask configured in NMMGR as well as NETCONTROL START successfully executed. You must choose to start SMBD and NMBD either as Daemons or under control of INETD. If your system has NBDAEMON.PUB.HPLANMGR running, then SMBD and NMBD will not be able to use ports 137, and 139 as NBDAEMON already binds to them. The workaround solution is to stop the PDSERVER process. The NBMON and NBDAEMON processes will not start because of this. This can be done by modifying the file PDSSERV.NET.SYS by changing the line 7 from 1 to 0. This will setup PDSSERVE for non-reserved servers. The following shows the steps of making non-reserved servers:
The default assumes that LAN link configuration in NMMGR is SYSLINK. You need to run the following command to get IP address and subnet mask of your HP 3000 system, you will need this information for future Samba/iX configuration file updates with the "interfaces" parameter.
The following example displays when you run the command netcontrol status; net = lan1.
If you choose to run SMBD and NMBD processes under control of INETD, you should have new entries in SERVICES.NET.SYS and INETDCNF.NET.SYS and then you have to create symbolic links to make SERVICES.NET.SYS link to /etc/services and INETDCNF.NET.SYS symbolic links to /etc/inetd.conf respectively. Perform the following steps:
In case of problems, check for the job listings for useful error messages and look into the Samba/iX log file /usr/local/samba/var/log.smb and log.nmb for hints. You can control the amount of log messages with the "debug level" directive inside the config file. It is important to shutdown Samba/iX before bringing the system down. You can use the following commands to stop Samba/iX:
The Samba/iX programs write trace messages into a log file called log.smb or log.nmb by default. The log files reside in /usr/local/samba/var directory. The level of detail is controlled by a "debug level" option in the Samba configuration file which is smb.conf file. The debug level is an integer from 0 to 5. The high this value is, the more detail will be logged to the log file about the activities of the server. At level 0, only critical errors and serious warnings will be logged. Level 1 generates a small amount of information about operations. Level above 1 will generate considerable amount of trace messages which can be used for trouble shooting problems. The current version of Samba/iX on 6.0 is based on Samba/iX 1.9.16p9; the port uses the LIBBSD package (libraries and include files) available on Jazz (http://jazz.external.hp.com). This is to resolve the BSD style routines that are not part of POSIX to successfully compile with HPC/iX (c89 under the POSIX shell.) |
|