Name
enter_tierplan.cgi — Manage a Tierplan
Synopsis
/usr/local/billmax/bin/enter_tierplan
DESCRIPTION
using enter-tierplan.cgi, you may add, delete, modify or clone a Tierplan as well as
add or delete Tiers.
REQUIRED ENVIRONMENT VARIABLES
Different environment variables are required for different values of FORM_action. The first table documents environment variables associated with the Tierplan. The second table documents environment variables associated with a Tier
![[Note]](images/note.png) |
Note |
Both sets of variables are required when calling enter_tierplan.cgi. |
Table 1. Tierplan Variables. Variables required for FORM_action SAVE, CLONE, DELETE or INSERT.
- FORM_action - GEV_STRING
Valid Values
SAVE
CLONE
DELETE
INSERT
RMTIER
|
- FORM_number - GEV_INT
System Identifier for a database row. In most cases automatically generated. Allowable range is 1-2147483647.
|
|
|
- FORM_direction - GEV_INT
Statistics recorded in the stats table may represent a direction measurement by using a Named Samples. An inbound static is denoted by "in='value'". An outbound statistic is denoted by "out='value'". Both directions may be recorded in the stats table using the form in='value',out='value'. Computations may be based based on in values, out values, the larger of the two values, or the sum of the in and out values. Choose Not Applicable when using the Sum computation method.
|
- FORM_percentile - GEV_INT
Used for the Percentile computation method.
|
- FORM_datapurge - GEV_INT
-
The number of elapsed days before the applicable statistics are automatically purged from the stats table.
|
- FORM_units - GEV_STRING
-
The units of measurement captured in the stats table.
![[Warning]](images/warning.png) |
Warning |
This is for descriptive purposes only. Specifying units such as MB and capturing the data in another such as Mb will cause incorrect billing and confusion |
|
- FORM_stype - GEV_STRING
-
A description of the type of sample. This links the type of sample specified here with statistics entered in the stats table using enter_stat with the stype parameter set to the value specified here.
Example 2. Examples for the field stype
Bandwidth Usage
account states
new calltracks
|
- FORM_reportfreq - GEV_INT
Usage report for a Service may be mailed to the email address of the Account every reportfreq days. The last previous date a usage report was sent is stored in the bwreportdate field of the service table
|
|
- FORM_style - GEV_INT
0 - Tier Plan Style Step. 1 - Tier Plan Style Linear
|
|
|
Table 2. Tier variables required for FORM_action INSERT
Table 3. Variables required for FORM_action RMTIER
- FORM_tier - GEV_INT
System Identifier for a database row. In most cases automatically generated. Allowable range is 1-2147483647.
|
- FORM_number - GEV_INT
System Identifier for a database row. In most cases automatically generated. Allowable range is 1-2147483647.
|
RETURN VALUE
System value EX_OK for success.