iTP Secure WebServer System Administrators Guide (Version 7.5+)
3. Checks and reports if the webserver instrumentation is active
4. Reads the current webserver statistics
The statscom tool performs the following series of operations when run through the command
line:
1. Finds all httpd processes owned by the specified iTP Secure Webserver PATHMON/ DOMAIN
2. Opens all httpd processes
3. Depending on the action requested, sends a specific request message to all httpd processes
and when required, the statistics are returned and submitted in the form of Comma Separated
Values (CSV), which can be viewed using Microsoft Excel
The timestat script in iTP Secure WebServer's conf directory can be used to collect webserver
statistics with a single command.
Using the statscom Command
Following are the various command-line options that can be performed using statscom ($PATHMON
is the PATHMON name for webserver, %DOMAIN is the DOMAIN of iTP WebServer running in the
online-upgrade mode).
Sample Commands for Statistics Collection When WebServer is Running Under a Single Pathmon
• statscom -start \$PATHMON [config-file][-location
<DIRECTORY-PATH>][-name <HTTPD-PROCESS-NAME>]
This command starts the statistics collection process for all the httpd processes under PATHMON
$PATHMON.
For example:
./statscom -start \$SWEB
OR
./statscom -start \$SWEB [config-file]][-location
<DIRECTORY-PATH>]\[-name <HTTPD-PROCESS-NAME>]
where config-file is the user-specified configuration file.
• statscom -status $PATHMON [config-file]
This command returns the current instrumentation status. A message is displayed indicating
whether instrumentation for all httpd processes are PATHMON $PATHMON is active or not.
For example:
./statscom -status \$SWEB
OR
./ statscom -status \$SWEB [config-file][-location
<DIRECTORY-PATH>][-name <HTTPD-PROCESS-NAME>]
where config-file is the user-specified configuration file.
• statscom -submit $PATHMON [config-file]
This command stores the httpd statistics in the statistics.csv file under the logs directory
of the webserver.
For example:
./statscom -submit \$SWEB
This command collects complete statistics for all httpd processes in PATHMON $PATHMON.
OR
./statscom -submit \$SWEB [config-file][-location
<DIRECTORY-PATH>][-name <HTTPD-PROCESS-NAME>]
Collecting httpd Statistics Using statscom 89










