Table of contents
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.
A new report 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.
This particular script will need to be linked into the /usr/local/omk/bin folder as that is where opReports will look for it.
Some handy commands (sudo might be required):
Update Configuration File
You will need to edit /usr/local/nmis9/conf/FtpExport.nmis and update your settings, the file looks like this:
The configuration settings are:
|ftp_server||The IP address or FQDN of the target server.|
|ftp_user||The FTP username to use.|
|ftp_password||The FTP password to use.|
|ftp_directory||Where to put the files.|
|ftp_log_directory||Where to put the FTP log files.|
The team plan to make a more general version of this feature so that when a report is generated by opReports, it can call a script at completion which can then perform any required action with those files, this could be transformations, file transfers, automated loading into a data lake, emails, etc.