Browse
(440) 299-7778
Menu
(440) 299-7778
One-year parts and labor warranty30-day money-back guaranteeEnglishEspañolContact

The text of a manual · part 46 of 49

Cyclades-TS User Guide: Appendix I - Billing Feature

Pages 429 to 432 of 454, from Cyclades-TS User Guide

The original document is the PDF (4.3 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.

For the Cyclades TS2000 and Avocent TS2000

Page 429

Appendix I - Billing Feature Introduction

Appendix I - Billing Feature

All the Cyclades TS family can also be simply used as an intermediate buffer to collect serial data (like billing tickets from a PABX), making them available for a posterior file transfer.Different ports can now simultaneous "billing sessions".

General Feature Description The Cyclades-TS reads the serial port and saves information to Ramdisk files, limited to a maximum number of records per file or a maximum lifetime. After they are closed, these files are available for file transfer at /var/run/DB.

Configuration The plsave.conf file has one more “protocol” and three new parameters shown on the Data Buffering section of the Web interface. They are: all.protocol billing

Data Buffering section: all.billing_records

50 all.billing_timeout

60 (min)

all.billing_eor

"\n"

Note: All presented values above are going to implement the billing feature for ALL ports of the product. If the configuration for a specific port is required, all related parameters beginning with all must be changed to S.x, where x is the number of the port to be configured.

User Guide

429

Page 430

Appendix I - Billing Feature How it works Once the cy_ras program detects the protocol as “billing,” it starts the billing application. The billing application then opens the port (as configured in pslave.conf) and starts reading it. Records terminated by "billing_eor string" are expected to be received. The Cyclades TS doesn’t change the termination method, transferring the same sequence to the file. The name of the temporary file used to write these records is: cycXXXXX-YYMMDD.hhmmss.tmp where: •

XXXXX is the “hostname” or “serverfarm”

•

YYMMDD is the year/month/day

• hhmmss is the hour:min:sec

This name helps the user archive and browse their directory as the file can be chronologically listed, not based on its creation or modification times, but based on when its contents were recorded. Also, whenever “hostname” is not significant, the user can use the “serverfarm” name (s1.serverfarm in pslave.conf) to match their actual plant (like PABX-trunk9). The temporary file described above is closed and renamed to cycXXXXX-YYMMDD.hhmmss.txt and a new temporary file is opened when: 1.

The maximum number of records specified by “billing_records” is reached;

2.

The lifetime specified by “billing_timeout” finishes.

If no record is received within a file lifetime period, no file will be actually saved.

Note: A zero-value for “billing_records” stops the application and a zero-value for “billing_timeout” means no timeout is desired and so the file will only be closed after “billing_records” are received.

430

Cyclades-TS

Page 431

Appendix I - Billing Feature Billing Configuration Script The config_billing.sh script configures everything related to billing . The user can set a port as billing protocol, configure automatic upload of files and enlarge the ramdisk space. The user can also configure this feature by editing the parameters in the /etc/billing_up.conf file. If the script is executed, it will ask for parameters and configure the billing_up.sh according to the options, and set the /etc/crontab_billing and /etc/crontab_files to upload the file periodically. The user must set these parameters: • • • • • • •

Upload Protocol Mode (ftp or scp) Local directory IP address of remote server Remote directory Upload interval User Password

The major script is config_billing.sh. This script configures a port to billing protocol, can be used to enlarge the ramdisk space and configure upload scripts, by ftp or ssh. To configure a port for billing, you can run config_billing.sh and pass the parameters that need to be configured. The syntax of the command is as follows: # config_billing.sh [X] [options] where: •

X is the port's number which is configured

[options] can be: • -s - speed • -d - data size • -b - stopbit • -p - parity • -r - billing records User Guide

431

Page 432

Appendix I - Billing Feature • • • • • • • • • •

-e - billing EOR (this parameter must be around " ", for example "\n") -D - billing dir -S - serverFarm -t - time date of system -T - timeout -i - ip of the TS box -n - netmask of the TS box -R - default route of the TS box -u - configure upload_scripts -l - enlarge ramdisk

If the -u option is passed, the script will prompt a sequencial menu, to configure some parameters. The parameters that are going to be asked are the following: • • • • • •

Transfer Mode (ftp or scp) Local Directory [/var/run/DB] Remote server IP User Password Upload Interval in minutes

If scp mode is choosen and a key for authentication is not present, the script will generate it and try to upload it to the server. The key must be stored on the server with the appropriate configuration. After all changes, run saveconf and restart the box to activate options related to upload and ramdisk enlargement.

Disk Space Issue Finally, it is important to note that there is a protection against disk space problems. If you configure flow control to “hardware” for the serial port (all.flow = hard in the pslave.conf file), the application monitors the available disk space and if it is less than 100 Kb, the serial interface deactivates “RTS” signal on the RS-232. “RTS” is reactivated once the disk free space is greater than 120 Kb.

432

Cyclades-TS