Specialized Administration > Supporting Visualization and Publishing > Arbortext Publishing Engine (PE) Worker > Servigistics Arbortext Publishing Engine (PE) Worker and Publishing > Configuring the PE Worker > Configuring the PE Worker Monitor
  
Configuring the PE Worker Monitor
* 
Using the Worker Monitor is recommended if you have access to a Creo View Adapters CD. If you do not have a Creo View Adapters CD, you can ignore this section.
The Worker Monitor provides more robust communication with the worker by monitoring based on its own timeouts, rather than being completely dependent on the worker for reporting errors. Additionally, the worker logs are also made available through the web browser via the Worker Agent UI when the worker monitor is configured.
1. Similar to configuring the worker in the previous section, locate and copy arbortextEngineMonitorstart.bat from <Windchill>\codebase\com\ptc\wvs\server\workers to your <APEWorker> directory.
* 
This procedure assumes you are using Windows. If you are on UNIX, you use the sample shell script (arbortextEngineMoniterstart.sh).
2. Using a text editor, edit the arbortextEngineMonitorstart.bat file in your <APEWorker> directory.
The sample monitor batch file is shown below, followed by descriptions of the settings.
@echo on

set WORKER_DIR=C:\ptc\apeworker

set PORT="5600"

set HOST="localhost"

set TYPE="APE"

set PVIEW_HOME=C:\ptc\productview_adapters



C:

cd "%WORKER_DIR%"

"%PVIEW_HOME%\i486_nt\obj\workermonitor" -s "%WORKER_DIR%\

arbortextEngineWorkerstart.bat" -vt -EW %TYPE% -CS%HOST% %PORT%

%1 %2 %3 %4 %5 %6 %7 %8 %9
set WORKER_DIR=C:\PTC\APEWorker - This value is critical and must be set to the <APEWorker> directory referenced in Step 1.
set PORT="5600" - This value can be changed, but it is not recommended. If you change this value, you must ensure that it matches the "port" value in the [agent] section of the agent.ini file. 5600 is the default value.
set HOST="localhost" - This value can be left as "localhost", but should match the hostname of the machine where the worker resides, which, for the PE Worker, will be the Windchill machine.
set TYPE="APE" - This value should not be changed.
set PV_HOME= C:\ptc\product_adapters - This value must be set to the location of the installed productview_adapters directory.
3. Save your changes to the batch file in the <APEWorker> directory.
This batch file is used instead of the worker batch file in the Execute Command of the Worker Agent (see next section).