Document revision date: 19 July 1999
[Compaq] [Go to the documentation home page] [How to order documentation] [Help on this site] [How to contact us]
[OpenVMS documentation]

OpenVMS System Manager's Manual


Previous Contents Index

11.8.2 Setting a Default Protection Code

A Default Protection ACE defines a protection code for all files that are subsequently created in the directory and in any subdirectories under that directory, unless protection is specified for one of those files individually. The ACE does not apply if a previous version of the file exists (in this case, the previous file protection is used). This ACE type has the following format:

(DEFAULT_PROTECTION[,options],protection-code) 

For example, the following ACE specifies that users in the system and owner categories have read, write, execute, and delete access to any files subsequently created in the directory, and that group and world users have no access:


(DEFAULT_PROTECTION,S:RWED,O:RWED,G,W) 

Note

The Default Protection ACE does not apply to existing subdirectories. It applies to subdirectories created after the ACE is applied to the parent directory.

11.8.3 Generating Security Alarms and Audits

Security ACEs allow you to specify that an event message be sent when a protected object is accessed in a particular manner. The security Alarm ACE directs the event message to the security operator's terminal and the security Audit ACE directs the event message to the system security audit log file.

Refer to the OpenVMS Guide to System Security for more information about how to use these types of ACEs.

11.9 Auditing Security-Relevant Events

System managers can select the destination for security-relevant event messages. Alarm messages are sent to the operator's terminal and audit messages are sent to the system security audit log file. You can choose to have an event reported as an alarm, as an audit, or as both.

11.9.1 Enabling Classes of Security Alarms

The OpenVMS operating system automatically monitors a certain number of events, as listed in Table 18-6.

You can enable additional classes of events by listing one or more of the keywords of the /ENABLE qualifier to the DCL command SET AUDIT listed in Table 11-1.

Table 11-1 Kinds of Security Events OpenVMS Can Report
Event Class Description
Access Specifies access events for all objects in a class. You can audit selected types of access, both privileged and nonprivileged, to all protected objects of a particular class.
ACL Events requested by a security Audit or Alarm ACE in the access control list (ACL) of an object.
Authorization Modification of any portion of SYSUAF.DAT, NETPROXY.DAT, NET$PROXY.DAT, or RIGHTSLIST.DAT.
Breakin Break-in attempts.
Connection Logical link connections or terminations through SYSMAN, DECnet for OpenVMS Phase IV, DECwindows products, or an interprocess communication (IPC) call.
Create Creation of a protected object.
Deaccess Deaccess from a protected object.
Delete Deletion of a protected object.
Identifier Use of identifiers as privileges.
Install Modifications made to the known file list through the Install utility.
Logfailure Failed login attempts.
Login Successful login attempts.
Logout Logouts.
Mount Volume mounts and dismounts.
NCP Modification to the network configuration database, using the network control program (NCP).
Privilege Successful or unsuccessful use of privilege.
Process Use of one or more of the process control system services.
SYSGEN Modification of a system parameter with the System Generation utility (SYSGEN) or AUTOGEN.
Time Modification of system time.

Refer to the OpenVMS DCL Dictionary for more information about the SET AUDIT command.

11.10 Analyzing Audit Log Files

The Audit Analysis utility (ANALYZE/AUDIT) enables system managers and site security administrators to selectively extract and display information from security audit log files. Using ANALYZE/AUDIT qualifiers, you can choose from among a variety of report formats and select the event criteria to be included in the report. Refer to the OpenVMS Guide to System Security for a description of how to use the utility.


Chapter 12
Managing the Queue Manager and Queue Database

Before you can create and start queues, you must set up the queue manager and the queue database. This chapter tells how to set up and manage the queue manager and queue database for the OpenVMS batch and print queuing system.

Information Provided in This Chapter

This chapter describes the following tasks:
Task Section
Specifying the location of the queue database Section 12.3
Displaying information about queue managers Section 12.4
Starting the queue manager and creating the queue database Section 12.5
Customizing queue manager failover Section 12.6
Stopping and restarting the queue manager Section 12.7
Using multiple queue managers Section 12.8
Saving and restoring the queue database Section 12.9
Maximizing queuing system performance Section 12.10
Solving queue manager problems Section 12.11
Reporting a queuing system problem to Compaq Section 12.12

This chapter explains the following concepts:
Concept Section
The queue manager Section 12.1
The queue database Section 12.2
Multiple queue managers Section 12.8.1

Note that this chapter contains many references to DCL commands. You can find additional information about all DCL commands in the OpenVMS DCL Dictionary.

12.1 Understanding the Queue Manager

To use a printer or batch processing on your system, you must use queues. The queue manager controls queue activity. The queue database consists of a master file as well as queue and journal files, which store information about queues and jobs.

Before you can perform any queue operation, you must start the queue manager and create the queue database. Section 12.5 contains instructions for doing this.

