Dialogic 1010 manual Eof

Page 21

Configuring Free RADIUS using GCEMS as RADIUS Server

10. Archive & delete CDR detail files.

A copy of the following files can be found at /opt/cantata/IMG/radius .

a. In the /var/log/radius/radacct folder create a script to archive files. Name the file “CDR”

#!/bin/sh

# CDR

# Sample script to archive CDR's.

# Files are archived if more than 1 days old

# Files are deleted if more than 31 days old

find /var/log/radius/radacct/*/detail* -mtime +1 -exec gzip {} \; find /var/log/radius/radacct/*/detail* -mtime +31 -exec rm -f {} \;

b. Create a cron task to run this script. This cron task can be run hourly or daily. The example below will run it hourly. After creating this script restart the cron service or restart the server.

In the /etc/cron.hourly folder create a file to run the script created in the previous step.

#!/bin/bash

crontab<<EOF

# cron.dat-cdr - cron file for CDR's

#

# This script restarts the CDR log files each hour.

0 * * * * /var/log/radius/radacct/CDR

#

EOF

To e-mail this topic, click here

Copyright © 2007 Dialogic Corporation All rights reserved.

23

Image 21
Contents Dialogic IMG 1010/1004 Integrated Media Gateways Copyright and Legal Notice Important Note Table Of Contents Topic Location Product Description Radius An Overview of Radius on the IMGRadius Server Debug Mode Radius Server RedundancySupported Packet Types Related Topics Radius Server Failure AlarmAuthentication and Accounting Radius ScenariosAccounting only Authentication only Ietf Attribute # Values Name Generic Radius AttributesUTF-8 NAS-Request Ethernet Radius Call Flow SS7 to SIP Radius Call Flow SS7 to H.323 Release from SS7 Incomplete Call Behavior Task Summary Configuring RadiusConfiguring a Radius Accounting Server Configuring a Radius Client Configuring Free Radius using Gcems as a Radius Server Radius EOF Overview Radius ClientField Descriptions Secondary Authentication Radius Server Primary Authentication Radius ServerRadius Time Format Primary Accounting Radius ServerRadius Server Radius Server IdRadius Server Type Display Table Radius Servers