<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://secure.freeside.biz/mediawiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=NathanK</id>
		<title>Freeside - User contributions [en]</title>
		<link rel="self" type="application/atom+xml" href="https://secure.freeside.biz/mediawiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=NathanK"/>
		<link rel="alternate" type="text/html" href="https://secure.freeside.biz/mediawiki/index.php/Special:Contributions/NathanK"/>
		<updated>2026-05-22T00:02:34Z</updated>
		<subtitle>User contributions</subtitle>
		<generator>MediaWiki 1.27.7</generator>

	<entry>
		<id>https://secure.freeside.biz/mediawiki/index.php?title=Freeside:3:Documentation:Administration&amp;diff=9587</id>
		<title>Freeside:3:Documentation:Administration</title>
		<link rel="alternate" type="text/html" href="https://secure.freeside.biz/mediawiki/index.php?title=Freeside:3:Documentation:Administration&amp;diff=9587"/>
				<updated>2016-09-09T19:29:25Z</updated>
		
		<summary type="html">&lt;p&gt;NathanK: /* Employees */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Exports (provisioning) =&lt;br /&gt;
&lt;br /&gt;
'''Exports''' allow you to provision services to remote machines, databases and APIs.  Some exports, such as ''sqlradius'' and ''sqlradius_withdomain'',  enable a feed for retrieving rating/usage data.&lt;br /&gt;
&lt;br /&gt;
Exports can be added and edited under&lt;br /&gt;
: Configuration -&amp;gt; Provisioning, services and packages -&amp;gt; View/edit exports&lt;br /&gt;
&lt;br /&gt;
Most exports place jobs in the job queue for new, modified or deleted services.  Jobs are run by [[Freeside:3:Documentation:Developer/bin/freeside-queued|freeside-queued]].  This daemon needs to be running before exports are acted upon.&lt;br /&gt;
&lt;br /&gt;
Some exports use SSH, SCP or SFTP to communicate with external machines.  See the documentation on [[Freeside:3:Documentation:Administration:SSH_Keys|SSH keys]].&lt;br /&gt;
&lt;br /&gt;
Click on ''Add a new export'' to create a new export.  Select exports from the dropdown to show more information on each export, including available options, setup and usage.&lt;br /&gt;
&lt;br /&gt;
Exports are activated by associating them with one or more '''service definitions'''.&lt;br /&gt;
&lt;br /&gt;
Following is a list of which exports can be associated with each type of service.&lt;br /&gt;
&lt;br /&gt;
==svc_acct==&lt;br /&gt;
* [[Freeside:3:Documentation:Administration:acct_plesk.pm|acct_plesk.pm]]:  Real-time export to Plesk managed mail service&lt;br /&gt;
* acct_sql.pm:  Real-time export of accounts to SQL databases .&lt;br /&gt;
* artera_turbo.pm: &lt;br /&gt;
* bsdshell.pm: &lt;br /&gt;
* [[Freeside:3:Documentation:Administration:communigate_pro.pm|communigate_pro.pm]]:  Real-time export to a CommuniGate Pro mail server&lt;br /&gt;
* communigate_pro_singledomain.pm: &lt;br /&gt;
* cpanel.pm:  Real-time export to Cpanel control panel.&lt;br /&gt;
* cp.pm:  Real-time export to Critical Path Account Provisioning Protocol&lt;br /&gt;
* cyrus.pm:  Real-time export to Cyrus IMAP server&lt;br /&gt;
* everyone_net.pm:  Real-time export to Everyone.net outsourced mail service&lt;br /&gt;
* infostreet.pm:  Real-time export to InfoStreet streetSmartAPI&lt;br /&gt;
* [[Freeside:3:Documentation:Administration:ldap.pm|ldap.pm]]:  Real-time export to LDAP&lt;br /&gt;
* passwdfile.pm:&lt;br /&gt;
* radiator.pm:  Real-time export to RADIATOR&lt;br /&gt;
* shellcommands.pm: &lt;br /&gt;
* shellcommands_withdomain.pm:  Real-time export via remote SSH (vpopmail, ISPMan)&lt;br /&gt;
* sqlmail.pm:  Real-time export to SQL-backed mail server&lt;br /&gt;
* sqlradius.pm:  Real-time export to SQL-backed RADIUS (FreeRADIUS, ICRADIUS)&lt;br /&gt;
* sqlradius_withdomain.pm:  Real-time export to SQL-backed RADIUS (FreeRADIUS, ICRADIUS) with realms&lt;br /&gt;
* sysvshell.pm: &lt;br /&gt;
* textradius.pm: &lt;br /&gt;
* vpopmail.pm:  Real-time export to vpopmail text files&lt;br /&gt;
&lt;br /&gt;
==svc_domain==&lt;br /&gt;
* bind.pm:  Batch export to BIND named&lt;br /&gt;
* bind_slave.pm: Batch export to slave BIND named&lt;br /&gt;
* [[Freeside:3:Documentation:Administration:communigate_pro.pm|communigate_pro.pm]]:  Real-time export to a CommuniGate Pro mail server&lt;br /&gt;
* domain_shellcommands.pm:  Run remote commands via SSH, for domains (qmail, ISPMan).&lt;br /&gt;
* domain_sql.pm:  Real time export of domains to SQL databases .&lt;br /&gt;
* http.pm:  Send an HTTP or HTTPS GET or POST request&lt;br /&gt;
* [[Freeside:3:Documentation:Administration:opensrs.pm|opensrs.pm]]: OpenSRS integration&lt;br /&gt;
* sqlmail.pm:  Real-time export to SQL-backed mail server&lt;br /&gt;
&lt;br /&gt;
==svc_forward==&lt;br /&gt;
* artera_turbo.pm: &lt;br /&gt;
* [[Freeside:3:Documentation:Administration:communigate_pro.pm|communigate_pro.pm]]:  Real-time export to a CommuniGate Pro mail server&lt;br /&gt;
* forward_shellcommands.pm:  Run remote commands via SSH, for forwards&lt;br /&gt;
* postfix.pm:  Postfix text files&lt;br /&gt;
* sqlmail.pm:  Real-time export to SQL-backed mail server&lt;br /&gt;
&lt;br /&gt;
==svc_www==&lt;br /&gt;
* apache.pm:  Export an Apache httpd.conf file snippet.&lt;br /&gt;
* [[Freeside:3:Documentation:Administration:www_plesk.pm|www_plesk.pm]]:  Real-time export to Plesk managed hosting service&lt;br /&gt;
* www_shellcommands.pm:  Run remote commands via SSH, for virtual web sites (directory maintenance, FrontPage, ISPMan)&lt;br /&gt;
&lt;br /&gt;
==svc_broadband==&lt;br /&gt;
* nas_wrapper.pm:  A meta-export that triggers other svc_broadband exports.&lt;br /&gt;
* [[Freeside:3:Documentation:Administration:prizm.pm|prizm.pm]]:  Real-time export to Northbound Interface&lt;br /&gt;
* router.pm:  Send a command to a router.&lt;br /&gt;
* snmp.pm:  Sends SNMP SETs to an SNMP agent.&lt;br /&gt;
* trango.pm:  Sends SNMP SETs to a Trango AP.&lt;br /&gt;
&lt;br /&gt;
==svc_phone==&lt;br /&gt;
* globalpops_voip.pm:&lt;br /&gt;
* grandstream.pm: Grandstream phone and ATA provisioning.   This [http://www.freeside.biz/blog/?p=11 blog article] is a start at documentation.&lt;br /&gt;
* indosoft.pm:&lt;br /&gt;
* internal_diddb.pm:&lt;br /&gt;
* netsapiens.pm:&lt;br /&gt;
* phone_shellcommands.pm:&lt;br /&gt;
* phone_sqlradius.pm:&lt;br /&gt;
* thirdlane.pm:&lt;br /&gt;
* [[Freeside:Documentation:Administration:vitelity.pm|vitelity.pm]]: Vitelity provisioning&lt;br /&gt;
&lt;br /&gt;
==svc_external==&lt;br /&gt;
* artera_turbo.pm:&lt;br /&gt;
&lt;br /&gt;
==svc_dsl==&lt;br /&gt;
* ikano.pm: see [[Freeside:3:Documentation:Administration:svc_dsl:ikano|Ikano DSL provisioning and qualifications]]&lt;br /&gt;
&lt;br /&gt;
= Services =&lt;br /&gt;
&lt;br /&gt;
== Generic ==&lt;br /&gt;
&lt;br /&gt;
=== Accounts (svc_acct) ===&lt;br /&gt;
&lt;br /&gt;
Accounts - anything with a username (mailbox, shell, RADIUS, etc.)&lt;br /&gt;
&lt;br /&gt;
* [[Freeside:3:Documentation:Administration:svc_acct:_password_encoding|Password encoding]]&lt;br /&gt;
&lt;br /&gt;
=== Hardware (svc_hardware) ===&lt;br /&gt;
&lt;br /&gt;
Equipment supplied to customers&lt;br /&gt;
&lt;br /&gt;
=== External (svc_external) ===&lt;br /&gt;
&lt;br /&gt;
Externally-tracked service&lt;br /&gt;
&lt;br /&gt;
== Access ==&lt;br /&gt;
&lt;br /&gt;
=== DSL (svc_dsl) ===&lt;br /&gt;
&lt;br /&gt;
* [[Freeside:3:Documentation:Administration:svc_dsl:ikano|Ikano DSL provisioning and qualifications]]&lt;br /&gt;
&lt;br /&gt;
=== Broadband (svc_broadband) ===&lt;br /&gt;
&lt;br /&gt;
Fixed wireless broadband&lt;br /&gt;
&lt;br /&gt;
=== Cable (svc_cable) ===&lt;br /&gt;
&lt;br /&gt;
=== DISH Network (svc_dish) ===&lt;br /&gt;
&lt;br /&gt;
== Telephony ==&lt;br /&gt;
&lt;br /&gt;
=== Customer phone number / DID (svc_phone) ===&lt;br /&gt;
&lt;br /&gt;
* [[Freeside:Documentation:Administration:Phone devices|Phone devices]]&lt;br /&gt;
&lt;br /&gt;
=== Customer PBX (svc_pbx) ===&lt;br /&gt;
&lt;br /&gt;
=== Phone circuit (svc_circuit) ===&lt;br /&gt;
&lt;br /&gt;
== Hosting ==&lt;br /&gt;
&lt;br /&gt;
=== Domains (svc_domain) ===&lt;br /&gt;
&lt;br /&gt;
=== Certificate (svc_cert) ===&lt;br /&gt;
&lt;br /&gt;
=== Forwards (svc_forward) ===&lt;br /&gt;
&lt;br /&gt;
=== Mailing list (svc_mailinglist)  ===&lt;br /&gt;
&lt;br /&gt;
=== Site hosting (svc_www) ===&lt;br /&gt;
&lt;br /&gt;
== Colocation ==&lt;br /&gt;
&lt;br /&gt;
=== Customer router/switch port (svc_port) ===&lt;br /&gt;
&lt;br /&gt;
= Packages =&lt;br /&gt;
&lt;br /&gt;
{{Freeside:3:Documentation:Administration:pkg_category}}&lt;br /&gt;
&lt;br /&gt;
== Price Plans ==&lt;br /&gt;
&lt;br /&gt;
=== Common price plans ===&lt;br /&gt;
&lt;br /&gt;
* flat&lt;br /&gt;
* subscription&lt;br /&gt;
* prorate&lt;br /&gt;
* sqlradacct_hour&lt;br /&gt;
* [[voip_cdr]]&lt;br /&gt;
* prepaid&lt;br /&gt;
&lt;br /&gt;
=== Wholesale price plans ===&lt;br /&gt;
&lt;br /&gt;
* bulk&lt;br /&gt;
&lt;br /&gt;
* [[Freeside:3:Documentation:Administration:Packages:Price_Plans:agent | agent]]&lt;br /&gt;
* [[Freeside:3:Documentation:Administration:Packages:Price_Plans:cdr_termination |&lt;br /&gt;
 cdr_termination ]]&lt;br /&gt;
&lt;br /&gt;
=== Other price plans ===&lt;br /&gt;
&lt;br /&gt;
* flat_delayed&lt;br /&gt;
* flat_introrate&lt;br /&gt;
* prorate_delayed&lt;br /&gt;
&lt;br /&gt;
* base_delayed&lt;br /&gt;
* base_rate&lt;br /&gt;
&lt;br /&gt;
* sql_external&lt;br /&gt;
* sql_generic&lt;br /&gt;
&lt;br /&gt;
=== Price plans of questionable functionality ===&lt;br /&gt;
&lt;br /&gt;
* flat_comission_cust&lt;br /&gt;
* flat_comission_pkg&lt;br /&gt;
* flat_comission&lt;br /&gt;
&lt;br /&gt;
* voip_sqlradacct&lt;br /&gt;
&lt;br /&gt;
* sesmon_hour&lt;br /&gt;
* sesmon_minute&lt;br /&gt;
&lt;br /&gt;
== Misc ==&lt;br /&gt;
&lt;br /&gt;
* Some notes on [[Freeside:3:Documentation:Administration:Upselling | Upselling]]&lt;br /&gt;
&lt;br /&gt;
= Resellers =&lt;br /&gt;
&lt;br /&gt;
=== Wholesaler configuraiton ===&lt;br /&gt;
[[Freeside:3:Documentation:Administration:Wholesaler|Using agents for setting up Wholesalers]]&lt;br /&gt;
&lt;br /&gt;
= Employees =&lt;br /&gt;
&lt;br /&gt;
== Employees ==&lt;br /&gt;
&lt;br /&gt;
Go to Configuration -&amp;gt; Employees -&amp;gt; Employees to view the existing employees and add new ones.  It is highly recommended to add a separate account for each person rather than using role accounts.&lt;br /&gt;
&lt;br /&gt;
* To add a new employee, click on &amp;quot;Add an employee&amp;quot;&lt;br /&gt;
* Or to edit an existing group, click on the employee number or name in the list of employees.&lt;br /&gt;
* Enter or edit the username, password and name.  If editing an existing employee and no password change is desired, the password fields can be left blank.&lt;br /&gt;
* Check the &amp;quot;Disable employee&amp;quot; box to disable this employee.&lt;br /&gt;
* In the &amp;quot;Employee groups&amp;quot; section, mark or unmark checkboxes to indicate the access groups for this employee.&lt;br /&gt;
&lt;br /&gt;
Go to Configuration -&amp;gt; Ticketing -&amp;gt; Ticketing users&lt;br /&gt;
* Click on the Create link in the upper right hand corner&lt;br /&gt;
* Enter the same username as the Employee name above&lt;br /&gt;
* Enter any other information (Real name, Email address, etc. )&lt;br /&gt;
* Check both boxes in the access control box&lt;br /&gt;
* Click the Create button&lt;br /&gt;
(Be sure to add the ticketing user to the appropriate ticketing groups)&lt;br /&gt;
&lt;br /&gt;
== Employee groups and access control == &lt;br /&gt;
&lt;br /&gt;
To setup employee access control or agent/reseller virtualization, you need to setup employee groups.  Go to Configuration -&amp;gt; Employees -&amp;gt; Employee groups to view the existing groups and add new ones.  The system starts with a &amp;quot;Superuser&amp;quot; group which has access to all functionality for the first agent.&lt;br /&gt;
&lt;br /&gt;
* To add a new group, click on &amp;quot;Add an employee group&amp;quot;&lt;br /&gt;
* Or to edit an existing group, click on the group number or name in the list of groups.&lt;br /&gt;
* Enter or edit the group name.&lt;br /&gt;
* In the &amp;quot;Group limited to these agent(s)&amp;quot; section, mark checkboxes next to the agents this employee group should be able to see.  Employees in this group will only see customers of the selected agents in the system and reports.&lt;br /&gt;
* In the &amp;quot;Group access rights&amp;quot; section, mark or unmark checkboxes to indicate the access rights this employee group should have.  Rights marked with an &amp;quot;*&amp;quot; are global rights which provide access to global data which is shared among all agents. Their use is not recommended for groups which are limited to a subset of agents.&lt;br /&gt;
* After adding a new group, don't forget to go back and add or edit employees to place them into the new group.&lt;br /&gt;
&lt;br /&gt;
= Installers / Appointments =&lt;br /&gt;
&lt;br /&gt;
== Installers ==&lt;br /&gt;
&lt;br /&gt;
* Designate some employees as installers (Configuration -&amp;gt; Employees -&amp;gt; Employees)&lt;br /&gt;
* Edit their schedules (Configuration -&amp;gt; Employees -&amp;gt; Installer availability)&lt;br /&gt;
&lt;br /&gt;
== Ticketing ==&lt;br /&gt;
&lt;br /&gt;
* Setup a queue for appointments (installations, removals, etc.), or use existing per agent queues&lt;br /&gt;
* Make sure the installer employees can own / see / edit tickets in this&lt;br /&gt;
queue (add them to a ticketing group with OwnTicket / SeeQueue on that queue or global, etc.)&lt;br /&gt;
* not yet &amp;lt;strike&amp;gt;XXX future todo some sort of ill-defined thing with configuring a custom field to designate install / recall / service call / removal&amp;lt;/strike&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Packages ==&lt;br /&gt;
&lt;br /&gt;
not yet; package(+location)-specific appointments are a future TODO&lt;br /&gt;
&amp;lt;strike&amp;gt;&lt;br /&gt;
* Setup a package category for packages that can schedule appointments&lt;br /&gt;
* In the package category, select a queue for appointments or pick &amp;quot;Agent-specific queue&amp;quot;&lt;br /&gt;
&amp;lt;/strike&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Employee rights ==&lt;br /&gt;
&lt;br /&gt;
* Upgrade should do this / should be available in a default install, but may not be implemented yet&lt;br /&gt;
* Give one or more employee groups &amp;quot;View appointments&amp;quot; and &amp;quot;Make appointment&amp;quot; (in Customer package rights)&lt;br /&gt;
&lt;br /&gt;
= Billing =&lt;br /&gt;
&lt;br /&gt;
== Billing events ==&lt;br /&gt;
Billing events are the primary mechanism to implement your business rules.  Rules such as resend invoices, retry cards, suspend or cancel accounts for non-payment, etc. are all handled by billing events.&lt;br /&gt;
&lt;br /&gt;
At a high level, follow the following steps to create billing events:&lt;br /&gt;
* Add a new Billing Event (Configuration &amp;gt; Billing &amp;gt; Billing events)&lt;br /&gt;
* Name the event&lt;br /&gt;
* Choose the type of event:&lt;br /&gt;
** Package - Packages and associated dates (Including Commissions)&lt;br /&gt;
** Invoice - Invoice status and dates&lt;br /&gt;
** Customer - Customer Balances and Information&lt;br /&gt;
** Batch Payment - Batch payment results&lt;br /&gt;
** Statement - Send statement &lt;br /&gt;
* Choose whether to apply to one or all agents&lt;br /&gt;
* Choose the frequency for the system to check and see if the event should run.&lt;br /&gt;
* Choose appropriate filters.  &lt;br /&gt;
* Choose appropriate actions.&lt;br /&gt;
&lt;br /&gt;
The form is dynamic so changing the type of event will change the available filters and actions.&lt;br /&gt;
&lt;br /&gt;
== Daily and Monthly Scripts ==&lt;br /&gt;
* The freeside-daily script should be run daily to bill customers and run invoice collection events.&lt;br /&gt;
** Typically, this is accomplished with an entry in the freeside user's crontab such as: &amp;lt;pre&amp;gt;0 0 * * * /usr/local/bin/freeside-daily&amp;lt;/pre&amp;gt;&lt;br /&gt;
** If running freeside-daily manually, ensure the &amp;lt;code&amp;gt;TZ&amp;lt;/code&amp;gt; variable is set to your timezone with a command such as: &amp;lt;pre&amp;gt;TZ=&amp;quot;US/Pacific&amp;quot; freeside-daily fs_daily&amp;lt;/pre&amp;gt;&lt;br /&gt;
* If any monthly events are enabled, the freeside-monthly script should be run monthly.&lt;br /&gt;
* Invoice events can also be used to implement agent-virtualized invoices. (add more info)&lt;br /&gt;
* Be sure to include the full path of freeside-daily in your cron job.&lt;br /&gt;
&lt;br /&gt;
== Invoices ==&lt;br /&gt;
&lt;br /&gt;
=== Typeset (LaTeX) invoice templates ===&lt;br /&gt;
&lt;br /&gt;
==== Prerequisites ====&lt;br /&gt;
&lt;br /&gt;
* Almost all distributions include the necessary prerequisites listed here, manual installation is practically never necessary.&lt;br /&gt;
* Install [http://www.ghostscript.com/ Ghostscript] (gs)&lt;br /&gt;
* Install [http://www.tug.org/tetex/ teTeX] or [http://www.tug.org/texlive/ TeX Live]&lt;br /&gt;
* Ensure that the &amp;lt;code&amp;gt;pslatex&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;dvips&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;pdflatex&amp;lt;/code&amp;gt; command line utilities were installed&lt;br /&gt;
&lt;br /&gt;
==== Logo setup ====&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;em title=&amp;quot;Encapsulated Postscript&amp;quot;&amp;gt;EPS&amp;lt;/em&amp;gt; logo is for PDF and printed invoices.&lt;br /&gt;
&lt;br /&gt;
* For best results, save a '''vector format''' logo in EPS (Encapsulated PostScript) format.  &lt;br /&gt;
** Your graphic artist can create vector image from a bitmap (tracing etc).&lt;br /&gt;
** Converting a bitmap such as a JPG can work (the bigger the better), but it may render in lower quality, blurry or with the &amp;quot;jaggies&amp;quot; (especially when actually printed, not just viewed as a PDF)&lt;br /&gt;
* Resize the logo to 90pt X 36pt: &amp;lt;code&amp;gt;epsffit -c 0 0 90 36 yourlogo.eps &amp;gt;logo.eps&amp;lt;/code&amp;gt;&lt;br /&gt;
** (&amp;quot;no %%BoundingBox:&amp;quot; error?  Fix with eps2eps)&lt;br /&gt;
* Upload the resized logo as the &amp;lt;code&amp;gt;logo.eps&amp;lt;/code&amp;gt; configuration option.&lt;br /&gt;
* Problems?  Try &amp;lt;code&amp;gt;bin/strip-eps &amp;lt;oldlogo.eps &amp;gt;trynewlogo.eps&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;em title=&amp;quot;Portable Network Graphic&amp;quot;&amp;gt;PNG&amp;lt;/em&amp;gt; logo is for emailed and online invoices.&lt;br /&gt;
&lt;br /&gt;
Freeside ships with a logo of 92 x 62.  Any logo close to this size should work with the default HTML template.&lt;br /&gt;
&lt;br /&gt;
{{Freeside:3:Documentation:Administration:invoice_layout}}&lt;br /&gt;
&lt;br /&gt;
=== HTML invoice templates ===&lt;br /&gt;
&lt;br /&gt;
* Convert your logo to PNG format and upload it as the &amp;lt;code&amp;gt;logo.png&amp;lt;/code&amp;gt; configuration option. &lt;br /&gt;
{{Freeside:3:Documentation:Administration:invoice_templates|format=html}}&lt;br /&gt;
&lt;br /&gt;
=== Plaintext invoice templates ===&lt;br /&gt;
&lt;br /&gt;
* See the Text::Template documentation for details on the substitution language.&lt;br /&gt;
* You must call the invoice_lines() function at least once - pass it a number of lines, and it returns a list of array references, each of two elements: a service description column, and a price column. Alternatively, call invoice_lines() with no arguments, and pagination will be disabled - all invoice line items will print on one page, with no padding (recommended for email invoices).&lt;br /&gt;
* Descriptions of variables are available in [[Freeside:3:Documentation:Template:invoice_html|invoice_html]]&lt;br /&gt;
&lt;br /&gt;
=== Misc ===&lt;br /&gt;
&lt;br /&gt;
==== Manually setting next customer number sequence ====&lt;br /&gt;
&lt;br /&gt;
* With PostgreSQL, to number customers starting at 5000: &amp;lt;pre&amp;gt;SELECT SETVAL(pg_get_serial_sequence('cust_main', 'custnum'), 4999);&amp;lt;/pre&amp;gt;&lt;br /&gt;
* With MySQL, to number customers starting at 5000: &amp;lt;pre&amp;gt;ALTER TABLE cust_main AUTO_INCREMENT = 5000;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Manually setting next invoice number sequence ====&lt;br /&gt;
&lt;br /&gt;
* With PostgreSQL, to number invoices starting at 5000: &amp;lt;pre&amp;gt;SELECT SETVAL(pg_get_serial_sequence('cust_bill', 'invnum'), 4999);&amp;lt;/pre&amp;gt;&lt;br /&gt;
* With MySQL, to number invoices starting at 5000: &amp;lt;pre&amp;gt;ALTER TABLE cust_bill AUTO_INCREMENT = 5000;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Taxes == &lt;br /&gt;
&lt;br /&gt;
[[Freeside:3:Documentation:Administration:Tax_Districts | District based taxes]]&lt;br /&gt;
&lt;br /&gt;
== Payment Receipts ==&lt;br /&gt;
&lt;br /&gt;
The [[Freeside:3:Documentation:Template:payment_receipt_email|payment_receipt_email]] template is used for manually applied payments.&lt;br /&gt;
&lt;br /&gt;
== Credit cards and Electronic checks ==&lt;br /&gt;
* [[Freeside:3:Documentation:Administration:Real-time_Processing | Real-time credit card and electronic check processing]]&lt;br /&gt;
* [[Freeside:3:Documentation:Administration:Batch_Processing | Batch credit card and electronic check processing]]&lt;br /&gt;
* Credit card expiration alerts: Customize the ''alerter_template'' configuration option and run &amp;lt;code&amp;gt;freeside-expiration-alerter&amp;lt;/code&amp;gt; daily.&lt;br /&gt;
* Credit card decline alerts: Customize the ''declinetemplate'' configuration option and set the ''emaildecline'' configuration option.&lt;br /&gt;
&lt;br /&gt;
= Misc =&lt;br /&gt;
&lt;br /&gt;
These things should probably find a home properly filed in a section above.&lt;br /&gt;
&lt;br /&gt;
== Invoicing and Payments ==&lt;br /&gt;
&lt;br /&gt;
* Setting up [[Freeside:3:Documentation:Administration:Encrypted Credit Cards | Encrypted Credit Cards]] (default in new installs, highly recommended for older installs upgrading)&lt;br /&gt;
* Setting up [[Freeside:3:Documentation:Administration:Texas Tax | Texas Tax]]&lt;br /&gt;
* Need to print to Windows printers, and the PDF spool is not for you?  Follow steps 1-4 of  [http://iharder.sourceforge.net/current/macosx/winmacprinter/ Share Your Windows Printer].&lt;br /&gt;
&lt;br /&gt;
== Refunds for automatic payments ==&lt;br /&gt;
&lt;br /&gt;
A refund to an automatic payment can be made within the time limitation set by the payment gateway by using the refund link next to the payment:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;05/19/2015 Payment by fs_queue (Credit card #411111xxxxxx1111) applied to Invoice #228 (05/19/15) (view receipt) (refund) (void) (unapply)  - $24.60   $0.00&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
On the refund page the Amount defaults to the amount of the payment.  If only a partial refund is to be made then change this to the proper amount:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Refund&lt;br /&gt;
Date 05/19/2015&lt;br /&gt;
Amount $10.00 by Credit card&lt;br /&gt;
Reason Package amount incorrect&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For this example we will only refund a part of the payment as illustrated above.  It is usually a good idea to add a Reason that provides additional information for the refund.&lt;br /&gt;
&lt;br /&gt;
Once you have the refund fields filled out click the Post refund button&lt;br /&gt;
&lt;br /&gt;
This will unapply the payment from the invoice leaving the balance of the payment available for application to an invoice:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
05/19/2015 Open Invoice #228 (Balance 25.21) (void)&lt;br /&gt;
( View invoice events ) $25.21    $25.21&lt;br /&gt;
05/19/2015 Payment by nkennedy (Credit card #411111xxxxxx1111)&lt;br /&gt;
  10.00 refunded on 05/19/2015&lt;br /&gt;
  15.21 unapplied&lt;br /&gt;
(view receipt) (apply) (refund) (void)  - $25.21   $0.00&lt;br /&gt;
05/19/2015 Refund by nkennedy (Credit card #411111xxxxxx1111) (view receipt)    $10.00 $10.00&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Use the apply link to apply the remaining payment to the invoice.  This will bring up the Apply Payment window where you can select the invoice to apply the payment to:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Payment #77&lt;br /&gt;
Date: 05/19/2015&lt;br /&gt;
Amount: $25.21&lt;br /&gt;
Unapplied amount: $15.21&lt;br /&gt;
&lt;br /&gt;
Apply to:&lt;br /&gt;
Invoice: #228 - 05/19/2015 - $25.21&lt;br /&gt;
Amount: $15.21&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After you click the Apply button you are left with the original invoice with a balance due from the refunded payment:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
05/19/2015 Open Invoice #228 (Balance 10.00) (void)&lt;br /&gt;
( View invoice events ) $25.21    $25.21&lt;br /&gt;
05/19/2015 Payment by nkennedy (Credit card #411111xxxxxx1111)&lt;br /&gt;
  10.00 refunded on 05/19/2015&lt;br /&gt;
  15.21 applied to Invoice #228 (05/19/15)&lt;br /&gt;
(view receipt) (refund) (void) (unapply)  - $25.21   $0.00&lt;br /&gt;
05/19/2015 Refund by nkennedy (Credit card #411111xxxxxx1111) (view receipt)    $10.00 $10.00&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To balance the invoice you can use the Enter Credit link to issue a credit that can be applied to the invoice:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Enter Credit&lt;br /&gt;
&lt;br /&gt;
Date   05/19/2015 10:03:26 AM&lt;br /&gt;
Amount $10.00&lt;br /&gt;
Reason Package Error&lt;br /&gt;
Additional info Credit for package error&lt;br /&gt;
Auto-apply to invoices yes&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When entering the credit you can select a credit reason that was previously defined at Configuration -&amp;gt; Billing -&amp;gt; Credit Reasons or you can create a reason on the fly.&lt;br /&gt;
You can also add a small note in the &amp;quot;Additional info&amp;quot; field which will print on the customers invoice.  Please keept this short as long text will get truncated on PDF invoices to prevent formatting issues.&lt;br /&gt;
&lt;br /&gt;
Once the credit is applied the customers account will be balanced out:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
05/19/2015 Invoice #228 (Balance 0.00) (void)&lt;br /&gt;
( View invoice events ) $25.21    $25.21&lt;br /&gt;
05/19/2015 Payment by nkennedy (Credit card #411111xxxxxx1111)&lt;br /&gt;
  10.00 refunded on 05/19/2015&lt;br /&gt;
  15.21 applied to Invoice #228 (05/19/15)&lt;br /&gt;
(view receipt) (refund) (void) (unapply)  - $25.21   $0.00&lt;br /&gt;
05/19/2015 Refund by nkennedy (Credit card #411111xxxxxx1111) (view receipt)    $10.00 $10.00&lt;br /&gt;
05/19/2015 Credit by nkennedy (Package Error Credit for package error) applied to Invoice #228 (05/19/15) (delete) (unapply) (void)   - $10.00  $0.00&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you need to have taxes calculated as part of the refund you can start with issuing a credit using the Credit line items link.  This will allow you to select the line item on the invoice and enter the amount to credit that entry.&lt;br /&gt;
Follow the rest of the instructions for re-applying the payment to the invoice and the left over balance is the amount you need to use after following the refund link on the payment.&lt;br /&gt;
&lt;br /&gt;
== Commissions ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- Superseded by Commissions below... * Setting up [[Freeside:1.9:Documentation:Administration:Referral credits|Referral credits]] --&amp;gt;&lt;br /&gt;
* Setting up [[Freeside:3:Documentation:Administration:Commission|Commissions and Referrals]]&lt;br /&gt;
&lt;br /&gt;
== VoIP ==&lt;br /&gt;
&lt;br /&gt;
* Setting up [[Freeside:3:Documentation:Administration:VoIP | VoIP]]&lt;br /&gt;
* [[Simple Bulk DID Orders]]&lt;br /&gt;
* [[Bulk DID Orders]]&lt;br /&gt;
* [[Freeside:3:Documentation:Administration:VoIP:e911|e911 Providers]]&lt;br /&gt;
&lt;br /&gt;
== RADIUS ==&lt;br /&gt;
&lt;br /&gt;
* Setting up [[Freeside:3.0:Documentation:Administration:FreeRadius | FreeRadius]]&lt;br /&gt;
&lt;br /&gt;
== Torrus Network monitoring ==&lt;br /&gt;
&lt;br /&gt;
* [[Freeside:3:Documentation:Torrus_Installation | Installation]]&lt;br /&gt;
* [[Freeside:3:Documentation:Torrus_Administration | Administration]]&lt;br /&gt;
&lt;br /&gt;
== Old / uncommon ==&lt;br /&gt;
&lt;br /&gt;
* Setting up [[Freeside:3:Documentation:Administration:Time billing | Time billing]]&lt;br /&gt;
* Using a non-standard [[Freeside:3:Documentation:Administration:PostgreSQL_Schema | PostgreSQL Schema]]&lt;br /&gt;
* Setting up [[Freeside:3:Documentation:Administration:Slony | Slony replication and failover]] (old - PostgreSQL native replication is a more current solution)&lt;br /&gt;
&lt;br /&gt;
{{ContextSensitiveHelp}}&lt;/div&gt;</summary>
		<author><name>NathanK</name></author>	</entry>

	<entry>
		<id>https://secure.freeside.biz/mediawiki/index.php?title=Freeside:3:Documentation:Administration&amp;diff=9529</id>
		<title>Freeside:3:Documentation:Administration</title>
		<link rel="alternate" type="text/html" href="https://secure.freeside.biz/mediawiki/index.php?title=Freeside:3:Documentation:Administration&amp;diff=9529"/>
				<updated>2015-12-29T17:51:36Z</updated>
		
		<summary type="html">&lt;p&gt;NathanK: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Exports (provisioning) =&lt;br /&gt;
&lt;br /&gt;
'''Exports''' allow you to provision services to remote machines, databases and APIs.  Some exports, such as ''sqlradius'' and ''sqlradius_withdomain'',  enable a feed for retrieving rating/usage data.&lt;br /&gt;
&lt;br /&gt;
Exports can be added and edited under&lt;br /&gt;
: Configuration -&amp;gt; Provisioning, services and packages -&amp;gt; View/edit exports&lt;br /&gt;
&lt;br /&gt;
Most exports place jobs in the job queue for new, modified or deleted services.  Jobs are run by [[Freeside:3:Documentation:Developer/bin/freeside-queued|freeside-queued]].  This daemon needs to be running before exports are acted upon.&lt;br /&gt;
&lt;br /&gt;
Some exports use SSH, SCP or SFTP to communicate with external machines.  See the documentation on [[Freeside:3:Documentation:Administration:SSH_Keys|SSH keys]].&lt;br /&gt;
&lt;br /&gt;
Click on ''Add a new export'' to create a new export.  Select exports from the dropdown to show more information on each export, including available options, setup and usage.&lt;br /&gt;
&lt;br /&gt;
Exports are activated by associating them with one or more '''service definitions'''.&lt;br /&gt;
&lt;br /&gt;
Following is a list of which exports can be associated with each type of service.&lt;br /&gt;
&lt;br /&gt;
==svc_acct==&lt;br /&gt;
* [[Freeside:3:Documentation:Administration:acct_plesk.pm|acct_plesk.pm]]:  Real-time export to Plesk managed mail service&lt;br /&gt;
* acct_sql.pm:  Real-time export of accounts to SQL databases .&lt;br /&gt;
* artera_turbo.pm: &lt;br /&gt;
* bsdshell.pm: &lt;br /&gt;
* [[Freeside:3:Documentation:Administration:communigate_pro.pm|communigate_pro.pm]]:  Real-time export to a CommuniGate Pro mail server&lt;br /&gt;
* communigate_pro_singledomain.pm: &lt;br /&gt;
* cpanel.pm:  Real-time export to Cpanel control panel.&lt;br /&gt;
* cp.pm:  Real-time export to Critical Path Account Provisioning Protocol&lt;br /&gt;
* cyrus.pm:  Real-time export to Cyrus IMAP server&lt;br /&gt;
* everyone_net.pm:  Real-time export to Everyone.net outsourced mail service&lt;br /&gt;
* infostreet.pm:  Real-time export to InfoStreet streetSmartAPI&lt;br /&gt;
* [[Freeside:3:Documentation:Administration:ldap.pm|ldap.pm]]:  Real-time export to LDAP&lt;br /&gt;
* passwdfile.pm:&lt;br /&gt;
* radiator.pm:  Real-time export to RADIATOR&lt;br /&gt;
* shellcommands.pm: &lt;br /&gt;
* shellcommands_withdomain.pm:  Real-time export via remote SSH (vpopmail, ISPMan)&lt;br /&gt;
* sqlmail.pm:  Real-time export to SQL-backed mail server&lt;br /&gt;
* sqlradius.pm:  Real-time export to SQL-backed RADIUS (FreeRADIUS, ICRADIUS)&lt;br /&gt;
* sqlradius_withdomain.pm:  Real-time export to SQL-backed RADIUS (FreeRADIUS, ICRADIUS) with realms&lt;br /&gt;
* sysvshell.pm: &lt;br /&gt;
* textradius.pm: &lt;br /&gt;
* vpopmail.pm:  Real-time export to vpopmail text files&lt;br /&gt;
&lt;br /&gt;
==svc_domain==&lt;br /&gt;
* bind.pm:  Batch export to BIND named&lt;br /&gt;
* bind_slave.pm: Batch export to slave BIND named&lt;br /&gt;
* [[Freeside:3:Documentation:Administration:communigate_pro.pm|communigate_pro.pm]]:  Real-time export to a CommuniGate Pro mail server&lt;br /&gt;
* domain_shellcommands.pm:  Run remote commands via SSH, for domains (qmail, ISPMan).&lt;br /&gt;
* domain_sql.pm:  Real time export of domains to SQL databases .&lt;br /&gt;
* http.pm:  Send an HTTP or HTTPS GET or POST request&lt;br /&gt;
* [[Freeside:3:Documentation:Administration:opensrs.pm|opensrs.pm]]: OpenSRS integration&lt;br /&gt;
* sqlmail.pm:  Real-time export to SQL-backed mail server&lt;br /&gt;
&lt;br /&gt;
==svc_forward==&lt;br /&gt;
* artera_turbo.pm: &lt;br /&gt;
* [[Freeside:3:Documentation:Administration:communigate_pro.pm|communigate_pro.pm]]:  Real-time export to a CommuniGate Pro mail server&lt;br /&gt;
* forward_shellcommands.pm:  Run remote commands via SSH, for forwards&lt;br /&gt;
* postfix.pm:  Postfix text files&lt;br /&gt;
* sqlmail.pm:  Real-time export to SQL-backed mail server&lt;br /&gt;
&lt;br /&gt;
==svc_www==&lt;br /&gt;
* apache.pm:  Export an Apache httpd.conf file snippet.&lt;br /&gt;
* [[Freeside:3:Documentation:Administration:www_plesk.pm|www_plesk.pm]]:  Real-time export to Plesk managed hosting service&lt;br /&gt;
* www_shellcommands.pm:  Run remote commands via SSH, for virtual web sites (directory maintenance, FrontPage, ISPMan)&lt;br /&gt;
&lt;br /&gt;
==svc_broadband==&lt;br /&gt;
* nas_wrapper.pm:  A meta-export that triggers other svc_broadband exports.&lt;br /&gt;
* [[Freeside:3:Documentation:Administration:prizm.pm|prizm.pm]]:  Real-time export to Northbound Interface&lt;br /&gt;
* router.pm:  Send a command to a router.&lt;br /&gt;
* snmp.pm:  Sends SNMP SETs to an SNMP agent.&lt;br /&gt;
* trango.pm:  Sends SNMP SETs to a Trango AP.&lt;br /&gt;
&lt;br /&gt;
==svc_phone==&lt;br /&gt;
* globalpops_voip.pm:&lt;br /&gt;
* grandstream.pm: Grandstream phone and ATA provisioning.   This [http://www.freeside.biz/blog/?p=11 blog article] is a start at documentation.&lt;br /&gt;
* indosoft.pm:&lt;br /&gt;
* internal_diddb.pm:&lt;br /&gt;
* netsapiens.pm:&lt;br /&gt;
* phone_shellcommands.pm:&lt;br /&gt;
* phone_sqlradius.pm:&lt;br /&gt;
* thirdlane.pm:&lt;br /&gt;
* [[Freeside:Documentation:Administration:vitelity.pm|vitelity.pm]]: Vitelity provisioning&lt;br /&gt;
&lt;br /&gt;
==svc_external==&lt;br /&gt;
* artera_turbo.pm:&lt;br /&gt;
&lt;br /&gt;
==svc_dsl==&lt;br /&gt;
* ikano.pm: see [[Freeside:3:Documentation:Administration:svc_dsl:ikano|Ikano DSL provisioning and qualifications]]&lt;br /&gt;
&lt;br /&gt;
= Services =&lt;br /&gt;
&lt;br /&gt;
== Generic ==&lt;br /&gt;
&lt;br /&gt;
=== Accounts (svc_acct) ===&lt;br /&gt;
&lt;br /&gt;
Accounts - anything with a username (mailbox, shell, RADIUS, etc.)&lt;br /&gt;
&lt;br /&gt;
* [[Freeside:3:Documentation:Administration:svc_acct:_password_encoding|Password encoding]]&lt;br /&gt;
&lt;br /&gt;
=== Hardware (svc_hardware) ===&lt;br /&gt;
&lt;br /&gt;
Equipment supplied to customers&lt;br /&gt;
&lt;br /&gt;
=== External (svc_external) ===&lt;br /&gt;
&lt;br /&gt;
Externally-tracked service&lt;br /&gt;
&lt;br /&gt;
== Access ==&lt;br /&gt;
&lt;br /&gt;
=== DSL (svc_dsl) ===&lt;br /&gt;
&lt;br /&gt;
* [[Freeside:3:Documentation:Administration:svc_dsl:ikano|Ikano DSL provisioning and qualifications]]&lt;br /&gt;
&lt;br /&gt;
=== Broadband (svc_broadband) ===&lt;br /&gt;
&lt;br /&gt;
Fixed wireless broadband&lt;br /&gt;
&lt;br /&gt;
=== Cable (svc_cable) ===&lt;br /&gt;
&lt;br /&gt;
=== DISH Network (svc_dish) ===&lt;br /&gt;
&lt;br /&gt;
== Telephony ==&lt;br /&gt;
&lt;br /&gt;
=== Customer phone number / DID (svc_phone) ===&lt;br /&gt;
&lt;br /&gt;
* [[Freeside:Documentation:Administration:Phone devices|Phone devices]]&lt;br /&gt;
&lt;br /&gt;
=== Customer PBX (svc_pbx) ===&lt;br /&gt;
&lt;br /&gt;
=== Phone circuit (svc_circuit) ===&lt;br /&gt;
&lt;br /&gt;
== Hosting ==&lt;br /&gt;
&lt;br /&gt;
=== Domains (svc_domain) ===&lt;br /&gt;
&lt;br /&gt;
=== Certificate (svc_cert) ===&lt;br /&gt;
&lt;br /&gt;
=== Forwards (svc_forward) ===&lt;br /&gt;
&lt;br /&gt;
=== Mailing list (svc_mailinglist)  ===&lt;br /&gt;
&lt;br /&gt;
=== Site hosting (svc_www) ===&lt;br /&gt;
&lt;br /&gt;
== Colocation ==&lt;br /&gt;
&lt;br /&gt;
=== Customer router/switch port (svc_port) ===&lt;br /&gt;
&lt;br /&gt;
= Packages =&lt;br /&gt;
&lt;br /&gt;
{{Freeside:3:Documentation:Administration:pkg_category}}&lt;br /&gt;
&lt;br /&gt;
== Price Plans ==&lt;br /&gt;
&lt;br /&gt;
=== Common price plans ===&lt;br /&gt;
&lt;br /&gt;
* flat&lt;br /&gt;
* subscription&lt;br /&gt;
* prorate&lt;br /&gt;
* sqlradacct_hour&lt;br /&gt;
* [[voip_cdr]]&lt;br /&gt;
* prepaid&lt;br /&gt;
&lt;br /&gt;
=== Wholesale price plans ===&lt;br /&gt;
&lt;br /&gt;
* bulk&lt;br /&gt;
&lt;br /&gt;
* [[Freeside:3:Documentation:Administration:Packages:Price_Plans:agent | agent]]&lt;br /&gt;
* [[Freeside:3:Documentation:Administration:Packages:Price_Plans:cdr_termination |&lt;br /&gt;
 cdr_termination ]]&lt;br /&gt;
&lt;br /&gt;
=== Other price plans ===&lt;br /&gt;
&lt;br /&gt;
* flat_delayed&lt;br /&gt;
* flat_introrate&lt;br /&gt;
* prorate_delayed&lt;br /&gt;
&lt;br /&gt;
* base_delayed&lt;br /&gt;
* base_rate&lt;br /&gt;
&lt;br /&gt;
* sql_external&lt;br /&gt;
* sql_generic&lt;br /&gt;
&lt;br /&gt;
=== Price plans of questionable functionality ===&lt;br /&gt;
&lt;br /&gt;
* flat_comission_cust&lt;br /&gt;
* flat_comission_pkg&lt;br /&gt;
* flat_comission&lt;br /&gt;
&lt;br /&gt;
* voip_sqlradacct&lt;br /&gt;
&lt;br /&gt;
* sesmon_hour&lt;br /&gt;
* sesmon_minute&lt;br /&gt;
&lt;br /&gt;
== Misc ==&lt;br /&gt;
&lt;br /&gt;
* Some notes on [[Freeside:3:Documentation:Administration:Upselling | Upselling]]&lt;br /&gt;
&lt;br /&gt;
= Resellers =&lt;br /&gt;
&lt;br /&gt;
=== Wholesaler configuraiton ===&lt;br /&gt;
[[Freeside:3:Documentation:Administration:Wholesaler|Using agents for setting up Wholesalers]]&lt;br /&gt;
&lt;br /&gt;
= Employees =&lt;br /&gt;
&lt;br /&gt;
== Employees ==&lt;br /&gt;
&lt;br /&gt;
Go to Configuration -&amp;gt; Employees -&amp;gt; Employees to view the existing employees and add new ones.  It is highly recommended to add a separate account for each person rather than using role accounts.&lt;br /&gt;
&lt;br /&gt;
* To add a new employee, click on &amp;quot;Add an employee&amp;quot;&lt;br /&gt;
* Or to edit an existing group, click on the employee number or name in the list of employees.&lt;br /&gt;
* Enter or edit the username, password and name.  If editing an existing employee and no password change is desired, the password fields can be left blank.&lt;br /&gt;
* Check the &amp;quot;Disable employee&amp;quot; box to disable this employee.&lt;br /&gt;
* In the &amp;quot;Employee groups&amp;quot; section, mark or unmark checkboxes to indicate the access groups for this employee.&lt;br /&gt;
&lt;br /&gt;
== Employee groups and access control == &lt;br /&gt;
&lt;br /&gt;
To setup employee access control or agent/reseller virtualization, you need to setup employee groups.  Go to Configuration -&amp;gt; Employees -&amp;gt; Employee groups to view the existing groups and add new ones.  The system starts with a &amp;quot;Superuser&amp;quot; group which has access to all functionality for the first agent.&lt;br /&gt;
&lt;br /&gt;
* To add a new group, click on &amp;quot;Add an employee group&amp;quot;&lt;br /&gt;
* Or to edit an existing group, click on the group number or name in the list of groups.&lt;br /&gt;
* Enter or edit the group name.&lt;br /&gt;
* In the &amp;quot;Group limited to these agent(s)&amp;quot; section, mark checkboxes next to the agents this employee group should be able to see.  Employees in this group will only see customers of the selected agents in the system and reports.&lt;br /&gt;
* In the &amp;quot;Group access rights&amp;quot; section, mark or unmark checkboxes to indicate the access rights this employee group should have.  Rights marked with an &amp;quot;*&amp;quot; are global rights which provide access to global data which is shared among all agents. Their use is not recommended for groups which are limited to a subset of agents.&lt;br /&gt;
* After adding a new group, don't forget to go back and add or edit employees to place them into the new group.&lt;br /&gt;
&lt;br /&gt;
= Installers / Appointments =&lt;br /&gt;
&lt;br /&gt;
== Installers ==&lt;br /&gt;
&lt;br /&gt;
* Designate some employees as installers (Configuration -&amp;gt; Employees -&amp;gt; Employees)&lt;br /&gt;
* Edit their schedules (Configuration -&amp;gt; Employees -&amp;gt; Installer availability)&lt;br /&gt;
&lt;br /&gt;
== Ticketing ==&lt;br /&gt;
&lt;br /&gt;
* Setup a queue for appointments (installations, removals, etc.), or use existing per agent queues&lt;br /&gt;
* Make sure the installer employees can own / see / edit tickets in this&lt;br /&gt;
queue (add them to a ticketing group with OwnTicket / SeeQueue on that queue or global, etc.)&lt;br /&gt;
* not yet &amp;lt;strike&amp;gt;XXX future todo some sort of ill-defined thing with configuring a custom field to designate install / recall / service call / removal&amp;lt;/strike&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Packages ==&lt;br /&gt;
&lt;br /&gt;
not yet; package(+location)-specific appointments are a future TODO&lt;br /&gt;
&amp;lt;strike&amp;gt;&lt;br /&gt;
* Setup a package category for packages that can schedule appointments&lt;br /&gt;
* In the package category, select a queue for appointments or pick &amp;quot;Agent-specific queue&amp;quot;&lt;br /&gt;
&amp;lt;/strike&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Employee rights ==&lt;br /&gt;
&lt;br /&gt;
* Upgrade should do this / should be available in a default install, but may not be implemented yet&lt;br /&gt;
* Give one or more employee groups &amp;quot;View appointments&amp;quot; and &amp;quot;Make appointment&amp;quot; (in Customer package rights)&lt;br /&gt;
&lt;br /&gt;
= Billing =&lt;br /&gt;
&lt;br /&gt;
== Billing events ==&lt;br /&gt;
Billing events are the primary mechanism to implement your business rules.  Rules such as resend invoices, retry cards, suspend or cancel accounts for non-payment, etc. are all handled by billing events.&lt;br /&gt;
&lt;br /&gt;
At a high level, follow the following steps to create billing events:&lt;br /&gt;
* Add a new Billing Event (Configuration &amp;gt; Billing &amp;gt; Billing events)&lt;br /&gt;
* Name the event&lt;br /&gt;
* Choose the type of event:&lt;br /&gt;
** Package - Packages and associated dates (Including Commissions)&lt;br /&gt;
** Invoice - Invoice status and dates&lt;br /&gt;
** Customer - Customer Balances and Information&lt;br /&gt;
** Batch Payment - Batch payment results&lt;br /&gt;
** Statement - Send statement &lt;br /&gt;
* Choose whether to apply to one or all agents&lt;br /&gt;
* Choose the frequency for the system to check and see if the event should run.&lt;br /&gt;
* Choose appropriate filters.  &lt;br /&gt;
* Choose appropriate actions.&lt;br /&gt;
&lt;br /&gt;
The form is dynamic so changing the type of event will change the available filters and actions.&lt;br /&gt;
&lt;br /&gt;
== Daily and Monthly Scripts ==&lt;br /&gt;
* The freeside-daily script should be run daily to bill customers and run invoice collection events.&lt;br /&gt;
** Typically, this is accomplished with an entry in the freeside user's crontab such as: &amp;lt;pre&amp;gt;0 0 * * * /usr/local/bin/freeside-daily&amp;lt;/pre&amp;gt;&lt;br /&gt;
** If running freeside-daily manually, ensure the &amp;lt;code&amp;gt;TZ&amp;lt;/code&amp;gt; variable is set to your timezone with a command such as: &amp;lt;pre&amp;gt;TZ=&amp;quot;US/Pacific&amp;quot; freeside-daily fs_daily&amp;lt;/pre&amp;gt;&lt;br /&gt;
* If any monthly events are enabled, the freeside-monthly script should be run monthly.&lt;br /&gt;
* Invoice events can also be used to implement agent-virtualized invoices. (add more info)&lt;br /&gt;
* Be sure to include the full path of freeside-daily in your cron job.&lt;br /&gt;
&lt;br /&gt;
== Invoices ==&lt;br /&gt;
&lt;br /&gt;
=== Typeset (LaTeX) invoice templates ===&lt;br /&gt;
&lt;br /&gt;
==== Prerequisites ====&lt;br /&gt;
&lt;br /&gt;
* Almost all distributions include the necessary prerequisites listed here, manual installation is practically never necessary.&lt;br /&gt;
* Install [http://www.ghostscript.com/ Ghostscript] (gs)&lt;br /&gt;
* Install [http://www.tug.org/tetex/ teTeX] or [http://www.tug.org/texlive/ TeX Live]&lt;br /&gt;
* Ensure that the &amp;lt;code&amp;gt;pslatex&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;dvips&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;pdflatex&amp;lt;/code&amp;gt; command line utilities were installed&lt;br /&gt;
&lt;br /&gt;
==== Logo setup ====&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;em title=&amp;quot;Encapsulated Postscript&amp;quot;&amp;gt;EPS&amp;lt;/em&amp;gt; logo is for PDF and printed invoices.&lt;br /&gt;
&lt;br /&gt;
* For best results, save a '''vector format''' logo in EPS (Encapsulated PostScript) format.  &lt;br /&gt;
** Your graphic artist can create vector image from a bitmap (tracing etc).&lt;br /&gt;
** Converting a bitmap such as a JPG can work (the bigger the better), but it may render in lower quality, blurry or with the &amp;quot;jaggies&amp;quot; (especially when actually printed, not just viewed as a PDF)&lt;br /&gt;
* Resize the logo to 90pt X 36pt: &amp;lt;code&amp;gt;epsffit -c 0 0 90 36 yourlogo.eps &amp;gt;logo.eps&amp;lt;/code&amp;gt;&lt;br /&gt;
** (&amp;quot;no %%BoundingBox:&amp;quot; error?  Fix with eps2eps)&lt;br /&gt;
* Upload the resized logo as the &amp;lt;code&amp;gt;logo.eps&amp;lt;/code&amp;gt; configuration option.&lt;br /&gt;
* Problems?  Try &amp;lt;code&amp;gt;bin/strip-eps &amp;lt;oldlogo.eps &amp;gt;trynewlogo.eps&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;em title=&amp;quot;Portable Network Graphic&amp;quot;&amp;gt;PNG&amp;lt;/em&amp;gt; logo is for emailed and online invoices.&lt;br /&gt;
&lt;br /&gt;
Freeside ships with a logo of 92 x 62.  Any logo close to this size should work with the default HTML template.&lt;br /&gt;
&lt;br /&gt;
{{Freeside:3:Documentation:Administration:invoice_layout}}&lt;br /&gt;
&lt;br /&gt;
=== HTML invoice templates ===&lt;br /&gt;
&lt;br /&gt;
* Convert your logo to PNG format and upload it as the &amp;lt;code&amp;gt;logo.png&amp;lt;/code&amp;gt; configuration option. &lt;br /&gt;
{{Freeside:3:Documentation:Administration:invoice_templates|format=html}}&lt;br /&gt;
&lt;br /&gt;
=== Plaintext invoice templates ===&lt;br /&gt;
&lt;br /&gt;
* See the Text::Template documentation for details on the substitution language.&lt;br /&gt;
* You must call the invoice_lines() function at least once - pass it a number of lines, and it returns a list of array references, each of two elements: a service description column, and a price column. Alternatively, call invoice_lines() with no arguments, and pagination will be disabled - all invoice line items will print on one page, with no padding (recommended for email invoices).&lt;br /&gt;
* Descriptions of variables are available in [[Freeside:3:Documentation:Template:invoice_html|invoice_html]]&lt;br /&gt;
&lt;br /&gt;
=== Misc ===&lt;br /&gt;
&lt;br /&gt;
==== Manually setting next customer number sequence ====&lt;br /&gt;
&lt;br /&gt;
* With PostgreSQL, to number customers starting at 5000: &amp;lt;pre&amp;gt;SELECT SETVAL(pg_get_serial_sequence('cust_main', 'custnum'), 4999);&amp;lt;/pre&amp;gt;&lt;br /&gt;
* With MySQL, to number customers starting at 5000: &amp;lt;pre&amp;gt;ALTER TABLE cust_main AUTO_INCREMENT = 5000;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Manually setting next invoice number sequence ====&lt;br /&gt;
&lt;br /&gt;
* With PostgreSQL, to number invoices starting at 5000: &amp;lt;pre&amp;gt;SELECT SETVAL(pg_get_serial_sequence('cust_bill', 'invnum'), 4999);&amp;lt;/pre&amp;gt;&lt;br /&gt;
* With MySQL, to number invoices starting at 5000: &amp;lt;pre&amp;gt;ALTER TABLE cust_bill AUTO_INCREMENT = 5000;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Taxes == &lt;br /&gt;
&lt;br /&gt;
[[Freeside:3:Documentation:Administration:Tax_Districts | District based taxes]]&lt;br /&gt;
&lt;br /&gt;
== Payment Receipts ==&lt;br /&gt;
&lt;br /&gt;
The [[Freeside:3:Documentation:Template:payment_receipt_email|payment_receipt_email]] template is used for manually applied payments.&lt;br /&gt;
&lt;br /&gt;
== Credit cards and Electronic checks ==&lt;br /&gt;
* [[Freeside:3:Documentation:Administration:Real-time_Processing | Real-time credit card and electronic check processing]]&lt;br /&gt;
* [[Freeside:3:Documentation:Administration:Batch_Processing | Batch credit card and electronic check processing]]&lt;br /&gt;
* Credit card expiration alerts: Customize the ''alerter_template'' configuration option and run &amp;lt;code&amp;gt;freeside-expiration-alerter&amp;lt;/code&amp;gt; daily.&lt;br /&gt;
* Credit card decline alerts: Customize the ''declinetemplate'' configuration option and set the ''emaildecline'' configuration option.&lt;br /&gt;
&lt;br /&gt;
= Misc =&lt;br /&gt;
&lt;br /&gt;
These things should probably find a home properly filed in a section above.&lt;br /&gt;
&lt;br /&gt;
== Invoicing and Payments ==&lt;br /&gt;
&lt;br /&gt;
* Setting up [[Freeside:3:Documentation:Administration:Encrypted Credit Cards | Encrypted Credit Cards]] (default in new installs, highly recommended for older installs upgrading)&lt;br /&gt;
* Setting up [[Freeside:3:Documentation:Administration:Texas Tax | Texas Tax]]&lt;br /&gt;
* Need to print to Windows printers, and the PDF spool is not for you?  Follow steps 1-4 of  [http://iharder.sourceforge.net/current/macosx/winmacprinter/ Share Your Windows Printer].&lt;br /&gt;
&lt;br /&gt;
== Refunds for automatic payments ==&lt;br /&gt;
&lt;br /&gt;
A refund to an automatic payment can be made within the time limitation set by the payment gateway by using the refund link next to the payment:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;05/19/2015 Payment by fs_queue (Credit card #411111xxxxxx1111) applied to Invoice #228 (05/19/15) (view receipt) (refund) (void) (unapply)  - $24.60   $0.00&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
On the refund page the Amount defaults to the amount of the payment.  If only a partial refund is to be made then change this to the proper amount:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Refund&lt;br /&gt;
Date 05/19/2015&lt;br /&gt;
Amount $10.00 by Credit card&lt;br /&gt;
Reason Package amount incorrect&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For this example we will only refund a part of the payment as illustrated above.  It is usually a good idea to add a Reason that provides additional information for the refund.&lt;br /&gt;
&lt;br /&gt;
Once you have the refund fields filled out click the Post refund button&lt;br /&gt;
&lt;br /&gt;
This will unapply the payment from the invoice leaving the balance of the payment available for application to an invoice:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
05/19/2015 Open Invoice #228 (Balance 25.21) (void)&lt;br /&gt;
( View invoice events ) $25.21    $25.21&lt;br /&gt;
05/19/2015 Payment by nkennedy (Credit card #411111xxxxxx1111)&lt;br /&gt;
  10.00 refunded on 05/19/2015&lt;br /&gt;
  15.21 unapplied&lt;br /&gt;
(view receipt) (apply) (refund) (void)  - $25.21   $0.00&lt;br /&gt;
05/19/2015 Refund by nkennedy (Credit card #411111xxxxxx1111) (view receipt)    $10.00 $10.00&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Use the apply link to apply the remaining payment to the invoice.  This will bring up the Apply Payment window where you can select the invoice to apply the payment to:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Payment #77&lt;br /&gt;
Date: 05/19/2015&lt;br /&gt;
Amount: $25.21&lt;br /&gt;
Unapplied amount: $15.21&lt;br /&gt;
&lt;br /&gt;
Apply to:&lt;br /&gt;
Invoice: #228 - 05/19/2015 - $25.21&lt;br /&gt;
Amount: $15.21&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After you click the Apply button you are left with the original invoice with a balance due from the refunded payment:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
05/19/2015 Open Invoice #228 (Balance 10.00) (void)&lt;br /&gt;
( View invoice events ) $25.21    $25.21&lt;br /&gt;
05/19/2015 Payment by nkennedy (Credit card #411111xxxxxx1111)&lt;br /&gt;
  10.00 refunded on 05/19/2015&lt;br /&gt;
  15.21 applied to Invoice #228 (05/19/15)&lt;br /&gt;
(view receipt) (refund) (void) (unapply)  - $25.21   $0.00&lt;br /&gt;
05/19/2015 Refund by nkennedy (Credit card #411111xxxxxx1111) (view receipt)    $10.00 $10.00&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To balance the invoice you can use the Enter Credit link to issue a credit that can be applied to the invoice:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Enter Credit&lt;br /&gt;
&lt;br /&gt;
Date   05/19/2015 10:03:26 AM&lt;br /&gt;
Amount $10.00&lt;br /&gt;
Reason Package Error&lt;br /&gt;
Additional info Credit for package error&lt;br /&gt;
Auto-apply to invoices yes&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When entering the credit you can select a credit reason that was previously defined at Configuration -&amp;gt; Billing -&amp;gt; Credit Reasons or you can create a reason on the fly.&lt;br /&gt;
You can also add a small note in the &amp;quot;Additional info&amp;quot; field which will print on the customers invoice.  Please keept this short as long text will get truncated on PDF invoices to prevent formatting issues.&lt;br /&gt;
&lt;br /&gt;
Once the credit is applied the customers account will be balanced out:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
05/19/2015 Invoice #228 (Balance 0.00) (void)&lt;br /&gt;
( View invoice events ) $25.21    $25.21&lt;br /&gt;
05/19/2015 Payment by nkennedy (Credit card #411111xxxxxx1111)&lt;br /&gt;
  10.00 refunded on 05/19/2015&lt;br /&gt;
  15.21 applied to Invoice #228 (05/19/15)&lt;br /&gt;
(view receipt) (refund) (void) (unapply)  - $25.21   $0.00&lt;br /&gt;
05/19/2015 Refund by nkennedy (Credit card #411111xxxxxx1111) (view receipt)    $10.00 $10.00&lt;br /&gt;
05/19/2015 Credit by nkennedy (Package Error Credit for package error) applied to Invoice #228 (05/19/15) (delete) (unapply) (void)   - $10.00  $0.00&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you need to have taxes calculated as part of the refund you can start with issuing a credit using the Credit line items link.  This will allow you to select the line item on the invoice and enter the amount to credit that entry.&lt;br /&gt;
Follow the rest of the instructions for re-applying the payment to the invoice and the left over balance is the amount you need to use after following the refund link on the payment.&lt;br /&gt;
&lt;br /&gt;
== Commissions ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- Superseded by Commissions below... * Setting up [[Freeside:1.9:Documentation:Administration:Referral credits|Referral credits]] --&amp;gt;&lt;br /&gt;
* Setting up [[Freeside:3:Documentation:Administration:Commission|Commissions and Referrals]]&lt;br /&gt;
&lt;br /&gt;
== VoIP ==&lt;br /&gt;
&lt;br /&gt;
* Setting up [[Freeside:3:Documentation:Administration:VoIP | VoIP]]&lt;br /&gt;
* [[Simple Bulk DID Orders]]&lt;br /&gt;
* [[Bulk DID Orders]]&lt;br /&gt;
* [[Freeside:3:Documentation:Administration:VoIP:e911|e911 Providers]]&lt;br /&gt;
&lt;br /&gt;
== RADIUS ==&lt;br /&gt;
&lt;br /&gt;
* Setting up [[Freeside:3.0:Documentation:Administration:FreeRadius | FreeRadius]]&lt;br /&gt;
&lt;br /&gt;
== Torrus Network monitoring ==&lt;br /&gt;
&lt;br /&gt;
* [[Freeside:3:Documentation:Torrus_Installation | Installation]]&lt;br /&gt;
* [[Freeside:3:Documentation:Torrus_Administration | Administration]]&lt;br /&gt;
&lt;br /&gt;
== Old / uncommon ==&lt;br /&gt;
&lt;br /&gt;
* Setting up [[Freeside:3:Documentation:Administration:Time billing | Time billing]]&lt;br /&gt;
* Using a non-standard [[Freeside:3:Documentation:Administration:PostgreSQL_Schema | PostgreSQL Schema]]&lt;br /&gt;
* Setting up [[Freeside:3:Documentation:Administration:Slony | Slony replication and failover]] (old - PostgreSQL native replication is a more current solution)&lt;br /&gt;
&lt;br /&gt;
{{ContextSensitiveHelp}}&lt;/div&gt;</summary>
		<author><name>NathanK</name></author>	</entry>

	<entry>
		<id>https://secure.freeside.biz/mediawiki/index.php?title=Freeside:3:Documentation:Administration&amp;diff=9528</id>
		<title>Freeside:3:Documentation:Administration</title>
		<link rel="alternate" type="text/html" href="https://secure.freeside.biz/mediawiki/index.php?title=Freeside:3:Documentation:Administration&amp;diff=9528"/>
				<updated>2015-12-27T20:26:22Z</updated>
		
		<summary type="html">&lt;p&gt;NathanK: /* Resellers */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Exports (provisioning) =&lt;br /&gt;
&lt;br /&gt;
'''Exports''' allow you to provision services to remote machines, databases and APIs.  Some exports, such as ''sqlradius'' and ''sqlradius_withdomain'',  enable a feed for retrieving rating/usage data.&lt;br /&gt;
&lt;br /&gt;
Exports can be added and edited under&lt;br /&gt;
: Configuration -&amp;gt; Provisioning, services and packages -&amp;gt; View/edit exports&lt;br /&gt;
&lt;br /&gt;
Most exports place jobs in the job queue for new, modified or deleted services.  Jobs are run by [[Freeside:3:Documentation:Developer/bin/freeside-queued|freeside-queued]].  This daemon needs to be running before exports are acted upon.&lt;br /&gt;
&lt;br /&gt;
Some exports use SSH, SCP or SFTP to communicate with external machines.  See the documentation on [[Freeside:3:Documentation:Administration:SSH_Keys|SSH keys]].&lt;br /&gt;
&lt;br /&gt;
Click on ''Add a new export'' to create a new export.  Select exports from the dropdown to show more information on each export, including available options, setup and usage.&lt;br /&gt;
&lt;br /&gt;
Exports are activated by associating them with one or more '''service definitions'''.&lt;br /&gt;
&lt;br /&gt;
Following is a list of which exports can be associated with each type of service.&lt;br /&gt;
&lt;br /&gt;
==svc_acct==&lt;br /&gt;
* [[Freeside:3:Documentation:Administration:acct_plesk.pm|acct_plesk.pm]]:  Real-time export to Plesk managed mail service&lt;br /&gt;
* acct_sql.pm:  Real-time export of accounts to SQL databases .&lt;br /&gt;
* artera_turbo.pm: &lt;br /&gt;
* bsdshell.pm: &lt;br /&gt;
* [[Freeside:3:Documentation:Administration:communigate_pro.pm|communigate_pro.pm]]:  Real-time export to a CommuniGate Pro mail server&lt;br /&gt;
* communigate_pro_singledomain.pm: &lt;br /&gt;
* cpanel.pm:  Real-time export to Cpanel control panel.&lt;br /&gt;
* cp.pm:  Real-time export to Critical Path Account Provisioning Protocol&lt;br /&gt;
* cyrus.pm:  Real-time export to Cyrus IMAP server&lt;br /&gt;
* everyone_net.pm:  Real-time export to Everyone.net outsourced mail service&lt;br /&gt;
* infostreet.pm:  Real-time export to InfoStreet streetSmartAPI&lt;br /&gt;
* [[Freeside:3:Documentation:Administration:ldap.pm|ldap.pm]]:  Real-time export to LDAP&lt;br /&gt;
* passwdfile.pm:&lt;br /&gt;
* radiator.pm:  Real-time export to RADIATOR&lt;br /&gt;
* shellcommands.pm: &lt;br /&gt;
* shellcommands_withdomain.pm:  Real-time export via remote SSH (vpopmail, ISPMan)&lt;br /&gt;
* sqlmail.pm:  Real-time export to SQL-backed mail server&lt;br /&gt;
* sqlradius.pm:  Real-time export to SQL-backed RADIUS (FreeRADIUS, ICRADIUS)&lt;br /&gt;
* sqlradius_withdomain.pm:  Real-time export to SQL-backed RADIUS (FreeRADIUS, ICRADIUS) with realms&lt;br /&gt;
* sysvshell.pm: &lt;br /&gt;
* textradius.pm: &lt;br /&gt;
* vpopmail.pm:  Real-time export to vpopmail text files&lt;br /&gt;
&lt;br /&gt;
==svc_domain==&lt;br /&gt;
* bind.pm:  Batch export to BIND named&lt;br /&gt;
* bind_slave.pm: Batch export to slave BIND named&lt;br /&gt;
* [[Freeside:3:Documentation:Administration:communigate_pro.pm|communigate_pro.pm]]:  Real-time export to a CommuniGate Pro mail server&lt;br /&gt;
* domain_shellcommands.pm:  Run remote commands via SSH, for domains (qmail, ISPMan).&lt;br /&gt;
* domain_sql.pm:  Real time export of domains to SQL databases .&lt;br /&gt;
* http.pm:  Send an HTTP or HTTPS GET or POST request&lt;br /&gt;
* [[Freeside:3:Documentation:Administration:opensrs.pm|opensrs.pm]]: OpenSRS integration&lt;br /&gt;
* sqlmail.pm:  Real-time export to SQL-backed mail server&lt;br /&gt;
&lt;br /&gt;
==svc_forward==&lt;br /&gt;
* artera_turbo.pm: &lt;br /&gt;
* [[Freeside:3:Documentation:Administration:communigate_pro.pm|communigate_pro.pm]]:  Real-time export to a CommuniGate Pro mail server&lt;br /&gt;
* forward_shellcommands.pm:  Run remote commands via SSH, for forwards&lt;br /&gt;
* postfix.pm:  Postfix text files&lt;br /&gt;
* sqlmail.pm:  Real-time export to SQL-backed mail server&lt;br /&gt;
&lt;br /&gt;
==svc_www==&lt;br /&gt;
* apache.pm:  Export an Apache httpd.conf file snippet.&lt;br /&gt;
* [[Freeside:3:Documentation:Administration:www_plesk.pm|www_plesk.pm]]:  Real-time export to Plesk managed hosting service&lt;br /&gt;
* www_shellcommands.pm:  Run remote commands via SSH, for virtual web sites (directory maintenance, FrontPage, ISPMan)&lt;br /&gt;
&lt;br /&gt;
==svc_broadband==&lt;br /&gt;
* nas_wrapper.pm:  A meta-export that triggers other svc_broadband exports.&lt;br /&gt;
* [[Freeside:3:Documentation:Administration:prizm.pm|prizm.pm]]:  Real-time export to Northbound Interface&lt;br /&gt;
* router.pm:  Send a command to a router.&lt;br /&gt;
* snmp.pm:  Sends SNMP SETs to an SNMP agent.&lt;br /&gt;
* trango.pm:  Sends SNMP SETs to a Trango AP.&lt;br /&gt;
&lt;br /&gt;
==svc_phone==&lt;br /&gt;
* globalpops_voip.pm:&lt;br /&gt;
* grandstream.pm: Grandstream phone and ATA provisioning.   This [http://www.freeside.biz/blog/?p=11 blog article] is a start at documentation.&lt;br /&gt;
* indosoft.pm:&lt;br /&gt;
* internal_diddb.pm:&lt;br /&gt;
* netsapiens.pm:&lt;br /&gt;
* phone_shellcommands.pm:&lt;br /&gt;
* phone_sqlradius.pm:&lt;br /&gt;
* thirdlane.pm:&lt;br /&gt;
* [[Freeside:Documentation:Administration:vitelity.pm|vitelity.pm]]: Vitelity provisioning&lt;br /&gt;
&lt;br /&gt;
==svc_external==&lt;br /&gt;
* artera_turbo.pm:&lt;br /&gt;
&lt;br /&gt;
==svc_dsl==&lt;br /&gt;
* ikano.pm: see [[Freeside:3:Documentation:Administration:svc_dsl:ikano|Ikano DSL provisioning and qualifications]]&lt;br /&gt;
&lt;br /&gt;
= Services =&lt;br /&gt;
&lt;br /&gt;
== Generic ==&lt;br /&gt;
&lt;br /&gt;
=== Accounts (svc_acct) ===&lt;br /&gt;
&lt;br /&gt;
Accounts - anything with a username (mailbox, shell, RADIUS, etc.)&lt;br /&gt;
&lt;br /&gt;
* [[Freeside:3:Documentation:Administration:svc_acct:_password_encoding|Password encoding]]&lt;br /&gt;
&lt;br /&gt;
=== Hardware (svc_hardware) ===&lt;br /&gt;
&lt;br /&gt;
Equipment supplied to customers&lt;br /&gt;
&lt;br /&gt;
=== External (svc_external) ===&lt;br /&gt;
&lt;br /&gt;
Externally-tracked service&lt;br /&gt;
&lt;br /&gt;
== Access ==&lt;br /&gt;
&lt;br /&gt;
=== DSL (svc_dsl) ===&lt;br /&gt;
&lt;br /&gt;
* [[Freeside:3:Documentation:Administration:svc_dsl:ikano|Ikano DSL provisioning and qualifications]]&lt;br /&gt;
&lt;br /&gt;
=== Broadband (svc_broadband) ===&lt;br /&gt;
&lt;br /&gt;
Fixed wireless broadband&lt;br /&gt;
&lt;br /&gt;
=== Cable (svc_cable) ===&lt;br /&gt;
&lt;br /&gt;
=== DISH Network (svc_dish) ===&lt;br /&gt;
&lt;br /&gt;
== Telephony ==&lt;br /&gt;
&lt;br /&gt;
=== Customer phone number / DID (svc_phone) ===&lt;br /&gt;
&lt;br /&gt;
* [[Freeside:Documentation:Administration:Phone devices|Phone devices]]&lt;br /&gt;
&lt;br /&gt;
=== Customer PBX (svc_pbx) ===&lt;br /&gt;
&lt;br /&gt;
=== Phone circuit (svc_circuit) ===&lt;br /&gt;
&lt;br /&gt;
== Hosting ==&lt;br /&gt;
&lt;br /&gt;
=== Domains (svc_domain) ===&lt;br /&gt;
&lt;br /&gt;
=== Certificate (svc_cert) ===&lt;br /&gt;
&lt;br /&gt;
=== Forwards (svc_forward) ===&lt;br /&gt;
&lt;br /&gt;
=== Mailing list (svc_mailinglist)  ===&lt;br /&gt;
&lt;br /&gt;
=== Site hosting (svc_www) ===&lt;br /&gt;
&lt;br /&gt;
== Colocation ==&lt;br /&gt;
&lt;br /&gt;
=== Customer router/switch port (svc_port) ===&lt;br /&gt;
&lt;br /&gt;
= Packages =&lt;br /&gt;
&lt;br /&gt;
{{Freeside:3:Documentation:Administration:pkg_category}}&lt;br /&gt;
&lt;br /&gt;
== Price Plans ==&lt;br /&gt;
&lt;br /&gt;
=== Common price plans ===&lt;br /&gt;
&lt;br /&gt;
* flat&lt;br /&gt;
* subscription&lt;br /&gt;
* prorate&lt;br /&gt;
* sqlradacct_hour&lt;br /&gt;
* [[voip_cdr]]&lt;br /&gt;
* prepaid&lt;br /&gt;
&lt;br /&gt;
=== Wholesale price plans ===&lt;br /&gt;
&lt;br /&gt;
* bulk&lt;br /&gt;
&lt;br /&gt;
* [[Freeside:3:Documentation:Administration:Packages:Price_Plans:agent | agent]]&lt;br /&gt;
* [[Freeside:3:Documentation:Administration:Packages:Price_Plans:cdr_termination |&lt;br /&gt;
 cdr_termination ]]&lt;br /&gt;
&lt;br /&gt;
=== Other price plans ===&lt;br /&gt;
&lt;br /&gt;
* flat_delayed&lt;br /&gt;
* flat_introrate&lt;br /&gt;
* prorate_delayed&lt;br /&gt;
&lt;br /&gt;
* base_delayed&lt;br /&gt;
* base_rate&lt;br /&gt;
&lt;br /&gt;
* sql_external&lt;br /&gt;
* sql_generic&lt;br /&gt;
&lt;br /&gt;
=== Price plans of questionable functionality ===&lt;br /&gt;
&lt;br /&gt;
* flat_comission_cust&lt;br /&gt;
* flat_comission_pkg&lt;br /&gt;
* flat_comission&lt;br /&gt;
&lt;br /&gt;
* voip_sqlradacct&lt;br /&gt;
&lt;br /&gt;
* sesmon_hour&lt;br /&gt;
* sesmon_minute&lt;br /&gt;
&lt;br /&gt;
== Misc ==&lt;br /&gt;
&lt;br /&gt;
* Some notes on [[Freeside:3:Documentation:Administration:Upselling | Upselling]]&lt;br /&gt;
&lt;br /&gt;
= Resellers =&lt;br /&gt;
&lt;br /&gt;
=== Wholesaler configuraiton ===&lt;br /&gt;
[[Freeside:3:Documentation:Administration:Wholesaler|Using agents for setting up Wholesalers]]&lt;br /&gt;
&lt;br /&gt;
= Employees =&lt;br /&gt;
&lt;br /&gt;
== Employees ==&lt;br /&gt;
&lt;br /&gt;
Go to Configuration -&amp;gt; Employees -&amp;gt; Employees to view the existing employees and add new ones.  It is highly recommended to add a separate account for each person rather than using role accounts.&lt;br /&gt;
&lt;br /&gt;
* To add a new employee, click on &amp;quot;Add an employee&amp;quot;&lt;br /&gt;
* Or to edit an existing group, click on the employee number or name in the list of employees.&lt;br /&gt;
* Enter or edit the username, password and name.  If editing an existing employee and no password change is desired, the password fields can be left blank.&lt;br /&gt;
* Check the &amp;quot;Disable employee&amp;quot; box to disable this employee.&lt;br /&gt;
* In the &amp;quot;Employee groups&amp;quot; section, mark or unmark checkboxes to indicate the access groups for this employee.&lt;br /&gt;
&lt;br /&gt;
== Employee groups and access control == &lt;br /&gt;
&lt;br /&gt;
To setup employee access control or agent/reseller virtualization, you need to setup employee groups.  Go to Configuration -&amp;gt; Employees -&amp;gt; Employee groups to view the existing groups and add new ones.  The system starts with a &amp;quot;Superuser&amp;quot; group which has access to all functionality for the first agent.&lt;br /&gt;
&lt;br /&gt;
* To add a new group, click on &amp;quot;Add an employee group&amp;quot;&lt;br /&gt;
* Or to edit an existing group, click on the group number or name in the list of groups.&lt;br /&gt;
* Enter or edit the group name.&lt;br /&gt;
* In the &amp;quot;Group limited to these agent(s)&amp;quot; section, mark checkboxes next to the agents this employee group should be able to see.  Employees in this group will only see customers of the selected agents in the system and reports.&lt;br /&gt;
* In the &amp;quot;Group access rights&amp;quot; section, mark or unmark checkboxes to indicate the access rights this employee group should have.  Rights marked with an &amp;quot;*&amp;quot; are global rights which provide access to global data which is shared among all agents. Their use is not recommended for groups which are limited to a subset of agents.&lt;br /&gt;
* After adding a new group, don't forget to go back and add or edit employees to place them into the new group.&lt;br /&gt;
&lt;br /&gt;
= Installers / Appointments =&lt;br /&gt;
&lt;br /&gt;
== Installers ==&lt;br /&gt;
&lt;br /&gt;
* Designate some employees as installers (Configuration -&amp;gt; Employees -&amp;gt; Employees)&lt;br /&gt;
* Edit their schedules (Configuration -&amp;gt; Employees -&amp;gt; Installer availability)&lt;br /&gt;
&lt;br /&gt;
== Ticketing ==&lt;br /&gt;
&lt;br /&gt;
* Setup a queue for appointments (installations, removals, etc.), or use existing per agent queues&lt;br /&gt;
* Make sure the installer employees can own / see / edit tickets in this&lt;br /&gt;
queue (add them to a ticketing group with OwnTicket / SeeQueue on that queue or global, etc.)&lt;br /&gt;
* not yet &amp;lt;strike&amp;gt;XXX future todo some sort of ill-defined thing with configuring a custom field to designate install / recall / service call / removal&amp;lt;/strike&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Packages ==&lt;br /&gt;
&lt;br /&gt;
not yet; package(+location)-specific appointments are a future TODO&lt;br /&gt;
&amp;lt;strike&amp;gt;&lt;br /&gt;
* Setup a package category for packages that can schedule appointments&lt;br /&gt;
* In the package category, select a queue for appointments or pick &amp;quot;Agent-specific queue&amp;quot;&lt;br /&gt;
&amp;lt;/strike&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Employee rights ==&lt;br /&gt;
&lt;br /&gt;
* Upgrade should do this / should be available in a default install, but may not be implemented yet&lt;br /&gt;
* Give one or more employee groups &amp;quot;View appointments&amp;quot; and &amp;quot;Make appointment&amp;quot; (in Customer package rights)&lt;br /&gt;
&lt;br /&gt;
= Billing =&lt;br /&gt;
&lt;br /&gt;
== Billing events ==&lt;br /&gt;
Billing events are the primary mechanism to implement your business rules.  Rules such as resend invoices, retry cards, suspend or cancel accounts for non-payment, etc. are all handled by billing events.&lt;br /&gt;
&lt;br /&gt;
At a high level, follow the following steps to create billing events:&lt;br /&gt;
* Add a new Billing Event (Configuration &amp;gt; Billing &amp;gt; Billing events)&lt;br /&gt;
* Name the event&lt;br /&gt;
* Choose the type of event:&lt;br /&gt;
** Package - Packages and associated dates (Including Commissions)&lt;br /&gt;
** Invoice - Invoice status and dates&lt;br /&gt;
** Customer - Customer Balances and Information&lt;br /&gt;
** Batch Payment - Batch payment results&lt;br /&gt;
** Statement - Send statement &lt;br /&gt;
* Choose whether to apply to one or all agents&lt;br /&gt;
* Choose the frequency for the system to check and see if the event should run.&lt;br /&gt;
* Choose appropriate filters.  &lt;br /&gt;
* Choose appropriate actions.&lt;br /&gt;
&lt;br /&gt;
The form is dynamic so changing the type of event will change the available filters and actions.&lt;br /&gt;
&lt;br /&gt;
== Daily and Monthly Scripts ==&lt;br /&gt;
* The freeside-daily script should be run daily to bill customers and run invoice collection events.&lt;br /&gt;
** Typically, this is accomplished with an entry in the freeside user's crontab such as: &amp;lt;pre&amp;gt;0 0 * * * /usr/local/bin/freeside-daily&amp;lt;/pre&amp;gt;&lt;br /&gt;
** If running freeside-daily manually, ensure the &amp;lt;code&amp;gt;TZ&amp;lt;/code&amp;gt; variable is set to your timezone with a command such as: &amp;lt;pre&amp;gt;TZ=&amp;quot;US/Pacific&amp;quot; freeside-daily fs_daily&amp;lt;/pre&amp;gt;&lt;br /&gt;
* If any monthly events are enabled, the freeside-monthly script should be run monthly.&lt;br /&gt;
* Invoice events can also be used to implement agent-virtualized invoices. (add more info)&lt;br /&gt;
* Be sure to include the full path of freeside-daily in your cron job.&lt;br /&gt;
&lt;br /&gt;
== Invoices ==&lt;br /&gt;
&lt;br /&gt;
=== Typeset (LaTeX) invoice templates ===&lt;br /&gt;
&lt;br /&gt;
==== Prerequisites ====&lt;br /&gt;
&lt;br /&gt;
* Almost all distributions include the necessary prerequisites listed here, manual installation is practically never necessary.&lt;br /&gt;
* Install [http://www.ghostscript.com/ Ghostscript] (gs)&lt;br /&gt;
* Install [http://www.tug.org/tetex/ teTeX] or [http://www.tug.org/texlive/ TeX Live]&lt;br /&gt;
* Ensure that the &amp;lt;code&amp;gt;pslatex&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;dvips&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;pdflatex&amp;lt;/code&amp;gt; command line utilities were installed&lt;br /&gt;
&lt;br /&gt;
==== Logo setup ====&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;em title=&amp;quot;Encapsulated Postscript&amp;quot;&amp;gt;EPS&amp;lt;/em&amp;gt; logo is for PDF and printed invoices.&lt;br /&gt;
&lt;br /&gt;
* For best results, save a '''vector format''' logo in EPS (Encapsulated PostScript) format.  &lt;br /&gt;
** Your graphic artist can create vector image from a bitmap (tracing etc).&lt;br /&gt;
** Converting a bitmap such as a JPG can work (the bigger the better), but it may render in lower quality, blurry or with the &amp;quot;jaggies&amp;quot; (especially when actually printed, not just viewed as a PDF)&lt;br /&gt;
* Resize the logo to 90pt X 36pt: &amp;lt;code&amp;gt;epsffit -c 0 0 90 36 yourlogo.eps &amp;gt;logo.eps&amp;lt;/code&amp;gt;&lt;br /&gt;
** (&amp;quot;no %%BoundingBox:&amp;quot; error?  Fix with eps2eps)&lt;br /&gt;
* Upload the resized logo as the &amp;lt;code&amp;gt;logo.eps&amp;lt;/code&amp;gt; configuration option.&lt;br /&gt;
* Problems?  Try &amp;lt;code&amp;gt;bin/strip-eps &amp;lt;oldlogo.eps &amp;gt;trynewlogo.eps&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;em title=&amp;quot;Portable Network Graphic&amp;quot;&amp;gt;PNG&amp;lt;/em&amp;gt; logo is for emailed and online invoices.&lt;br /&gt;
&lt;br /&gt;
Freeside ships with a logo of 92 x 62.  Any logo close to this size should work with the default HTML template.&lt;br /&gt;
&lt;br /&gt;
{{Freeside:3:Documentation:Administration:invoice_layout}}&lt;br /&gt;
&lt;br /&gt;
=== HTML invoice templates ===&lt;br /&gt;
&lt;br /&gt;
* Convert your logo to PNG format and upload it as the &amp;lt;code&amp;gt;logo.png&amp;lt;/code&amp;gt; configuration option. &lt;br /&gt;
{{Freeside:3:Documentation:Administration:invoice_templates|format=html}}&lt;br /&gt;
&lt;br /&gt;
=== Plaintext invoice templates ===&lt;br /&gt;
&lt;br /&gt;
* See the Text::Template documentation for details on the substitution language.&lt;br /&gt;
* You must call the invoice_lines() function at least once - pass it a number of lines, and it returns a list of array references, each of two elements: a service description column, and a price column. Alternatively, call invoice_lines() with no arguments, and pagination will be disabled - all invoice line items will print on one page, with no padding (recommended for email invoices).&lt;br /&gt;
* Descriptions of variables are available in [[Freeside:3:Documentation:Template:invoice_html|invoice_html]]&lt;br /&gt;
&lt;br /&gt;
=== Misc ===&lt;br /&gt;
&lt;br /&gt;
==== Manually setting next customer number sequence ====&lt;br /&gt;
&lt;br /&gt;
* With PostgreSQL, to number customers starting at 5000: &amp;lt;pre&amp;gt;SELECT SETVAL(pg_get_serial_sequence('cust_main', 'custnum'), 4999);&amp;lt;/pre&amp;gt;&lt;br /&gt;
* With MySQL, to number customers starting at 5000: &amp;lt;pre&amp;gt;ALTER TABLE cust_main AUTO_INCREMENT = 5000;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Manually setting next invoice number sequence ====&lt;br /&gt;
&lt;br /&gt;
* With PostgreSQL, to number invoices starting at 5000: &amp;lt;pre&amp;gt;SELECT SETVAL(pg_get_serial_sequence('cust_bill', 'invnum'), 4999);&amp;lt;/pre&amp;gt;&lt;br /&gt;
* With MySQL, to number invoices starting at 5000: &amp;lt;pre&amp;gt;ALTER TABLE cust_bill AUTO_INCREMENT = 5000;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Taxes == &lt;br /&gt;
&lt;br /&gt;
[[Freeside:3:Documentation:Administration:Tax_Districts | District based taxes]]&lt;br /&gt;
&lt;br /&gt;
== Payment Receipts ==&lt;br /&gt;
&lt;br /&gt;
The [[Freeside:3:Documentation:Template:payment_receipt_email|payment_receipt_email]] template is used for manually applied payments.&lt;br /&gt;
&lt;br /&gt;
== Credit cards and Electronic checks ==&lt;br /&gt;
* [[Freeside:3:Documentation:Administration:Real-time_Processing | Real-time credit card and electronic check processing]]&lt;br /&gt;
* [[Freeside:3:Documentation:Administration:Batch_Processing | Batch credit card and electronic check processing]]&lt;br /&gt;
* Credit card expiration alerts: Customize the ''alerter_template'' configuration option and run &amp;lt;code&amp;gt;freeside-expiration-alerter&amp;lt;/code&amp;gt; daily.&lt;br /&gt;
* Credit card decline alerts: Customize the ''declinetemplate'' configuration option and set the ''emaildecline'' configuration option.&lt;br /&gt;
&lt;br /&gt;
= Misc =&lt;br /&gt;
&lt;br /&gt;
These things should probably find a home properly filed in a section above.&lt;br /&gt;
&lt;br /&gt;
== Invoicing and Payments ==&lt;br /&gt;
&lt;br /&gt;
* Setting up [[Freeside:3:Documentation:Administration:Encrypted Credit Cards | Encrypted Credit Cards]] (default in new installs, highly recommended for older installs upgrading)&lt;br /&gt;
* Setting up [[Freeside:3:Documentation:Administration:Texas Tax | Texas Tax]]&lt;br /&gt;
* Need to print to Windows printers, and the PDF spool is not for you?  Follow steps 1-4 of  [http://iharder.sourceforge.net/current/macosx/winmacprinter/ Share Your Windows Printer].&lt;br /&gt;
&lt;br /&gt;
== Commissions ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- Superseded by Commissions below... * Setting up [[Freeside:1.9:Documentation:Administration:Referral credits|Referral credits]] --&amp;gt;&lt;br /&gt;
* Setting up [[Freeside:3:Documentation:Administration:Commission|Commissions and Referrals]]&lt;br /&gt;
&lt;br /&gt;
== VoIP ==&lt;br /&gt;
&lt;br /&gt;
* Setting up [[Freeside:3:Documentation:Administration:VoIP | VoIP]]&lt;br /&gt;
* [[Simple Bulk DID Orders]]&lt;br /&gt;
* [[Bulk DID Orders]]&lt;br /&gt;
* [[Freeside:3:Documentation:Administration:VoIP:e911|e911 Providers]]&lt;br /&gt;
&lt;br /&gt;
== RADIUS ==&lt;br /&gt;
&lt;br /&gt;
* Setting up [[Freeside:3.0:Documentation:Administration:FreeRadius | FreeRadius]]&lt;br /&gt;
&lt;br /&gt;
== Torrus Network monitoring ==&lt;br /&gt;
&lt;br /&gt;
* [[Freeside:3:Documentation:Torrus_Installation | Installation]]&lt;br /&gt;
* [[Freeside:3:Documentation:Torrus_Administration | Administration]]&lt;br /&gt;
&lt;br /&gt;
== Old / uncommon ==&lt;br /&gt;
&lt;br /&gt;
* Setting up [[Freeside:3:Documentation:Administration:Time billing | Time billing]]&lt;br /&gt;
* Using a non-standard [[Freeside:3:Documentation:Administration:PostgreSQL_Schema | PostgreSQL Schema]]&lt;br /&gt;
* Setting up [[Freeside:3:Documentation:Administration:Slony | Slony replication and failover]] (old - PostgreSQL native replication is a more current solution)&lt;br /&gt;
&lt;br /&gt;
{{ContextSensitiveHelp}}&lt;/div&gt;</summary>
		<author><name>NathanK</name></author>	</entry>

	<entry>
		<id>https://secure.freeside.biz/mediawiki/index.php?title=Freeside:3:Documentation:Administration:Wholesaler&amp;diff=9527</id>
		<title>Freeside:3:Documentation:Administration:Wholesaler</title>
		<link rel="alternate" type="text/html" href="https://secure.freeside.biz/mediawiki/index.php?title=Freeside:3:Documentation:Administration:Wholesaler&amp;diff=9527"/>
				<updated>2015-12-27T20:23:19Z</updated>
		
		<summary type="html">&lt;p&gt;NathanK: /* Using agents for setting up Wholesalers */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
== Using agents for setting up Wholesalers ==&lt;br /&gt;
&lt;br /&gt;
You can allow Wholesalers to manage their customers, resell your packages and perform all of their billing using your Freeside server.  The following guide will help you setup your agents for this purpose.  You will need to setup packages that use the wholesale price plans before you can bill your wholesalers.&lt;br /&gt;
&lt;br /&gt;
*Create Master Customer:&lt;br /&gt;
&lt;br /&gt;
#Follow the New customer link on the main menu bar&lt;br /&gt;
#Fill out the appropriate information for the customer and click the add customer button&lt;br /&gt;
#When the new customer is displayed follow the link for the Packages tab&lt;br /&gt;
#Order the appropriate Wholesale Billing packages for the customer (these packages are what &lt;br /&gt;
bills the Wholesaler for their customers packages).&lt;br /&gt;
&lt;br /&gt;
*Create the Agent Type:&lt;br /&gt;
&lt;br /&gt;
#Go to Configuration -&amp;gt; Companies -&amp;gt; Agent Types&lt;br /&gt;
#Follow the link labeled &amp;quot;Add a new agent type&amp;quot;&lt;br /&gt;
#Put the Agents name in the &amp;quot;Agent Type&amp;quot; field&lt;br /&gt;
#Select the packages that this Wholesaler will be allowed to order&lt;br /&gt;
#Click the Add agent type button&lt;br /&gt;
&lt;br /&gt;
*Create the Wholesale Agent:&lt;br /&gt;
&lt;br /&gt;
#Go to Configuration -&amp;gt; Companies -&amp;gt; Agents&lt;br /&gt;
#Follow the link labeled &amp;quot;Add a new agent&amp;quot;&lt;br /&gt;
#Enter the name for the Agent in the Agent Field&lt;br /&gt;
#Select the Agent type you created earlier&lt;br /&gt;
#Enter the customer number or name from the customer you created earlier in the Master Custoemr field&lt;br /&gt;
#Select the Superuser item from the Access Groups&lt;br /&gt;
#Click on the Add agent button&lt;br /&gt;
&lt;br /&gt;
*Congigure the Agents settings:&lt;br /&gt;
&lt;br /&gt;
#Go to Configuration -&amp;gt; Companies -&amp;gt; Agents&lt;br /&gt;
#Follow the link labeled (view/add/edit overrides) on the right hand side of the new agent&lt;br /&gt;
#Change the invoice_from, company_name, company_address, logo.eps, logo.png and any other &lt;br /&gt;
setting overrides to make sure everything is branded properly for your Wholesaler (to change&lt;br /&gt;
the value of a setting follow the link for the name of the setting and it will open a popup&lt;br /&gt;
window for you)&lt;br /&gt;
&lt;br /&gt;
*Add Employee Group and Employee:&lt;br /&gt;
&lt;br /&gt;
#Go to Configuration -&amp;gt; Employees -&amp;gt; Employee groups&lt;br /&gt;
#Follow the link labeled &amp;quot;Add an employee group&amp;quot;&lt;br /&gt;
#Enter the same name you used for the Agent name in the Group name field&lt;br /&gt;
#Select the new agent from the list of Agents (Do not select any other permissions)&lt;br /&gt;
#Click the Add Employee Group button&lt;br /&gt;
#Go to Configuration -&amp;gt; Employees -&amp;gt; Employees&lt;br /&gt;
#Follow the link labeled &amp;quot;Add an employee&amp;quot;&lt;br /&gt;
#Enter the Username, Password twice, Last name and First name&lt;br /&gt;
#Choose the Agent group created earlier and the Manager Group&lt;br /&gt;
#Click the Add Employee button&lt;br /&gt;
&lt;br /&gt;
The username and password for this employee will be what the Wholesaler will use to log into&lt;br /&gt;
Freeside.&lt;/div&gt;</summary>
		<author><name>NathanK</name></author>	</entry>

	<entry>
		<id>https://secure.freeside.biz/mediawiki/index.php?title=Freeside:3:Documentation:Administration:Wholesaler&amp;diff=9526</id>
		<title>Freeside:3:Documentation:Administration:Wholesaler</title>
		<link rel="alternate" type="text/html" href="https://secure.freeside.biz/mediawiki/index.php?title=Freeside:3:Documentation:Administration:Wholesaler&amp;diff=9526"/>
				<updated>2015-12-27T20:22:50Z</updated>
		
		<summary type="html">&lt;p&gt;NathanK: Setting up agents as wholesalers&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
== Using agents for setting up Wholesalers ==&lt;br /&gt;
&lt;br /&gt;
You can allow Wholesalers to manage their customers, resell your packages and perform all of their billing using your Freeside server.  The following guide will help you setup your agents for this purpose.  You will need to setup packages that use the wholesale price plans before you can bill your wholesalers.&lt;br /&gt;
&lt;br /&gt;
*Create Master Customer:&lt;br /&gt;
&lt;br /&gt;
#Follow the New customer link on the main menu bar&lt;br /&gt;
#Fill out the appropriate information for the customer and click the add customer button&lt;br /&gt;
#When the new customer is displayed follow the link for the Packages tab&lt;br /&gt;
#Order the appropriate Wholesale Billing packages for the customer (these packages are what &lt;br /&gt;
bills the Wholesaler for their customers packages).&lt;br /&gt;
&lt;br /&gt;
*Create the Agent Type:&lt;br /&gt;
&lt;br /&gt;
#Go to Configuration -&amp;gt; Companies -&amp;gt; Agent Types&lt;br /&gt;
#Follow the link labeled &amp;quot;Add a new agent type&amp;quot;&lt;br /&gt;
#Put the Agents name in the &amp;quot;Agent Type&amp;quot; field&lt;br /&gt;
#Select the packages that this Wholesaler will be allowed to order&lt;br /&gt;
#Click the Add agent type button&lt;br /&gt;
&lt;br /&gt;
*Create the Wholesale Agent:&lt;br /&gt;
&lt;br /&gt;
#Go to Configuration -&amp;gt; Companies -&amp;gt; Agents&lt;br /&gt;
#Follow the link labeled &amp;quot;Add a new agent&amp;quot;&lt;br /&gt;
#Enter the name for the Agent in the Agent Field&lt;br /&gt;
#Select the Agent type you created earlier&lt;br /&gt;
#Enter the customer number or name from the customer you created earlier in the Master Custoemr field&lt;br /&gt;
#Select the Superuser item from the Access Groups&lt;br /&gt;
#Click on the Add agent button&lt;br /&gt;
&lt;br /&gt;
*Congigure the Agents settings:&lt;br /&gt;
&lt;br /&gt;
#Go to Configuration -&amp;gt; Companies -&amp;gt; Agents&lt;br /&gt;
#Follow the link labeled (view/add/edit overrides) on the right hand side of the new agent&lt;br /&gt;
#Change the invoice_from, company_name, company_address, logo.eps, logo.png and any other &lt;br /&gt;
setting overrides to make sure everything is branded properly for your Wholesaler (to change&lt;br /&gt;
the value of a setting follow the link for the name of the setting and it will open a popup&lt;br /&gt;
window for you)&lt;br /&gt;
&lt;br /&gt;
*Add Employee Group and Employee:&lt;br /&gt;
&lt;br /&gt;
#Go to Configuration -&amp;gt; Employees -&amp;gt; Employee groups&lt;br /&gt;
#Follow the link labeled &amp;quot;Add an employee group&amp;quot;&lt;br /&gt;
#Enter the same name you used for the Agent name in the Group name field&lt;br /&gt;
#Select the new agent from the list of Agents&lt;br /&gt;
(Do not select any other permissions)&lt;br /&gt;
#Click the Add Employee Group button&lt;br /&gt;
#Go to Configuration -&amp;gt; Employees -&amp;gt; Employees&lt;br /&gt;
#Follow the link labeled &amp;quot;Add an employee&amp;quot;&lt;br /&gt;
#Enter the Username, Password twice, Last name and First name&lt;br /&gt;
#Choose the Agent group created earlier and the Manager Group&lt;br /&gt;
#Click the Add Employee button&lt;br /&gt;
&lt;br /&gt;
The username and password for this employee will be what the Wholesaler will use to log into&lt;br /&gt;
Freeside.&lt;/div&gt;</summary>
		<author><name>NathanK</name></author>	</entry>

	<entry>
		<id>https://secure.freeside.biz/mediawiki/index.php?title=Freeside:3:Documentation:Torrus_Administration&amp;diff=8966</id>
		<title>Freeside:3:Documentation:Torrus Administration</title>
		<link rel="alternate" type="text/html" href="https://secure.freeside.biz/mediawiki/index.php?title=Freeside:3:Documentation:Torrus_Administration&amp;diff=8966"/>
				<updated>2015-08-21T22:26:20Z</updated>
		
		<summary type="html">&lt;p&gt;NathanK: /* References */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Adding new routers =&lt;br /&gt;
&lt;br /&gt;
== Web UI ==&lt;br /&gt;
&lt;br /&gt;
* Go to Network Main -&amp;gt; Routers&lt;br /&gt;
* Click on &amp;quot;Add Router&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Manually ==&lt;br /&gt;
&lt;br /&gt;
Note: Execute these commands as the freeside user to retain correct permissions and allow the web UI to make changes.&lt;br /&gt;
&lt;br /&gt;
 cd /usr/local/etc/torrus/discovery&lt;br /&gt;
 vi routers.ddx&lt;br /&gt;
&lt;br /&gt;
Add a section like this at the bottom, just before the final &amp;lt;/snmp-discovery&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;host&amp;gt;&lt;br /&gt;
    &amp;lt;param name=&amp;quot;snmp-host&amp;quot; value=&amp;quot;204.26.60.252&amp;quot;/&amp;gt;&lt;br /&gt;
  &amp;lt;/host&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note: Execute these commands as the freeside user to retain correct permissions.&lt;br /&gt;
&lt;br /&gt;
 su - freeside&lt;br /&gt;
 cd /usr/local/etc/torrus/discovery&lt;br /&gt;
 torrus devdiscover  --in=routers.ddx&lt;br /&gt;
 torrus compile --tree=main --verbose&lt;br /&gt;
&lt;br /&gt;
= Monitoring new interfaces =&lt;br /&gt;
&lt;br /&gt;
== Torrus ==&lt;br /&gt;
&lt;br /&gt;
=== Web UI ===&lt;br /&gt;
&lt;br /&gt;
* Go to the &amp;quot;Interface traffic and error counters&amp;quot; page for an existing router.&lt;br /&gt;
* Click the &amp;quot;Monitor for Billing&amp;quot; link next to an interface.&lt;br /&gt;
&lt;br /&gt;
=== Manually ===&lt;br /&gt;
&lt;br /&gt;
 cd /usr/local/etc/torrus/discovery&lt;br /&gt;
 vi routers.ddx&lt;br /&gt;
   &amp;lt;param name=&amp;quot;RFC2863_IF_MIB::external-serviceid&amp;quot;&amp;gt;&lt;br /&gt;
     TESTING_1:TenGigabitEthernet2_1:Both:main,&lt;br /&gt;
     TESTING_2:TenGigabitEthernet2_2:Both:main,&lt;br /&gt;
   &amp;lt;/param&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note: Execute these commands as the freeside user to retain correct permissions. &lt;br /&gt;
&lt;br /&gt;
 su - freeside&lt;br /&gt;
 cd /usr/local/etc/torrus/discovery&lt;br /&gt;
 torrus devdiscover  --in=routers.ddx &lt;br /&gt;
 torrus compile --tree=main --verbose&lt;br /&gt;
&lt;br /&gt;
If you add or change interfaces on a router you need to recompile the configuration database with the following commands:&lt;br /&gt;
&lt;br /&gt;
 cd /usr/local/etc/torrus/discovery&lt;br /&gt;
 sudo -u freeside torrus devdiscover --in=routers.ddx&lt;br /&gt;
 sudo -u freeside torrus compile --tree=main --verbose&lt;br /&gt;
&lt;br /&gt;
== Freeside ==&lt;br /&gt;
&lt;br /&gt;
* Setup an svc_port service definition, include it in a package definition with &amp;quot;Bandwidth (volume)&amp;quot; or &amp;quot;Bandwidth (95th percentile)&amp;quot; price plan.&lt;br /&gt;
* Order the package for a customer, and provision the Port service.&lt;br /&gt;
* The &amp;quot;Torrus serviceid&amp;quot; dropdown will have a list of the currently monitored serviceids.&lt;br /&gt;
&lt;br /&gt;
= Virtual ports =&lt;br /&gt;
&lt;br /&gt;
* Configuration -&amp;gt; Network Monitoring -&amp;gt; View/Edit virtual ports&lt;br /&gt;
* The freeside-torrus-srvderive daemon combines virtual port data from component ports.&lt;br /&gt;
* The following delays apply:&lt;br /&gt;
** If the virtual port combines existing ports _that are already being monitored for billing_, you will be able to view bandwidth graphs within 1 hour of adding the virtual port&lt;br /&gt;
** OR, if the virtual port combines NEW ports that have not yet been monitored for billing until the current day, it will take until the next morning for bandwidth graphs to appear.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Trouble shooting =&lt;br /&gt;
&lt;br /&gt;
* If Networking main displays the text &amp;quot;Error:Error initialzing Renderer&amp;quot; this typically means that the BerkeleyDB backend for Torrus has become corrupted&lt;br /&gt;
The database can be repaired with the following procedure:&lt;br /&gt;
 /etc/init.d/freeside stop&lt;br /&gt;
 db_recover -h /var/torrus/db&lt;br /&gt;
 torrus compilexml --verbose --all&lt;br /&gt;
 /etc/init.d/freeside start&lt;br /&gt;
&lt;br /&gt;
= References =&lt;br /&gt;
&lt;br /&gt;
* [http://torrus.org/install.pod.html Torrus install]&lt;br /&gt;
* [http://torrus.org/userguide.pod.html Torrus userguide]&lt;br /&gt;
* [http://torrus.org/reporting_setup.pod.html Torrus reporting setup]&lt;br /&gt;
* [http://torrus.org/userguide.pod.html#database_lock_troubleshooting Database troubleshooting]&lt;/div&gt;</summary>
		<author><name>NathanK</name></author>	</entry>

	<entry>
		<id>https://secure.freeside.biz/mediawiki/index.php?title=Freeside:3:Documentation:Torrus_Administration&amp;diff=8965</id>
		<title>Freeside:3:Documentation:Torrus Administration</title>
		<link rel="alternate" type="text/html" href="https://secure.freeside.biz/mediawiki/index.php?title=Freeside:3:Documentation:Torrus_Administration&amp;diff=8965"/>
				<updated>2015-08-21T22:25:22Z</updated>
		
		<summary type="html">&lt;p&gt;NathanK: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Adding new routers =&lt;br /&gt;
&lt;br /&gt;
== Web UI ==&lt;br /&gt;
&lt;br /&gt;
* Go to Network Main -&amp;gt; Routers&lt;br /&gt;
* Click on &amp;quot;Add Router&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Manually ==&lt;br /&gt;
&lt;br /&gt;
Note: Execute these commands as the freeside user to retain correct permissions and allow the web UI to make changes.&lt;br /&gt;
&lt;br /&gt;
 cd /usr/local/etc/torrus/discovery&lt;br /&gt;
 vi routers.ddx&lt;br /&gt;
&lt;br /&gt;
Add a section like this at the bottom, just before the final &amp;lt;/snmp-discovery&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;host&amp;gt;&lt;br /&gt;
    &amp;lt;param name=&amp;quot;snmp-host&amp;quot; value=&amp;quot;204.26.60.252&amp;quot;/&amp;gt;&lt;br /&gt;
  &amp;lt;/host&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note: Execute these commands as the freeside user to retain correct permissions.&lt;br /&gt;
&lt;br /&gt;
 su - freeside&lt;br /&gt;
 cd /usr/local/etc/torrus/discovery&lt;br /&gt;
 torrus devdiscover  --in=routers.ddx&lt;br /&gt;
 torrus compile --tree=main --verbose&lt;br /&gt;
&lt;br /&gt;
= Monitoring new interfaces =&lt;br /&gt;
&lt;br /&gt;
== Torrus ==&lt;br /&gt;
&lt;br /&gt;
=== Web UI ===&lt;br /&gt;
&lt;br /&gt;
* Go to the &amp;quot;Interface traffic and error counters&amp;quot; page for an existing router.&lt;br /&gt;
* Click the &amp;quot;Monitor for Billing&amp;quot; link next to an interface.&lt;br /&gt;
&lt;br /&gt;
=== Manually ===&lt;br /&gt;
&lt;br /&gt;
 cd /usr/local/etc/torrus/discovery&lt;br /&gt;
 vi routers.ddx&lt;br /&gt;
   &amp;lt;param name=&amp;quot;RFC2863_IF_MIB::external-serviceid&amp;quot;&amp;gt;&lt;br /&gt;
     TESTING_1:TenGigabitEthernet2_1:Both:main,&lt;br /&gt;
     TESTING_2:TenGigabitEthernet2_2:Both:main,&lt;br /&gt;
   &amp;lt;/param&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note: Execute these commands as the freeside user to retain correct permissions. &lt;br /&gt;
&lt;br /&gt;
 su - freeside&lt;br /&gt;
 cd /usr/local/etc/torrus/discovery&lt;br /&gt;
 torrus devdiscover  --in=routers.ddx &lt;br /&gt;
 torrus compile --tree=main --verbose&lt;br /&gt;
&lt;br /&gt;
If you add or change interfaces on a router you need to recompile the configuration database with the following commands:&lt;br /&gt;
&lt;br /&gt;
 cd /usr/local/etc/torrus/discovery&lt;br /&gt;
 sudo -u freeside torrus devdiscover --in=routers.ddx&lt;br /&gt;
 sudo -u freeside torrus compile --tree=main --verbose&lt;br /&gt;
&lt;br /&gt;
== Freeside ==&lt;br /&gt;
&lt;br /&gt;
* Setup an svc_port service definition, include it in a package definition with &amp;quot;Bandwidth (volume)&amp;quot; or &amp;quot;Bandwidth (95th percentile)&amp;quot; price plan.&lt;br /&gt;
* Order the package for a customer, and provision the Port service.&lt;br /&gt;
* The &amp;quot;Torrus serviceid&amp;quot; dropdown will have a list of the currently monitored serviceids.&lt;br /&gt;
&lt;br /&gt;
= Virtual ports =&lt;br /&gt;
&lt;br /&gt;
* Configuration -&amp;gt; Network Monitoring -&amp;gt; View/Edit virtual ports&lt;br /&gt;
* The freeside-torrus-srvderive daemon combines virtual port data from component ports.&lt;br /&gt;
* The following delays apply:&lt;br /&gt;
** If the virtual port combines existing ports _that are already being monitored for billing_, you will be able to view bandwidth graphs within 1 hour of adding the virtual port&lt;br /&gt;
** OR, if the virtual port combines NEW ports that have not yet been monitored for billing until the current day, it will take until the next morning for bandwidth graphs to appear.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Trouble shooting =&lt;br /&gt;
&lt;br /&gt;
* If Networking main displays the text &amp;quot;Error:Error initialzing Renderer&amp;quot; this typically means that the BerkeleyDB backend for Torrus has become corrupted&lt;br /&gt;
The database can be repaired with the following procedure:&lt;br /&gt;
 /etc/init.d/freeside stop&lt;br /&gt;
 db_recover -h /var/torrus/db&lt;br /&gt;
 torrus compilexml --verbose --all&lt;br /&gt;
 /etc/init.d/freeside start&lt;br /&gt;
&lt;br /&gt;
= References =&lt;br /&gt;
&lt;br /&gt;
* [http://torrus.org/install.pod.html Torrus install]&lt;br /&gt;
* [http://torrus.org/userguide.pod.html Torrus userguide]&lt;br /&gt;
* [http://torrus.org/reporting_setup.pod.html Torrus reporting setup]&lt;/div&gt;</summary>
		<author><name>NathanK</name></author>	</entry>

	<entry>
		<id>https://secure.freeside.biz/mediawiki/index.php?title=Freeside:3:Documentation:Torrus_Administration&amp;diff=8914</id>
		<title>Freeside:3:Documentation:Torrus Administration</title>
		<link rel="alternate" type="text/html" href="https://secure.freeside.biz/mediawiki/index.php?title=Freeside:3:Documentation:Torrus_Administration&amp;diff=8914"/>
				<updated>2015-06-30T00:09:18Z</updated>
		
		<summary type="html">&lt;p&gt;NathanK: /* Manually */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Adding new routers =&lt;br /&gt;
&lt;br /&gt;
== Web UI ==&lt;br /&gt;
&lt;br /&gt;
* Go to Network Main -&amp;gt; Routers&lt;br /&gt;
* Click on &amp;quot;Add Router&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Manually ==&lt;br /&gt;
&lt;br /&gt;
Note: Execute these commands as the freeside user to retain correct permissions and allow the web UI to make changes.&lt;br /&gt;
&lt;br /&gt;
 cd /usr/local/etc/torrus/discovery&lt;br /&gt;
 vi routers.ddx&lt;br /&gt;
&lt;br /&gt;
Add a section like this at the bottom, just before the final &amp;lt;/snmp-discovery&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;host&amp;gt;&lt;br /&gt;
    &amp;lt;param name=&amp;quot;snmp-host&amp;quot; value=&amp;quot;204.26.60.252&amp;quot;/&amp;gt;&lt;br /&gt;
  &amp;lt;/host&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note: Execute these commands as the freeside user to retain correct permissions.&lt;br /&gt;
&lt;br /&gt;
 su - freeside&lt;br /&gt;
 cd /usr/local/etc/torrus/discovery&lt;br /&gt;
 torrus devdiscover  --in=routers.ddx&lt;br /&gt;
 torrus compile --tree=main --verbose&lt;br /&gt;
&lt;br /&gt;
= Monitoring new interfaces =&lt;br /&gt;
&lt;br /&gt;
== Torrus ==&lt;br /&gt;
&lt;br /&gt;
=== Web UI ===&lt;br /&gt;
&lt;br /&gt;
* Go to the &amp;quot;Interface traffic and error counters&amp;quot; page for an existing router.&lt;br /&gt;
* Click the &amp;quot;Monitor for Billing&amp;quot; link next to an interface.&lt;br /&gt;
&lt;br /&gt;
=== Manually ===&lt;br /&gt;
&lt;br /&gt;
 cd /usr/local/etc/torrus/discovery&lt;br /&gt;
 vi routers.ddx&lt;br /&gt;
   &amp;lt;param name=&amp;quot;RFC2863_IF_MIB::external-serviceid&amp;quot;&amp;gt;&lt;br /&gt;
     TESTING_1:TenGigabitEthernet2_1:Both:main,&lt;br /&gt;
     TESTING_2:TenGigabitEthernet2_2:Both:main,&lt;br /&gt;
   &amp;lt;/param&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note: Execute these commands as the freeside user to retain correct permissions. &lt;br /&gt;
&lt;br /&gt;
 su - freeside&lt;br /&gt;
 cd /usr/local/etc/torrus/discovery&lt;br /&gt;
 torrus devdiscover  --in=routers.ddx &lt;br /&gt;
 torrus compile --tree=main --verbose&lt;br /&gt;
&lt;br /&gt;
If you add or change interfaces on a router you need to recompile the configuration database with the following commands:&lt;br /&gt;
&lt;br /&gt;
 cd /usr/local/etc/torrus/discovery&lt;br /&gt;
 sudo -u freeside torrus devdiscover --in=routers.ddx&lt;br /&gt;
 sudo -u freeside torrus compile --tree=main --verbose&lt;br /&gt;
&lt;br /&gt;
== Freeside ==&lt;br /&gt;
&lt;br /&gt;
* Setup an svc_port service definition, include it in a package definition with &amp;quot;Bandwidth (volume)&amp;quot; or &amp;quot;Bandwidth (95th percentile)&amp;quot; price plan.&lt;br /&gt;
* Order the package for a customer, and provision the Port service.&lt;br /&gt;
* The &amp;quot;Torrus serviceid&amp;quot; dropdown will have a list of the currently monitored serviceids.&lt;br /&gt;
&lt;br /&gt;
= Virtual ports =&lt;br /&gt;
&lt;br /&gt;
* Configuration -&amp;gt; Network Monitoring -&amp;gt; View/Edit virtual ports&lt;br /&gt;
* The freeside-torrus-srvderive daemon combines virtual port data from component ports.&lt;br /&gt;
* The following delays apply:&lt;br /&gt;
** If the virtual port combines existing ports _that are already being monitored for billing_, you will be able to view bandwidth graphs within 1 hour of adding the virtual port&lt;br /&gt;
** OR, if the virtual port combines NEW ports that have not yet been monitored for billing until the current day, it will take until the next morning for bandwidth graphs to appear.&lt;br /&gt;
&lt;br /&gt;
= References =&lt;br /&gt;
&lt;br /&gt;
* [http://torrus.org/install.pod.html Torrus install]&lt;br /&gt;
* [http://torrus.org/userguide.pod.html Torrus userguide]&lt;br /&gt;
* [http://torrus.org/reporting_setup.pod.html Torrus reporting setup]&lt;/div&gt;</summary>
		<author><name>NathanK</name></author>	</entry>

	</feed>