Figure 12-1 illustrates how the queue manager works to manage queue activity in an OpenVMS Cluster environment.

Figure 12-1 OpenVMS Batch and Print Queuing System


When a user submits a batch or print job to a queue, the queue manager performs the following tasks:

  1. Receives the user's queue request, including information about the type of job, the file name or names, the name of the queue, and any special options.
  2. Stores and retrieves appropriate information from the queue database to print or execute the job.
  3. Places the job in the appropriate queue to await its turn for processing:
    1. Print jobs are sent to an independent process, called a symbiont, for formatting and are then sent to the printer for printing.
    2. For batch jobs, the job controller creates a batch job process.

One or more queue manager processes control queuing for all processes on a node or in an OpenVMS Cluster environment. Jobs can be submitted from one node and executed on a queue running on another cluster node. User processes, symbionts, and job controllers on each node communicate directly with queue managers.

In addition, the job controller works with the queue manager to perform the following queue management tasks:

Queue Manager Failover

By default, in an OpenVMS Cluster environment, the queue manager tries to fail over to another node if the node on which the queue manager is running leaves the cluster.

You can specify the order in which OpenVMS Cluster nodes claim the queue manager process; you can also limit the nodes that can run the queue manager. For more information, see Section 12.6.

Multiple Queue Managers

To work around CPU, disk space, or memory limitations, you can use multiple queue managers to distribute the batch and print work load among nodes as well as to distribute the database files among disks.

For example, you might create separate queue managers for batch queues and print queues. Run the batch queue manager on one node and the print queue manager on a different node. You can also maintain queue and journal files on separate disks.

For information about creating additional queue managers, including reasons and restrictions for using multiple queue managers, see Section 12.8.

12.2 Understanding the Queue Database

The queue database contains files that store information used to keep the queuing system operating, including information about jobs, queues, and the queue manager. The queue database for the default queue manager, SYS$QUEUE_MANAGER, is made up of the following files:
File Description
Master file,
QMAN$MASTER.DAT
Contains:
  • The location of the queue and journal files
  • Definitions of forms and characteristics
  • A list of queue names
  • A list of nodes allowed to run the queue manager
  • A list of queue managers and a list of nodes allowed to run the queue managers
Queue file,
SYS$QUEUE_MANAGER.QMAN$QUEUES
Contains the queue definitions formed when you create, start, or modify queues.
Journal file,
SYS$QUEUE_MANAGER.QMAN$JOURNAL
Contains information allowing the queue manager to return to the last known state if:
  • A standalone machine stops unexpectedly
  • An OpenVMS Cluster node that is running the queue manager leaves the OpenVMS Cluster environment

The journal file also contains job definitions.

On systems with multiple queue managers, the queue database contains an additional queue file and journal file for each additional queue manager. Additional queue files are named in the format name_of_manager.QMAN$QUEUES. Additional journal files are named in the format name_of_manager.QMAN$JOURNAL.

Figure 12-2 shows a queue database containing a master file that lists two queue managers, PRINT_MANAGER and BATCH_MANAGER. Each queue manager has its own queue and journal files.

Figure 12-2 Queue Database


SYS$COMMON:[SYSEXE] is the default location for all queue database files. However, you can store the files in another location. The next section explains why and how to do this.

12.3 Specifying the Location of the Queue Database

You might need to specify a location for queue database files other than the default location of SYS$COMMON:[SYSEXE] for one of the following reasons:

Ways to Move Queue Database Files

You can move queue database files in either of the following ways:

Section 12.3.1 explains how to specify the location of the master file; Section 12.3.2 explains how to specify the locations of queue and journal files.

12.3.1 Specifying the Location of the Queue Master File

To specify the location of the queue master file, perform the following steps before starting the queue manager:

  1. Enter a command in the following format:

    DEFINE/SYSTEM/EXECUTIVE_MODE QMAN$MASTER equivalence-name 
    


    where equivalence-name specifies the device and directory where the master file is to be created or located.
    In an OpenVMS Cluster environment, enter this command on every node in the cluster.

    Note

    In an OpenVMS Cluster environment, the directory you specify for the master file must be available to all nodes in the cluster. If the directory specification is a concealed logical name, you must define it identically on all nodes in the cluster; you must also mount the disk on all cluster member nodes early in system startup.
  2. On every node in the OpenVMS Cluster environment, add the command that you entered in step 1 to SYS$MANAGER:SYLOGICALS.COM.
  3. If the location you specify is on a disk other than the node's system disk, add a command in SYLOGICALS.COM to mount the disk. SYLOGICALS.COM is normally used to define logical names; however, it is important that SYLOGICALS.COM contain the command to mount the disk holding the master file so that the master file is available before the job controller starts the queue manager.
    For more information about defining systemwide logical names in SYLOGICALS.COM, see Section 5.2.5.

12.3.2 Specifying the Location of Queue and Journal Files

