Home
TrafMeter Web Online Help
TrafMeter
What is TrafMeter?
License Agreement
TrafMeter Editions
Registration Info
How To Contact Us
Description
System requirements
Introduction
Installation Package
Installation Guide
Opening the configuration
Selecting NIC
Capturing the traffic
TrafMeter Service Monitor
User authentication
Sending SMS
NAT
Traffic Shaper
Viewing the Traffic Counters
Processing the captured packet
Logging the Application Events
Logging the denied packets
Firewall
Zeroing counters
Users
Filter Manager
Filter Editor
Rule Editor
IP Address Groups
Database Connection String
XML Traffic Reports
Using XSL formatting
The example of XSL formatting
The example of XSL formatting (2)
Traffic Logging into the Database
Database table
Packet Logging
Into the plaintext file
Filename template
Into the database
Database Table
Microsoft SQL Server Syntax
MySQL Server Syntax
Microsoft Access Syntax
Useful SQL scripts
Host Header Logging
Into the plaintext file
Into the database
Database Table
Microsoft SQL Server Syntax
MySQL Server Syntax
Microsoft Access Syntax
Result Codes
Counting VPN packests
Table for storing Filter Names
Registry Settings
FAQ
TrafMeter FAQ
Traffic counting with TrafMeter FAQ
Configuration examples
Example 1
Example 2
Example 3
Example 4
Example 5
Example 6
Example 7
Example 8
Knowledge base
IP protocol number
Type Of Service (ToS) field
MAC address
Promiscuous mode
Ethernet hub
Ethernet switch
Ethernet
NAT router
HOWTO: Creating an OLE DB Connection String for Microsoft SQL Server
HOWTO: Creating an OLE DB Connection String for an Access
HOWTO: Creating an OLE DB Connection String for MySQL
Manual editing of the XML files
Zeroing counters using TrafReset
How to enable
Reloading the Filterset

Zeroing counters using the utility TrafReset

Q2003

The TrafMeter installation package contains the utility TrafReset, which performs the counter reset using a special communication protocol with the TrafMeter Service. If you run TrafReset without parameters on the command line, you will see the following:

TrafReset version 4.5
Usage: TrafReset hostname password filterid1 filterid2 filterid3 ..

So, all parameters are passed into TrafReset using the command line:

  • 1st parameter - address or DNS name of the host running the TrafMeter Service. You may specify the remote host as well.
  • 2nd parameter - password for the TrafMeter service. If you want to use TrafReset, the password in the TrafMeter Service cannot be blank.
  • 3rd (4th, 5th and etc) parameter(s) - Id of filters (FilterId) which will be zeroed out. You can specify an unlimited number of FilterId's on the command line. If you want to zero all counters, specify "ALL" instead FilterId.

Example:

TrafReset.exe localhost qwerty ALL

For the periodic running of TrafReset you should first create a .bat file that will invoke TrafReset with the necessary command line parameters (for example, trafficreset.bat). Secondly, add a scheduled task in the Task Scheduler, which will run the newly created .bat file.

How do I run TrafReset once per day when the user logs in?

See the example VB script "trafreset_once.vbs" in the TrafMeter installation package.

 Note

  • "Zeroing counters" means resetting to zero only the current values of traffic counters, which you can see in the TrafMeter Administrative Console. This doesn't change any other traffic reports in XML files or in any database.

 

This HTML Help has been published using the chm2web software.