12.9. Customizing Trisul for an OEM
If you are an OEM you can rebrand and customize the look of the product.
- Specify new product name, logo, customer name in reports, etc in oem_settings.rb
 - Design new themes
 
12.9.1 oemsettings.rb
The OEM settings file is located in usr/local/share/webtrisul/config/initializers/oem_settings.rb This is the only file you need to change.
You must restart the web server for changes made to the oem_settings.rb file to take effect
12.9.2 Fields
You may modify these fields to suit your environment.
About the OEM
| Fields | Defaults | Description | 
|---|---|---|
| OEM_NAME | Unleash Networks | Appears in the login screen and the page footer | 
| OEM_SITE | http://www.unleashnetworks.com | Link appears in the bottom of page and in the login screen | 
| OEM_TRADEMARK | Trisul® is a registered trademark of Unleash Networks | Appears in license page, and footers | 
About the product
| Fields | Defaults | Desciption | 
|---|---|---|
| PRODUCT_NAME | Trisul | The product name to be displayed in the login and in the page header. | 
| PRODUCT_NAME_FULL | Trisul Network Metering and Forensics | Carries the detailed product name which will appear in the bottom of the login screen | 
| PRODUCT_NAME_DESC | Network Metering and Forensics | Carries the product description , appears alongside the PRODUCT_NAME | 
| PRODUCT_NAME_WEB | Web Trisul | Carries the name of the web-interface present. | 
| PRODUCT_LOGO | trisul.png | Carries the product logo, appears on the login and page header and other places | 
| PRODUCT_LOGO_SMALL | trisul.png | Used mainly as a 16×16 favicon and maybe in other places. | 
Report settings
| Fields | Defaults | Description | 
|---|---|---|
| OEM_FOOTER_RHS | Generated by Trisul NSM | Carries the name to be displayed on the bottom right of the PDF | 
| CUSTOMER_FOOTER_LHS | ACME Inc | Carries the name to be displayed on the bottom left of the PDF | 
Report links
| Fields | Defaults | Description | 
|---|---|---|
| LINK_PDF | cg | Controls whether the Commonly used reports bring up a PDF directly or shows a HTML report with a Generate PDFlink. If set to cg  – User views a HTML page depicting the usage activity of the counter groupIf set to cg_pdf  – User gets a PDF report directly  ( one click link ) | 
	
Retro analysis time selector
| RETRO_TIME_RANGES | [ [‘Hours’, 86400], [‘Days’,604800 ], [‘Weeks’, 2419200]] | 
Controls the time ranges shown as a tab on top the retro analysis chart.
You can set this to an empty array if you do not want any such selection and prefer to manually enter dates.