HP 3000 Manuals

Managing the Shared Disc Environment [ HP Resource Sharing for MPE/iX ] MPE/iX 5.0 Documentation


HP Resource Sharing for MPE/iX

Managing the Shared Disc Environment 

The initial shared disc environment is established during installation.
After initial installation, you can create additional shared discs and
sharenames that allow PC users to connect to shared discs.  You can
delete or modify shared discs and sharenames.

Setting Up for Shared Files (Shares and Uses) 

You can set up more than one name to any existing or new shared disc, or
different users can be given connections to the same name if they need
access to the same files.  In addition, you can define an assortment of
sharenames, each representing a path to a different subdirectory within a
shared disc.  This gives different users access to some but not all files
stored on the shared disc.  Sharename strategies are discussed in "Shared
Disc Security," later in this chapter.

To set up user connections to specific shared 
files: 

   1.  Use the Resource Manager Utility (RESMGR) to create shared discs.
       See "Creating a Shared Disc" in Chapter 9.

   2.  Use either the Disc Manager Utility (DISCMGR) or DOS to make
       subdirectories within a shared disc.  For the DISCMGR procedure,
       see "Managing Shared Disc Subdirectories" in Chapter 13.

   3.  Use RESMGR again to set up the additional sharenames to specific
       subdirectories.  See "Sharing a Disc" in Chapter 9 for the
       procedures and the "Shared Disc Security" discussion later in this
       chapter for subdirectory strategies.

   4.  After you create the desired shared discs and names, set up
       connections from a PC to the root or to any subdirectory of a
       shared disc.

       The connections can be made in three ways:

          *   The PC user can enter the connection commands manually to
              connect to the shared disk.

          *   The connection commands can be added to the PC user's
              AUTOEXEC.BAT FILE.

          *   The PC user can make a connection manually using file
              manager utilities included with some 3rd party products.

       See your PC network manuals for more information.

If you delete shared discs or change or delete sharenames (see Chapter
10, "Managing Shared Discs"), remember to change any automated
connections you set up.

Managing the Share File PDSHARE 

All the information Resource Sharing needs to keep track of concerning
available shares (currently defined shared discs and sharenames) is in
the single file PDSHARE.PPC.SYS.

If something happens to the PDSHARE file, no shared discs or shares
printers can be connected.

If it is ever necessary, the PDSHARE file can be deleted through the
Resource Manager Utility (RESMGR). See "Deleting the Share File" in
Chapter 10.

PDSHARE.PPC.SYS is a privileged file and can be restored, since it is
backed up with the regular SYSGEN backup.  If it is restored, new shares
created since the file was last backed up will be lost.

Another method of re-creating the PDSHARE file is to create a job that
runs the Resource Manager Utility (RESMGR) and re-create a base set of
shares. 

To re-create the base set of shares with a job 
file: 

   1.  Log on to an account as a user who has SM or NM capabilities.

   2.  Create a job file with RESMGR commands that define the standard
       set of shares you want the users to have.  See Chapter 11,
       "Resource Manager Commands."

HP 3000 Limits 

Since the shared disc facility is implemented using MPE files that can be
seen with the MPE LISTF command, there are certain file limits on the HP
3000 that apply to shared discs as well as, or in addition to, standard
MPE files.

   *   The maximum number of files in a group is 30,000.

       The number of files in a group is the total of shared disc root
       file (VDROOT), shared disc data files (VDTnnnnn), and any other
       MPE files of any type in this group.  For more information about
       shared disc files, see "Security through Shared Disc File
       Structure" later in this chapter. 

   *   Any disc space, account or group limit applied by the HP 3000
       System Manager also applies to the shared discs. 

   *   Any capabilities applied to the group or account apply to the
       shared disc.  For example, if Save File (SF) capability is not
       given to the account, shared discs cannot be created on any group
       of that account. 

Listing Share Status through Resource Sharing 

You can use a job stream to generate a listing of SHARE STATUS
information.  The following sample jobs will produce an offline listing
of status information about all defined shares:

   *   Share permission (for shared discs)

   *   Sharename (for shared discs or printers)

   *   Path to shared disc or subdirectory on shared disc

   *   Workstation currently connected to sharename

For more information, see "Displaying the Share Status" in Chapter 9.

To produce an offline listing of shared discs: 

Share passwords are not displayed in this listing.

   1.  Use the following commands in a job stream:

            :JOB MANAGER.SYS
            :FILE PDLIST;DEV=LP
            :RUN RESMGR.PPC.SYS;STDLIST=*PDLIST
            SHARE STATUS
            EXIT
            :SET STDLIST=DELETE
            :EOJ

   2.  Stream the job.

To produce an offline listing with share passwords: 

Type SHARE STATUS PASSWORD instead of SHARE STATUS when you create the
job stream.

