
		Microsoft(R) Windows NT(TM) 3.5

		Performance Data Logging Service
		              and
		        Configuration Tool



Introduction
------------

A new, service based, version of the NT Performance Monitor (PerfMon)
and its configuration utility are included in this package.  This
service brings the PerfMon Alert and Logging facilities to an
NT service.


Data Logging Service (DATALOG.EXE)
----------------------------------

This executable is an NT Service.  It must be installed and controlled
using the included MONITOR utility described below.  The service
performs the same function as the Performance Monitor Alert and Logging
facility.  To use the service you must create a settings file using the
Performance Monitor and save your workspace settings.  You then specify
that file when configuring the data logging service.  See the
"Procedures & Examples" section below for details.


Configuration Tool (MONITOR.EXE)
--------------------------------

The Configuration Tool is a command line utility for installing and
controlling the Data Logging Service.

Usage:

	Monitor <server> <command>

	<server>  The option <server> has the form "\\ServerName"
	          If not specified, the local machine is used.

Commands:

	SETUP		Setup the datalog service registry variables and 
			install in the Service Controller.
	<File Name>	Sets the service to use the named configuration
			(*.PMW) file.
	START		Starts the service.
	STOP		Sends a STOP request to the service.
	PAUSE		Sends a PAUSE control request to the service.
	CONTINUE	Sends a CONTINUE control request to the service
	AUTOMATIC	Sets the service to start automatically at
			boot time.
	MANUAL		Sets the service to require a manual start using
			the Service Control applet or this utility's
			START command.
	DISABLE 	Disables the service.
	<none>		Running the Monitor utility with no command
			will display the current setup and status of the
			service.


Procedures & Examples
---------------------

1. Create a settings file
   Using the NT Performance Monitor (PERFMON.EXE) specify all objects
   you want to log and the alerts you want.  Specify a Logfile name and
   the logging interval.  Do not start logging.  Save the settings file
   from the [File\Save Workspace] menu or using [Ctrl+W] keys.


2. Install the Data Logging service
   The DATALOG executable must reside in the SYSTEM32 directory of
   the Windows directory on the machine it will be running on.  If you
   are installing on a remote machine copy the DATALOG executable and
   your settings file to that machine's SYSTEM32 directory.

   Assume you are installing on a machine named foreign.

   Copy the DATALOG.EXE and your settings file, named WHATSUP.PMW, to the
   SYSTEM32 directory on foreign as follows:

	COPY DATALOG.EXE \\FOREIGN\WINNT\SYSTEM32
	COPY WHATSUP.PMW \\FOREIGN\WINNT\SYSTEM32

   Enter the command:

	MONITOR \\FOREIGN SETUP

   To use your settings file enter:

	MONITOR \\FOREIGN  WHATSUP.PMW

   To start logging and alerts immediately enter:

	MONITOR \\FOREIGN START


3. Automatic starting and stopping of the service
   You can use the schedule service and the AT command to schedule
   monitoring at a set time.  For example, say you have a server that
   is slowing down severely between 2:40am and 2:50am every work night.
   You want to log the activity on the machine but you don't want to get
   out of that nice warm bed your in.  You can log for that period by
   entering the following AT commands (at a more decent hour):

	at \\FOREIGN 2:30 /every:m,t,w,th,f monitor start

	at \\FOREIGN 3:00 /every:m,t,w,th,f monitor stop

   Optionally, as a reminder, you can enter the following:

	at \\FOREIGN 2:30 /every:f net send <YourUserName>
	"The Monitor is stopped.  The log contains data for this week!"


.twp 94/10/4 15:00

