Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Table of Contents

Requirement

A report was required for billing when the usage exceeded the contract, sometimes referred to as 95th percentile billing, this report will be sent to another department for use in their reporting.  This report needed to have specific columns and headings for use in that departments systems.  A new more general report was created in opReports and this report needs to be transformed and copied using SFTP to A particular report needed to take a .

Solution

Overview

A new report which was added to opReports 4.4.1 for Burst Billing Report or Bandwidth Exceeds Contract Report

...

, currently when opReports generates this report, it will look for the existence of a script called /usr/local/omk/bin/opreports-sftp.pl, if it finds this file it will execute that report to operate on the reports generated by opReports, transform them and then transfer the files as required.

Installation

The code for this solution is included in the NMIS9 contrib folder which is available in the installation or from NMIS9@GitHub, it will be in the folder nmis9/contrib/reports

...

The configuration settings are:

SettingDescription
ftp_serverThe IP address or FQDN of the target server.
ftp_userThe FTP username to use.
ftp_passwordThe FTP password to use.
ftp_directoryWhere to put the files.
ftp_log_directoryWhere to put the FTP log files.