Specify the location of queue and journal files with the dirspec parameter to the START/QUEUE/MANAGER command. For example:


$ START/QUEUE/MANAGER DUA2:[SYSQUE]

This command specifies that the queue and journal files are to be located in the directory DUA2:[SYSQUE].

Note

In an OpenVMS Cluster environment, the directory you specify for the queue and journal files must be available to all nodes that can run the queue manager. If the directory specification is a concealed logical name, you must define it identically on all nodes in the cluster. You must also mount the disk on all nodes capable of running the queue manager.

The directory location you enter with START/QUEUE/MANAGER is stored in the queue database master file and becomes the default. Therefore, if you must restart the queue manager, you do not need to respecify this directory location.

12.4 Displaying Information About Queue Managers

To obtain information about one or more queue managers, enter the SHOW QUEUE/MANAGERS command.

Examples

  1. The following example displays default (/BRIEF) information about two queue managers, PRINT_MANAGER and SYS$QUEUE_MANAGER.


    $ SHOW QUEUE/MANAGERS
    Queue manager PRINT_MANAGER, running, on NODEA:: 
     
    Queue manager SYS$QUEUE_MANAGER, running, on NODED:: 
    

  2. Use the /FULL qualifier to display complete information about queue managers on the system or cluster.
    In the following example, the master file is in one location, while the queue and journal files belonging to two queue managers are in a different location.


     
    $ SHOW QUEUE/MANAGERS/FULL
    Master file:  SYS$SPECIFIC:[SYSEXE]QMAN$MASTER.DAT; 
     
    Queue manager PRINT_MANAGER, running, on NODEA:: 
      /ON=(NODEA,NODEB,*) 
      Database location:  DUA2:[SYSQUE] 
     
    Queue manager BATCH_MANAGER, running, on NODED:: 
      /ON=(NODEC,NODED,NODEE,*) 
      Database location:  SYS$SYSROOT:[SYSEXE] 
    

Figure 12-3 shows the locations of the queue database files shown in the second example.

Figure 12-3 Locations of Queue Database Files


12.5 Starting the Queue Manager and Creating a Queue Database

Before you can create queues, you must create a queue database by entering a command in the following format:

START/QUEUE/MANAGER/NEW_VERSION[/ON=(node,...)] [dirspec] 

where:
/NEW_VERSION Specifies that new queue database files are to be created:
  • Master file
  • Queue file
  • Journal file

Specify the /NEW_VERSION qualifier only if you want to create new database files. If your queuing system is already functioning, creating new database files is not necessary.

/ON= (node,...) Allows you to customize failover of the queue manager. For more information, see Section 12.6.
dirspec Specifies the location of the queue and journal files, as explained in Section 12.3.2. Use this parameter if you are creating the queue and journal files in a location other than the default.

Caution

Specify the /NEW_VERSION qualifier only if you do not have a currently functioning queue database. If you specify this qualifier and you already have queue database files, the system overwrites your current queue database files.

You normally perform this task only once because when you enter the command, the system stores it, along with any qualifier or parameter you enter, in the queue database.

The job controller automatically starts the queue manager during reboot unless you enter a STOP/QUEUE/MANAGER/CLUSTER command. For this reason, including START/QUEUE/MANAGER in your startup command procedure is unnecessary.

Note

This section describes how to start the queue manager and create the queue database files on systems and clusters with a single system disk. For systems in a cluster with multiple system disks, including mixed-architecture OpenVMS Cluster systems, you must prepare a shared environment, as described in Chapter 5 of OpenVMS Cluster Systems.

How to Perform This Task

  1. Make sure the values of the system address parameters SCSNODE and SCSSYSTEMID match the DECnet for OpenVMS node name and node ID. These values must be correctly defined for the queuing system to operate correctly: For more specific instructions, see the second example in Section 12.11.5.1.
  2. To create queue database files in the default location, SYS$COMMON:[SYSEXE], go to step 3.
    To create queue database files in a location other than the default, follow the instructions in Section 12.3.1 or Section 12.3.2, or both.
  3. To start the queue manager and create queue database files, enter a START/QUEUE/MANAGER command. This command starts the queue manager process and, optionally, creates queue and journal files.

If the queue manager does not start, see Section 12.11.1 for a troubleshooting checklist.

Example

The following example specifies that:


$ DEFINE/SYSTEM/EXECUTIVE_MODE QMAN$MASTER DUA4:[MASTER]
$ MOUNT/SYSTEM/NOASSIST DUA4:
$ !
$ ! Add the two previous commands to SYLOGICALS.COM
$ !
$ START/QUEUE/MANAGER/NEW_VERSION DUA2:[SYSQUE]

For information about creating one or more additional queue managers, see Section 12.8.


Previous Next Contents Index

  [Go to the documentation home page] [How to order documentation] [Help on this site] [How to contact us]  
  privacy and legal statement  
6017PRO_053.HTML