Listing All Shared Discs through MPE 

To list which HP 3000 groups have shared discs, use MPE's LISTF
VDROOT.@.@,1 command.  Since there is only one VDROOT file for each group
that has a shared disc, this provides a list of each group in each
account that has a shared disc.

Since no special capabilities are needed to use the MPE LISTF command on
any group of any account, the existence of a shared disc in a group
cannot be hidden.  However, unauthorized access of the files on the
shared disc is prevented by normal MPE security mechanisms and by shared
disc security (see "Shared Disc Security" later in this chapter).

How to Locate Shared Disc Files 

To locate shared disc files, use one of these procedures:

   *   Look for files with the DIR command on the PC.

   *   Use the DIR command from within the Disc Manager Utility
       (DISCMGR).

   *   Use the Resource Manager Utility (RESMGR) Backup function.

To locate files with the DIR command on the PC:. 

   *   Access each subdirectory using the DOS CHDIR (CD) command.

   *   Use the DIR *.* command in each subdirectory.  You can direct the
       listing to the network printer.

To locate files with the DIR command in DISCMGR:. 

   *   Run DISCMGR. Establish a USE connection to the target shared disc.

   *   Use the CHDIR (CD) command to access each subdirectory.

   *   Use the DIR command in each subdirectory to list the files and
       subdirectories.

To locate files using the Backup function (with 
PDTAPE=$NULL): 

   1.  Use the following file equation:

            FILE PDTAPE=$NULL
            FILE PDLIST;DEV=LP

       By using a file equation that sets the tape file (PDTAPE) equal to
       $NULL, the backup will be directed to "nowhere" but you will see a
       listing of the files selected for the backup and the PDLIST file
       will be directed to the line printer.

   2.  Run RESMGR by entering:

       RUN RESMGR.PPC.SYS

       The RESMGR prompt appears.

   3.  Choose  Disc  f1 at the RESMGR prompt.

   4.  Choose  Backup Files f4.

       This prompt appears:

       Sharename?

       If you have SM, AM, or OP capabilities, the prompt will also ask
       (or Physical Path).

   5.  Enter a sharename or physical path.

       This prompt appears if you enter a sharename:

       Password?

       If you enter a physical path, the prompt in the next step appears.

   6.  Enter the correct password.

       This prompt appears:

       Filename pattern ('//' to cancel)?

   7.  Enter a \.

       The backslash (\) tells the program to find all files in the root
       directory.

       You will get a message that no files where backed up (because you
       used the $NULL value).  However, a listing of the files selected
       for backup will be printed.

       Here is an example of the printed listing:

               \selected
               \BATCH selected
               \BATCH\END.BAT selected (61 bytes)
               \BATCH\START.BAT selected (82 bytes)
               \BATCH\WRK selected (756 bytes)
               \VC selected
               \VC\BUDGET.VC selected (5376 bytes)
               \VC\PRODPLAN.VC selected (2816 bytes)
               \VC\SALESAN.VC selected (2560 bytes)
               \VC\INVENTC.VC selected (1536 bytes)
            10 file(s) selected for backup

       The \ in the listing indicates that the root file has been
       selected.

       Entries such as \VC selected indicate that directory files have
       been selected.

       Entries such as \VC BUDGET.VC selected (5376 bytes) indicate that
       data files have been selected.

To print a file listing through the Disc Manager Utility 
(DISCMGR): 

   1.  Run DISCMGR by entering:

       DISCMGR.PPC.SYS

       The DISCMGR prompt appears:

            DISCMGR>

   2.  Make sure that a connection is defined to each shared disc whose
       files you want to list.  If you do not have an automatic
       connection, establish the connections with the USE command.

       For example, to define connections to shared discs with the
       sharenames JOE and SALES, enter the commands:

       USE J: \JOE
       USE S: \SALES

   3.  At the DISCMGR prompt, enter a file equation directing the output
       to a printer.  Remember to precede your file equation with a colon
       (:)  to tell DISCMGR that this is an MPE command.

            :FILE OUT;DEV=LP

   4.  At the DISCMGR prompt, enter a DIR command that specifies the
       drive letter of the shared disc you want to list and refers to
       your file equation.  Be sure to put a space between the > symbol
       and your redirected file statement:

       For example:

            DIR S:\ > *OUT

       By including the shared disc letter in the DIR command, you can
       list files in any shared disc for which a connection path is
       already defined (through the AUTOCONN file or a USE command).
       That is, you do not need to be on the shared disc you want to
       list, as long as you have already defined a connection to it.  The
       command in this example can be used when you are connected to
       drive J:, the JOE shared disc (indicated by a DISCMGR J:\>
       prompt), to get a file listing for drive S:, already defined as
       the SALES shared disc.



MPE/iX 5.0 Documentation