Freeside:3:Documentation:Developer/bin/freeside-aradial-sftp and import

From Freeside
Jump to: navigation, search

NAME

freeside-aradial-sftp_and_import - Download Aradial "CDR" (really RADIUS detail) files from a remote server via SFTP

SYNOPSIS

 aradial-sftp_and_import [ -m method ] [ -a ] [ -b ]
   [ -r remotefolder ] [ -d donefolder ] [ -v level ] [ -P port ]
   user [sftpuser@]servername dbi_datasrc dbi_username dbi_pass

DESCRIPTION

Command line tool to download CDR files from a remote server via SFTP or FTP and then import them into the database.

-m: transfer method (sftp or ftp), defaults to sftp

-a: use ftp passive mode

-b: use ftp binary mode

-r: if specified, changes into this remote folder before starting

-d: if specified, moves files to the specified folder when done

-P: if specified, sets the port to use

-v: set verbosity level; this script only has one level, but it will be passed as the 'debug' argument to the transport method

user: freeside username

[sftpuser@]servername: remote server (or ftpuser:ftppass@servername)

BUGS

SEE ALSO

FS::cdr