This section covers the steps to start or stop Samba for MPE/iX.
Starting
Samba for MPE/iX |
 |
Before you start to run Samba for MPE/iX server or client
components, you should have set up the TCP/IP networking on your
HP e3000 system as well as your PC. On the HP e3000 system, 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 listener jobs or under control of INETD.
Disable
Resource Sharing |
 |
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 workaround. This can be
done by modifying the file PDSSERV.NET.SYS by changing the line 7 from 1 to 0. This will
set up PDSSERVE for non-reserved servers.
The following shows the steps of making non-reserved servers:
Modify the file PDSSERV.NET.SYS and change the line 7 from 1 to 0.
Shutdown the network.
Stream JCONFJOB.NET.SYS.
Start the network backup.
The command nscontrol status=services should show non-reserved PDSERVERs.
Verify
Link Configuration
The default assumes that LAN link configuration in NMMGR is
SYSLINK. You need to run the following command to get the IP address
and subnet mask of your HP e3000 system; you will need this information
for future Samba for MPE/iX configuration file updates with the "interfaces" parameter.
Logon as manager.sys
Enter the command Netcontrol status; net=LAN1
The following example displays when you run the command netcontrol status; net = lan1.
NETWORK IP ADDRESS: $0F0DC750 15.13.188.80 |
NETWORK SUBNET MASK: $0FF000000 255.0.0.0 |
To access share security modes, both samba and mgr.samba user accounts should have PM capabilities.
Logon as manager.sys
Add PM capability to samba account
Add PM capability to mgr.samba user
Starting
SMBD and NMBD Listener Jobs
Logon as mgr.samba
Copy the sample configuration file samp-smb.conf, samp-printcap and samp-user.map to smb.conf, printcap and user.map. Modify the entries to suit your Samba for MPE/iX
environment. The samp-smb.conf, samp-princap and samp-user.map files reside in the /usr/local/samba/lib directory.
Check your Samba for MPE/iX configuration files
with TESTPARM utility. The TESTPARM utility resides
in the /usr/local/samba/bin directory. Run the following command: shell/ix> testparm /usr/local/samba/lib/smb.conf.
Start your SMBD listener and NMBD server.
If you choose to run the
Samba for MPE/iX version 1.9.16p9, please use the jobs supplied
as JSMB.SAMBA.SYS and JNMB.SAMBA.SYS and stream them. If you choose to run the version
of Samba for MPE/iX 2.0.3, use the jobs supplied as JSMB20.SAMBA.SYS and JNMB20.SAMBA.SYS and stream them. If you choose to run the version of
Samba, for MPE/iX 2.0.7, use the jobs supplied as JSMB207.SAMBA.SYS and JNMB207.SAMBA.SYS
Use SHOWJOB to see if the jobs stay alive; it can look as
follows:
 |
JOBNUM STATE JIN JLIST JOB NAME |
#J30 EXEC 10S LP NMBMON,MGR.SAMBA |
#J31 EXEC 10S LP SMBMON,MGR.SAMBA |
Starting
Samba for MPE/iX Under the INETD Control
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. You will then 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:
Logon as manager.sys.
Copy SERVSAMP.NET.SYS file to SERVICES.NET.SYS if SERVICES.NET.SYS doesn't exist. The following two entries
should exist in file SERVICES.NET.SYS:
nmbp 137/udp smbp 139/tcp |
Copy INCNFSMP.NET.SYS file to INETDCNF.NET.SYS if INETDCNF.NET.SYS doesn't exist. If you run the Samba for
MPE/iX version 1.9.16p9, the following two entries should exist
in file INETDCNF.NET.SYS:
nmbp dgram udp wait MGR.SAMBA /SYS/SAMBA/NMBD nmbd smbp stream tcp nowait MGR.SAMBA /SYS/SAMBA/SMBD smbd |
If you run the version of Samba for MPE/iX 2.0.7, the following
two entries should exist in file INETDCNF.NET.SYS:
nmbp dgram udp wait MGR.SAMBA /SYS/SAMBA/NMBD207 nmbd smbp stream tcp nowait MGR.SAMBA /SYS/SAMBA/SMBD207 smbd |
Use the following two commands to create symbolic
links to make SERVICES.NET.SYS link to /etc/services and INETDCNF.NET.SYS links to /etc/inetd.conf, respectively:
:newlink /etc/services, /SYS/NET/SERVICES :newlink /etc/inetd.conf, /SYS/NET/INETDCNF |
Stream JINETD.NET.SYS to start SMBD listener and NMBD server (or use
INETD -c to reread the configuration file if INETD is already running.)
Use SHOWOUT JOB= Jobnumber
Print Oxxx.OUT.HPSPOOL to check for any problems in the spool files.
In case of problems, check for the job listings for useful
error messages and look into the Samba for MPE/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.
Initial
Test From a PC Client at DOS Prompt |
 |
You can open a DOS command window and issue the command line
using the following commands for initial test from a PC client:
C:\> net view\\servername |
This command, will display a list of available shares for
the server, see Figure 7-15 “Display
Available Shares From a PC Client”.
If you want to display a list of available shares on the Samba
for MPE/iX server named "HP e3000" enter the following
command at the DOS prompt:Example: C:\> net view \\HP e3000
C:\>net use x:\\servername\servicename |
This command will connect to a network drive X by entering
the sharename \\servername\servicename.
If you want to connect to drive letter "X" from
your PC to the "Sambdoc" service on Samba for
MPE/iX server named "HP e3000," type the following
command at the DOC prompt:
Example: C:\> net use x: \\HP e3000\sambdoc