Difference between revisions of "Freeside:1.9:Documentation:Developer/bin/freeside-sqlradius-seconds"

From Freeside
Jump to: navigation, search
(import from POD)
 
(import from POD)
 
Line 1: Line 1:
 
==NAME==
 
==NAME==
freeside-sqlradius-seconds - Real-time radacct import daemon
+
freeside-sqlradius-seconds - Command line time-online tool
  
 
==SYNOPSIS==
 
==SYNOPSIS==

Latest revision as of 19:19, 3 October 2007

NAME

freeside-sqlradius-seconds - Command line time-online tool

SYNOPSIS

 freeside-sqlradius-seconds freeside_username target_username start_date [ stop_date ]

DESCRIPTION

Returns the number of seconds the specified username has been online between start_date (inclusive) and stop_date (exclusive). See "seconds since sqlradacct" in FS/svc acct|FS::svc_acct#seconds_since_sqlradacct|"seconds_since_sqlradacct" in FS::svc_acct

freeside_username is a username added by freeside-adduser. target_username is the username of the user account to query. start_date and stop_date are in any format Date::Parse is happy with. stop_date defaults to now if not specified.

BUGS

Selection of the account in question is rather simplistic in that target_username doesn't necessarily identify a unique account (and wouldn't even if a domain was specified), and no sqlradius export is checked for.

SEE ALSO

"seconds since sqlradacct" in FS/svc acct|FS::svc_acct#seconds_since_sqlradacct|"seconds_since_sqlradacct" in FS::svc_acct