HPlogo Configuring and Managing MPE/iX Internet Services > Chapter 7 Samba for MPE/iX Services

Starting and Stopping Samba for MPE/iX

MPE documents

Complete PDF
Table of Contents
Index

E0802 Edition 6
E0701 Edition 5 ♥
E0400 Edition 4

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:
  1. Modify the file PDSSERV.NET.SYS and change the line 7 from 1 to 0.

  2. Shutdown the network.

  3. Stream JCONFJOB.NET.SYS.

  4. Start the network backup.

  5. 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.
  1. Logon as manager.sys

  2. Enter the command Netcontrol status; net=LAN1

The following example displays when you run the command netcontrol status; net = lan1.

     NETWORK NAME:        LAN1
     NETWORK IP ADDRESS:  $0F0DC750 15.13.188.80
     NETWORK SUBNET MASK: $0FF000000 255.0.0.0

Add PM Capability

To access share security modes, both samba and mgr.samba user accounts should have PM capabilities.
  1. Logon as manager.sys

  2. Add PM capability to samba account

  3. Add PM capability to mgr.samba user

Starting SMBD and NMBD Listener Jobs

  1. Logon as mgr.samba

  2. 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.

  3. 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.

  4. Start your SMBD listener and NMBD server.

  5. 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

  6. 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:
  1. Logon as manager.sys.

  2. 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
    
  3. 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
    
  4. 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
    
  5. 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.)

  6. Use SHOWOUT JOB= Jobnumber

  7. 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.


NOTE: The new version of Samba for MPE/iX 2.0.7 is released as the official patch/6.5. The Samba for MPE/iX 2.0.7 software resides inside the SAMBA account in HFS directories under /SAMBA/SMB207 after you install the official release patch for Samba. The current version of Samba for MPE/iX 1.9.16p9 still exists inside the SAMBA account in HFS directories under /SAMBA/PUB.

You can run only one version of Samba for MPE/iX at a time.

Stopping Samba for MPE/iX


It is important to shutdown Samba for MPE/iX before bringing the system down. You can use the following commands to stop Samba for MPE/iX:
  1. Use SHOWJOB to see if the jobs stay alive; it can look as follows:

    
      JOBNUM     STATE     JIN     JLIST     JOB
      #J30       EXEC      10S     LP        NMBMON,MGR.SAMBA
      #J31       EXEC      10S     LP        SMBMON,MGR.SAMBA
    
    
  2. Use the following two commands to stop Samba for MPE/iX:

    
      :abortjob          #smbjobnumber
      :abortjob          #nmbjobnumber
    
    

NOTE: Clients connected and writing to files will loose data if an abortjob is done with clients active.

Initial Test With smbclient Utility


The smbclient utility provides access to SMB servers with an FTP-like user interface. You can run smbclient utility on POSIX/Shell environment.

Logon to your MPE/iX system as mgr.samba:

  : sh.hpbin.sys
  shell/iX> cd bin
  shell/iX> smbclient -L <sambaserver>

This command should display a list of available shares (services) that matches your configuration file. If NMBD is running, a list of workgroups and related computers that NMBD could find on your network/subnet will be displayed, see Figure 7-13 "smbclient for MPE/iX (1)".

Figure 7-13 smbclient for MPE/iX (1)

[smbclient for MPE/iX (1)]

  shell/iX> smbclient \\\\<sambaserver>\\sambadoc -N -c help

This command should connect to the sambdoc share on your HP e3000 using -N to suppress password prompt and effectively become guest user and display the contents of on-line help screen of smbclient, see Figure 7-14 "smbclient for MPE/iX (2)".

Figure 7-14 smbclient for MPE/iX (2)

[smbclient for MPE/iX (2)]


NOTE: All smbclient examples used the -c option to specify the command on the command line. The smbclient program has an interactive mode which looks like FTP. Due to limitations of the select() system call on MPE/iX, the interactive mode does not yet work properly. At present, it can be worked around by using the -c option of smbclient.

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".

Figure 7-15 Display Available Shares From a PC Client

[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




Description and Usage of SWAT


Samba for MPE/iX Share Level Security Mode