Network Monitor: monitor

Use monitor to start the Network Monitor (Netmon). The monitor records server commands issued by the command processor to the StarTeam Server. You can specify monitoring the server, the cache agent, or both. This is useful to track access to a machine or StarTeam Server, as well as troubleshooting.

Note: This command is part of the stateful model and only works with stcmd, not stcmdEx.

Syntax

The syntax for this command is as follows:

stcmd monitor stop | start [server | ca | both] –ofp “full path to a writable output log file”
Parameter
Description
start
Turns on command logging. Specify which service to monitor: server, ca (cache agent), or both.
stop
Turns off command logging.
-ofp

Provides a file name with a fully qualified path into which to write the command output. By default, a "|" character separates each column in the output. A new line separates each row. The first row is the command name. The second row has the property names. All subsequent rows contain the data. If the file already exists, the output is appended to the end of the file.

It is possible to override the "|" character separator by specifying separator = fieldSeparator as a parameter to the connect command.

For example, separator = ;; specifies two adjacent semicolons ( ; ) as the column separator.

Example

The following example uses monitor to monitor the server network connection and output the report to a Temp folder on the C: drive. If the file already exists, it is appended to the end of the report.

stcmd monitor start server -ofp "C:\Temp\netmon.txt"

The following example stops the Netmon:

stcmd monitor stop