This section contains background
information about Version 5 batch tools, and explains how to set up the
Version 5 Communications Backbone (packaged with Version 5) and the IBM
MQSeries product to allow end users run batches in local and remote mode. For information about how to run the batch monitor and submit batches in both local and remote modes, refer to Using the Batch Monitor in your Infrastructure Users Guide. |
|
The CATIA,
DELMIA and ENOVIA DMU Navigator core software features the CATUTIL batch monitor
for running and monitoring Version 5 batches. Certain batches are provided
as part of the Version 5 core package, others are part of specific
configurations/products. Note that certain batches can only be run if you
have the corresponding license. You can run the batch monitor using a variety of methods to launch the batches installed with your software. The batches can be:
As far as batch execution is concerned, two implementations are possible:
|
|
What Is a Version 5 Batch?A Version 5 batch is a non-interactive program with the following characteristics:
|
|
Role of the Descriptor FileSo that each batch can be listed and recognized, a descriptor file is delivered for each batch on Windows in:
and on UNIX in:
where "OS" is:
|
|
The descriptor file must NOT be modified by the batch monitor administrator. | |
Role of the Parameter FileThe syntax of the parameter file for each batch is provided in an empty file. The person who runs the batch must fill in this XML file to specify the inputs to be passed to the batch. If the batch is submitted using the CATUTIL interactive batch tool, the file is generated from the user input specified by using the batch user interface. |
|
List of Version 5 BatchesA list of Version 5 batches along with their description is displayed in the Type column. This list may vary according to the licenses you set up during installation:
|
|
Note that not all batches can be run on a remote machine! Furthermore, documents containing links to other documents (for example, CATProducts) cannot be processed in remote batch mode. | |
Local and Remote ModesUsing the Communications BackboneIn Local ModeTo submit batches for execution on your local machine using the communications backbone, no administration tasks are necessary: the backbone is the default communication driver. The batch will be run as long as the required license is available. In Remote ModeOn the remote mode:
Using IBM MQSeriesIn Local ModeIf you want to run batches on your local computer, you have to install the IBM MQSeries Server software on the local computer and then configure the MQSeries server on the local computer. In Remote ModeIf you want to run batches on a remote computer, you have to install the IBM MQSeries Client software on your local computer and configure the client, then install the IBM MQSeries Server software on the remote computer and then configure the server. |
|
Configuring the Communications Backbone on the Remote Machine |
|
Backbone ConfigurationThe default port used by the Backbone communication software is 55555. Backbone communication may not work between two remote machines if they use a different backbone port. To get the backbone working correctly, you must ensure that these machines reference the same port. To perform this check, the BBPortChecker tool is available on this installation. It allows to test the backbone communication between two remote machines (-host option) or between your machine and a list of machines (-l file option). Without any option the BBPortChecker tool display the backbone default port on your machine and tells you how to update it if needed. You can launch this tool by following these instructions. Windows XP
UNIX
Help on the usage of this tool is available using the -h option. |
|
To allow end users to run a batch on a remote machine, you first have
to start the server monitor on the remote machine.On Windows
On UNIX
|
|
Configuring an IBM MQSeries Server for the Batch Monitor for the First Time |
|
We assume that you are already familiar with the IBM MQSeries product before setting up the server. If not, refer to the manual MQSeries V5.2 Quick Beginnings for your platform. | |
Export the MQ Library PathBefore starting the batch monitor server, perform the following operations:
|
|
On Windows |
|
1. Log onto the server computer as administrator. | |
2. Install the IBM MQSeries Server software. | |
3. Open a Command Prompt window and go the folder, for
example for 32-bit Windows XP Pro:
|
|
4. Before creating the queue manager, set the following
variable:
For more detailed information about the role of the MQSNOAUT variable, refer to the manual IBM MQSeries System Administration, Chapter 10 : "Protecting MQSeries Objects". |
|
5. Create a queue manager for the hostname of your server
computer by entering the command:
where "HostNameMachine" is the name of your server computer. |
|
The name of the host machine must be in upper case. Make sure that it is in upper case throughout the rest of this scenario. | |
6. Start the queue manager by entering the command:
|
|
7. Configure the queue manager by entering the command:
where "ConfigFile" is the path of the following file located in the Version 5 installation directory and installed with the Version 5 software:
|
|
8. Before running a batch, select Start->Programs->IBM
MQSeries->IBM MQSeries Explorer and check that the queue manager you
created earlier is running, and that there are no messages present in
existing queues.
The presence of messages in the queues will prevent a batch from being run. |
|
On UNIX |
|
1. Log onto the UNIX workstation as root. | |
2. Prepare to install the IBM MQSeries Server software.
Refer to the IBM MQSeries documentation for more details. For example, you will find the Quick Beginnings manual very useful if you are using IBM MQSeries for the first time. For the purposes of our scenario, we installed the IBM MQSeries Server software on a workstation running AIX. Refer to the manual MQSeries V5.2 Quick Beginnings for your UNIX platform for more information. |
|
In particular, pay attention to the kernel configuration. MQSeries
makes use of semaphores, shared memory, and file descriptors, and it is
probable that the default kernel configuration is not adequate. Refer to the section Kernel configuration in the manual MQSeries V5.2 Quick Beginnings for your UNIX platform for more information. |
|
3. Install the IBM MQSeries Server software. | |
Note that a user ID with the name mqm whose primary group
is mqm is automatically created during the installation. You
can create the user and group IDs yourself, as explained in the manual
MQSeries V5.2 Quick Beginnings for your UNIX platform, but make sure
you do this before installing the server. User ID and group must both be
mqm . For stand-alone machines, you can create the new user and
group IDs locally, and for machines administered in a network information
services domain (NIS), you must create the IDs on the NIS master server
machine.
After installation, the If you want to run any administration commands, for example |
|
4. To configure the server, open a shell window and enter the
command:
and provide the password |
|
5. Before creating the queue manager, export the following
variable:
For more detailed information about the role of the MQSNOAUT variable, refer to the manual IBM MQSeries System Administration, Chapter 10 : "Protecting MQSeries objects". |
|
6. Create a queue manager on your workstation by entering the
command:
where "HostNameMachine" is the name of your workstation. |
|
The name of the host machine must be in upper case. Make sure that it is in upper case throughout the rest of this scenario. | |
7. Start the queue manager by entering the command:
|
|
8. Configure the queue manager by entering the command:
where "ConfigFile" is the path of the following file located in the Version 5 installation directory and installed with the Version 5 software:
|
|
If you encounter an error (execution code other than 0) when running
the runmqsc command, you will not be able to run any batches.
If this is the case, please contact your IBM MQSeries Administrator. |
|
9. Run the channel listener:
|
|
10. Before running a batch, check that the queue manager you
created earlier is running, and that there are no messages present in
existing queues.
The presence of messages in the queues will prevent a batch from being run. |
|
11. On HP-UX, disable the q3p option on the
CATBatSrvMonitorExe program as follows:
|
|
Configuring an IBM MQSeries Client for the Batch Monitor |
|
Export the MQ Library PathBefore starting the batch monitor, perform the following operations:
|
|
On Windows |
|
Set the MQServer variable as follows:
where "Hostname_server" if the name of the client computer on which you installed the IBM MQSeries Server software. |
|
On UNIX |
|
Export the MQServer variable as follows:
where "Hostname_server" if the name of the client computer on which you installed the IBM MQSeries Server software. |
|
Windows and UNIXRename a library file |
|
Verifying Your MQSeries Installation |
|
We recommend at this point that you verify your IBM MQSeries
installation as described in the section Verifying the installation of
MQSeries for your UNIX platform. Read the section about verifying a
client/server installation, involving communication links between a server
machine and an MQSeries client. Furthermore, on UNIX, make sure that you read the information in this section about certain UNIX system files which need to be modified:
|
|
Running Batches Using MQSeries on Your Local Computer in Command Line Mode |
|
For the purposes of the rest of this scenario, the IBM MQSeries Server and Client are located on the same machine. | |
On Windows |
|
To run a batch, go to the following Version 5 installation folder, for
example:
and run the command:
where The batch is run and a log is created by default in:
|
|
You can monitor the batch queues by selecting the command
Start->Programs->IBM MQSeries->MQSeries Explorer . |
|
On UNIX |
|
To run a batch, go to the following Version 5 installation folder, for
example:
and run the command:
where The batch is run and a log is created by default in:
|
|
Running Batches Using the Batch Monitor on a Remote Computer Using IBM MQSeries |
|
Full details are provided refer to
Using the Batch Monitor
in your Infrastructure Users Guide. However, note that before starting Version 5 on the local computer configured as an MQSeries client, you must export the following variable to specify that you are using IBM MQSeries:
|
|
Running Batches in Command Line Mode on a Remote Computer Using IBM MQSeries |
|
You can also run batches on a remote computer: the IBM MQSeries
Client is on your local computer, and the IBM MQSeries Server is on a
remote computer. The client machine and the server machine on which the batch is to be run must both have Dassault Systemes Version 5 software installed. On the server machine, the batch server monitor is started. This monitor starts the batches installed on the server submitted from any client. The monitor waits for batch launch requests and must be stopped manually. The batch server monitor is started once and for all, whereas the client monitor is started once for each batch submitted. |
|
WindowsOn the server machine, go to the directory:
and enter the following command to run the batch monitor server:
On the client machine, go to the directory:
and enter the following command to run the batch:
|
|
UNIXOn the server machine, go to the directory:
and enter the following command to run the batch monitor server:
On the client machine, go to the directory:
and enter the following command to run the batch:
|
|
|