OX-Report Client deprecated

Introduction

Generating a report every month is mandatory in order to have access to the maintenance updates available in the updates directory on software.open-xchange.com.

You have been blocked already?

Don't panic, you can still access http://software.open-xchange.com/OX6/stable, because that is open for everyone. So install the Report Client from stable instead of updates and once you're done, update to the latest version.

The Open-Xchange Report Client extension of the Open-Xchange Server enables you to generate and send usage reports of your environment to Open-Xchange. The report will contain information of how many contexts and users have been created in the given Open-Xchange environment. This article will guide you through the installation of the Open-Xchange Report Client. It describes the setup of the software extension itself, and which additional configurations need to be done to execute this extension.

You will find further information at the Open-Xchange Frequent Asked Questions (FAQ)

Installation on OX App Suite

Debian GNU/Linux 7.0

Add the following entry to /etc/apt/sources.list.d/open-xchange.list if not already present:

deb https://software.open-xchange.com/products/appsuite/stable/backend/DebianWheezy/ /

# if you have a valid maintenance subscription, please uncomment the 
# following and add the ldb account data to the url so that the most recent
# packages get installed
# deb https://[CUSTOMERID:PASSWORD]@software.open-xchange.com/products/appsuite/stable/backend/updates/DebianWheezy/ /

and run

$ apt-get update 
$ apt-get install open-xchange-report-client

Debian GNU/Linux 8.0

Add the following entry to /etc/apt/sources.list.d/open-xchange.list if not already present:

deb https://software.open-xchange.com/products/appsuite/stable/backend/DebianJessie/ /

# if you have a valid maintenance subscription, please uncomment the 
# following and add the ldb account data to the url so that the most recent
# packages get installed
# deb https://[CUSTOMERID:PASSWORD]@software.open-xchange.com/products/appsuite/stable/backend/updates/DebianJessie/ /

and run

$ apt-get update
$ apt-get install open-xchange-report-client

SUSE Linux Enterprise Server 11

Add the package repository using zypper if not already present:

$ zypper ar https://software.open-xchange.com/products/appsuite/stable/backend/SLES11 ox

If you have a valid maintenance subscription, please run the following command and add the ldb account data to the url so that the most recent packages get installed:

$ zypper ar https://[CUSTOMERID:PASSWORD]@software.open-xchange.com/products/appsuite/stable/backend/updates/SLES11 ox-updates

and run

$ zypper ref
$ zypper in open-xchange-report-client

SUSE Linux Enterprise Server 12

Add the package repository using zypper if not already present:

$ zypper ar https://software.open-xchange.com/products/appsuite/stable/backend/SLE_12 ox

If you have a valid maintenance subscription, please run the following command and add the ldb account data to the url so that the most recent packages get installed:

$ zypper ar https://[CUSTOMERID:PASSWORD]@software.open-xchange.com/appsuite/stable/backend/updates/SLES11 ox-updates

and run

$ zypper ref
$ zypper in open-xchange-report-client

RedHat Enterprise Linux 6

Start a console and create a software repository file if not already present:

$ vim /etc/yum.repos.d/ox.repo

[ox]
name=Open-Xchange
baseurl=https://software.open-xchange.com/products/appsuite/stable/backend/RHEL6/   gpgkey=https://software.open-xchange.com/oxbuildkey.pub
enabled=1
gpgcheck=1
metadata_expire=0m

# if you have a valid maintenance subscription, please uncomment the 
# following and add the ldb account data to the url so that the most recent
# packages get installed
# [ox-updates]
# name=Open-Xchange Updates
# baseurl=https://[CUSTOMERID:PASSWORD]@software.open-xchange.com/products/appsuite/stable/backend/updates/RHEL6/
# gpgkey=https://software.open-xchange.com/oxbuildkey.pub
# enabled=1
# gpgcheck=1
# metadata_expire=0m

and run

$ yum update
$ yum install open-xchange-report-client

RedHat Enterprise Linux 7

Start a console and create a software repository file if not already present:

$ vim /etc/yum.repos.d/ox.repo

[ox]
name=Open-Xchange
baseurl=https://software.open-xchange.com/products/appsuite/stable/backend/RHEL7/
gpgkey=https://software.open-xchange.com/oxbuildkey.pub
enabled=1
gpgcheck=1
metadata_expire=0m

# if you have a valid maintenance subscription, please uncomment the 
# following and add the ldb account data to the url so that the most recent
# packages get installed
# [ox-updates]
# name=Open-Xchange Updates
# baseurl=https://[CUSTOMERID:PASSWORD]@software.open-xchange.com/products/appsuite/stable/backend/RHEL7/
# gpgkey=https://software.open-xchange.com/oxbuildkey.pub
# enabled=1
# gpgcheck=1
# metadata_expire=0m

and run

$ yum update
$ yum install open-xchange-report-client

CentOS 6

Start a console and create a software repository file if not already present:

$ vim /etc/yum.repos.d/ox.repo

[ox]
name=Open-Xchange
baseurl=https://software.open-xchange.com/products/appsuite/stable/backend/RHEL6/   gpgkey=https://software.open-xchange.com/oxbuildkey.pub
enabled=1
gpgcheck=1
metadata_expire=0m

# if you have a valid maintenance subscription, please uncomment the 
# following and add the ldb account data to the url so that the most recent
# packages get installed
# [ox-updates]
# name=Open-Xchange Updates
# baseurl=https://[CUSTOMERID:PASSWORD]@software.open-xchange.com/products/appsuite/stable/backend/RHEL6/
# gpgkey=https://software.open-xchange.com/oxbuildkey.pub
# enabled=1
# gpgcheck=1
# metadata_expire=0m

and run

$ yum update
$ yum install open-xchange-report-client

CentOS 7

Start a console and create a software repository file if not already present:

$ vim /etc/yum.repos.d/ox.repo

[ox]
name=Open-Xchange
baseurl=https://software.open-xchange.com/products/appsuite/stable/backend/RHEL7/
gpgkey=https://software.open-xchange.com/oxbuildkey.pub
enabled=1
gpgcheck=1
metadata_expire=0m

# if you have a valid maintenance subscription, please uncomment the 
# following and add the ldb account data to the url so that the most recent
# packages get installed
# [ox-updates]
# name=Open-Xchange Updates
# baseurl=https://[CUSTOMERID:PASSWORD]@software.open-xchange.com/products/appsuite/stable/backend/RHEL7/
# gpgkey=https://software.open-xchange.com/oxbuildkey.pub
# enabled=1
# gpgcheck=1
# metadata_expire=0m

and run

$ yum update
$ yum install open-xchange-report-client

Configuration

A requirement to execute the Open-Xchange Report Client is to have your Open-Xchange license key stored in one specific file on your Open-Xchange installation. The latest version of our installation guide documentation will automatically enable you to store your license key on disk by using a new oxinstaller command.

If you want to use the report client on an already installed environment you need to store your license key manually on disk. To do so create and edit the following file on your Open-Xchange server:

$ vim /opt/open-xchange/etc/common/licensekeys.properties

or on 6.22 or newer

$ vim /opt/open-xchange/etc/licensekeys.properties

com.openexchange.licensekey.1=PUT\_YOUR\_OPEN-XCHANGE\_LICENSE\_KEY\_HERE

If you are behind a firewall and the report client needs to be configured using a HTTP proxy, please edit file:

$ vim /opt/open-xchange/etc/groupware/reportclient.properties

or on 6.22 or newer

$ vim /opt/open-xchange/etc/reportclient.properties

After editing this file accordingly to your proxy needs, try to start the report client again.

Using the Report tool

Now as the package has been correctly installed and you provided your license key in the according properties file your are ready to launch the report client to generate a report. By default (if no option is given) the report client will display and send the generated report to an Open-Xchange service on activation.open-xchange.com. Note that only data that is displayed in the console will be transfered to Open-Xchange

activation.open-xchange.com:443

Report kinds

In general there are two kinds of reports. Since 7.8.0 the default report has got the appsuite style format. If you would like to generate and display/save/send the formerly used style you have to add the option "-o" to every known parameter combination.

Display data usage report

$ /opt/open-xchange/sbin/report -d

If you want to know which data would be transfered, execute the report client with the option "-d" (display_only). If this option is given to the report client no data will be send:

Send data usage report

$ /opt/open-xchange/sbin/report -s

If you don't want to have the report displayed in the console (which might be the case for automated executions of the report client) execute the report client with the option -s (send_only). Now no report will be displayed after the report has been sent to activation.open-xchange.com.

Available options

$ /opt/open-xchange/sbin/report -h

lists all available options:

Usage: report 
 -h,--help                                        Prints a help text          
--environment                                     Show info about commandline environment
--nonl                                            Remove all newlines (\n) from output
--responsetimeout <responsetimeout>               response timeout in seconds for reading response from the backend (default 0s; infinite)
-H,--host <host>                                  specifies the host          
-T,--timeout <timeout>                            timeout in seconds for the connection creation to the backend (default 15s)
-J,--jmxauthuser <jmxauthuser>                    jmx username (required when jmx authentication enabled)
-P,--jmxauthpassword <jmxauthpassword>            jmx username (required when jmx authentication enabled)
-s,--sendonly                                     Send report without displaying it (Disables default)
-d,--displayonly                                  Display report without sending it (Disables default)
-c,--csv                                          Show output as CSV          
-a,--advancedreport                               Run an advanced report (could take some time with a lot of contexts)
-f,--savereport                                   Save the report as JSON String instead of sending it
-b,--showaccesscombination <showaccesscombination>  Show access combination for bitmask
-e,--run-appsuite-report                          Schedule an appsuite style report. Will print out the reports UUID or, if a report is being generated, the UUID of the pending report
-t,--report-type <report-type>                    The type of the report to run. Leave this off for the 'default' report. 'Known reports next to 'default': 'extended', 'oscs-extended' Enables additional options, as listed below (provisioning-bundels needed)
--inspect-appsuite-reports                        Prints information about currently running reports
--cancel-appsuite-reports                         Cancels pending reports     
-g,--get-appsuite-report                          Retrieve the report that was generated, can (and should) be combined with the options for sending, displaying or saving the report
-x,--run-and-deliver-report                       Create a new report and send it immediately. Note: This command will run until the report is finished, and that could take a while. Can (and should) be combined with the options for sending, displaying or saving the report 
-o,--run-and-deliver-old-report                   Run old report type. Used to have a backward compatibility.
-S,--timeframe-start <timeframe-start>            Set the starting date of the timeframe in format: dd.mm.yyyy
-E,--timeframe-end <timeframe-end>                Set the ending date of the timeframe in format: dd.mm.yyyy. If start date is set and this parameter not, the current Date is taken as timeframe end.
-R,--single-tenant <single-tenant>                OXAAS only: Run the report for a single brand, identified by the sid of the brands admin. oxaas-extended report-type only
-A,--ignore-admins                                OXAAS only: Ignore admins and dont show users of that category. oxaas-extended report-type only
-D,--drive-metrics                                OXAAS only: Get drive metrics for each user. oxaas-extended report-type only
-M,--mail-metrics                                 OXAAS only: Get mail metrics for each user. oxaas-extended report-type only

Known report types in 7.8.2

default

  • The output equals the reports in appsuite style. Additionally a beginning and ending timeframe can be set. This report type will be generated, if no other report type is set with option -t.

extended

  • The extended output adds drive metrics, client logins, quota and context metrics for each capability-set and the whole deployment.

oxaas-extended

  • This report type is only available, if the provisioning bundle is installed and active. This type adds an extended set of options and metrics to the report, which are explained later.

Explanation of the appsuite report console output

Report-type: default

This report type will be generated even without a selected type. Attention, with installed provisioning bundles the default OXAAS report will be appended.

 $ /opt/open-xchange/sbin/report -d
Starting the Open-Xchange report client. Note that the report generation may take a little while.

11:31:30, a7ee832bb74b41f9bf5f7451ba0994fc: 0/7 (0,00 %) 
UUID: a7ee832bb74b41f9bf5f7451ba0994fc
Type: default
Total time: 47 milliseconds
Avg. time per context: 6 milliseconds
Report was finished: Tue Jun 07 11:31:30 CEST 2016

------ report -------
{
  "configs" : {
    "com.openexchange.mail.adminMailLoginEnabled" : "false",
    "com.openexchange.report.appsuite.ReportService" : "LocalReportService"
  },
  "total" : {
    "timeframe" : {
      "start" : 1433669490406,
      "end" : 1465291890406
    },
    "users-disabled" : 1,
    "Context-users-max" : 4,
    "guests" : 1,
    "links" : 2,
    "contexts" : 7,
    "Context-users-min" : 1,
    "Context-users-avg" : 2,
    "users" : 18,
    "contexts-disabled" : 1,
    "report-format" : "appsuite-short"
  },
  "clientlogincount" : {
    "appsuite" : "3",
    "olox2" : "0",
    "caldav" : "0",
    "usm-eas" : "0",
    "mobileapp" : "0",
    "ox6" : "0",
    "carddav" : "0"
  },
  "macdetail" : {
    "capabilitySets" : [ {
      "client-list" : {
        "open-xchange-appsuite" : 5,
        "123" : 1,
        "olox2" : 1,
        "mobileapp" : 1,
        "OpenXchange.HTTPClient.OXAddIn" : 2,
        "com.openexchange.mobileapp" : 3
      },
      "capabilities" : [ "active_sync", "autologin", "boxcom", "caldav", "calendar", "carddav", "client-onboarding", "collect_email_addresses", "conflict_handling", "contacts", "delegate_tasks", "dev", "document_preview", "drive", "edit_group", "edit_public_folders", "edit_resource", "emclient", "filestore", "freebusy", "gab", "google", "groupware", "guard", "guard-drive", "guard-mail", "ical", "infostore", "invite_guests", "messenger", "messenger-group", "mobility", "msliveconnect", "multiple_mail_accounts", "oauth", "olox20", "participants_dialog", "pim", "pop3", "portal", "presenter", "publication", "read_create_shared_folders", "remote_presenter", "rt", "search", "share_links", "share_mail_attachments", "spreadsheet", "subscription", "tasks", "testoauthservice", "text", "twitter", "unified-mailbox", "usm", "vcard", "webdav", "webdav_xml", "webmail" ],
      "admin" : 0,
      "contexts" : 6,
      "total" : 11,
      "Context-users-max" : 3,
      "quota" : 1048576,
      "guests" : 1,
      "disabled" : 1,
      "links" : 2,
      "Context-users-min" : 1,
      "Context-users-avg" : 1
    }, {
      "client-list" : {
        "open-xchange-appsuite" : 2
      },
      "total" : 7,
      "capabilities" : [ "active_sync", "autologin", "boxcom", "caldav", "calendar", "carddav", "client-onboarding", "collect_email_addresses", "conflict_handling", "contacts", "delegate_tasks", "dev", "document_preview", "drive", "edit_group", "edit_public_folders", "edit_resource", "emclient", "filestore", "freebusy", "gab", "google", "groupware", "guard", "guard-drive", "guard-mail", "ical", "infostore", "invite_guests", "messenger", "messenger-group", "mobility", "msliveconnect", "multiple_mail_accounts", "oauth", "olox20", "participants_dialog", "pim", "pop3", "portal", "presenter", "publication", "read_create_shared_folders", "remote_presenter", "rt", "search", "share_links", "share_mail_attachments", "spreadsheet", "subscription", "tasks", "testoauthservice", "text", "twitter", "unified-mailbox", "usm", "vcard", "webdav", "webdav_xml" ],
      "Context-users-max" : 1,
      "quota" : 1048576,
      "guests" : 0,
      "admin" : 7,
      "disabled" : 0,
      "links" : 0,
      "contexts" : 7,
      "Context-users-min" : 1,
      "Context-users-avg" : 1
    } ]
  },
  "clientlogincountyear" : {
    "appsuite" : "7",
    "olox2" : "2",
    "caldav" : "0",
    "usm-eas" : "0",
    "mobileapp" : "3",
    "ox6" : "0",
    "carddav" : "0"
  },
  "uuid" : "a7ee832bb74b41f9bf5f7451ba0994fc",
  "reportType" : "default",
  "timestamps" : {
    "start" : 1465291890406,
    "stop" : 1465291890453
  },
  "version" : {
    "version" : "7.8.2-Rev0",
    "buildDate" : "develop"
  }
}
------ end -------

macdetail:

  • detailed information about existing module access combinations and its usage

total:

  • accumulated user and disabled users, guests, links (anonymous share), the reports timeframe, if not set via arguments the last year is considered and context metrics (min, max, average, disabled and total)

clientlogincountyear:

  • number of client logins for the last year (1 year back from current date)

clientlogincount:

  • number of client logins for the last month

uuid:

  • a unique id for the report

reportType:

  • given name for that report

timestamps:

  • timestamps of the start and end time of the report

versions:

  • version and build date of the server

configs:

  • server configuration (currently only for setting 'com.openexchange.mail.adminMailLoginEnabled')
  • What service generated this report, hazelcast or local.

capabilitySets

  • client-list: What clients have been used by the users and how often in the considered timeframe
  • context-users-...:context metrics (min, max, average, disabled and total)
  • disabled: the number of disabled users
  • links: number of links created by users
  • guests: number of guests, invited by users
  • total: total number of users
  • admin: total number of admins
  • contexts: total number of contexts
  • quota: cumulated quota

Report-type: extended

Starting the Open-Xchange report client. Note that the report generation may take a little while.

UUID: e48819025b5043a580b1f8d0d2ac2f2f
Type: extended
Total time: 198 milliseconds
Avg. time per context: 28 milliseconds
Report was finished: Tue Jun 07 11:46:05 CEST 2016

------ report -------
{
  "configs" : {
    "com.openexchange.mail.adminMailLoginEnabled" : "false",
    "com.openexchange.report.appsuite.ReportService" : "LocalReportService"
  },
  "total" : {
    "timeframe" : {
      "start" : 1433670365550,
      "end" : 1465292765550
    },
    "users-disabled" : 1,
    "Context-users-max" : 4,
    "guests" : 1,
    "links" : 2,
    "contexts" : 7,
    "Context-users-min" : 1,
    "Context-users-avg" : 2,
    "drive-total" : {
      "file-size-min" : 141,
      "file-size-max" : 30018,
      "file-size-avg" : 9060,
      "file-size-total" : 81547,
      "storage-use-min" : 4708,
      "storage-use-max" : 35568,
      "storage-use-avg" : 20386,
      "storage-use-total" : 81547,
      "file-count-overall-min" : 1,
      "file-count-overall-max" : 6,
      "file-count-overall-avg" : 2,
      "file-count-overall-total" : 9,
      "file-count-in-timerange-min" : 1,
      "file-count-in-timerange-max" : 6,
      "file-count-in-timerange-avg" : 2,
      "file-count-in-timerange-total" : 9,
      "external-storages-min" : 0,
      "external-storages-max" : 1,
      "external-storages-avg" : 1,
      "external-storages-total" : 1,
      "external-storages-users" : 1,
      "distinct-files-total" : 8,
      "quota-usage-percent-min" : 0,
      "quota-usage-percent-avg" : 1,
      "quota-usage-percent-max" : 6,
      "users" : 4,
      "mime-type-text/xml" : 2,
      "mime-type-application/octet-stream" : 3,
      "mime-type-text/html" : 1,
      "mime-type-text/plain" : 3
    },
    "users" : 18,
    "contexts-disabled" : 1,
    "report-format" : "appsuite-short"
  },
  "macdetail" : {
    "capabilitySets" : [ {
      "drive-user" : {
        "file-size-min" : 141,
        "file-size-max" : 30018,
        "file-size-avg" : 8786,
        "file-size-total" : 70294,
        "storage-use-min" : 4708,
        "storage-use-max" : 35568,
        "storage-use-avg" : 23431,
        "storage-use-total" : 70294,
        "file-count-overall-min" : 1,
        "file-count-overall-max" : 6,
        "file-count-overall-avg" : 2,
        "file-count-overall-total" : 8,
        "file-count-in-timerange-min" : 1,
        "file-count-in-timerange-max" : 6,
        "file-count-in-timerange-avg" : 2,
        "file-count-in-timerange-total" : 8,
        "external-storages-min" : 1,
        "external-storages-max" : 1,
        "external-storages-avg" : 1,
        "external-storages-total" : 1,
        "external-storages-users" : 1,
        "distinct-files-total" : 7,
        "quota-usage-percent-min" : 0,
        "quota-usage-percent-avg" : 1,
        "quota-usage-percent-max" : 6,
        "users" : 3
      },
      "client-list" : {
        "open-xchange-appsuite" : 5,
        "123" : 1,
        "olox2" : 1,
        "mobileapp" : 1,
        "OpenXchange.HTTPClient.OXAddIn" : 2,
        "com.openexchange.mobileapp" : 3
      },
      "capabilities" : [ "active_sync", "autologin", "boxcom", "caldav", "calendar", "carddav", "client-onboarding", "collect_email_addresses", "conflict_handling", "contacts", "delegate_tasks", "dev", "document_preview", "drive", "edit_group", "edit_public_folders", "edit_resource", "emclient", "filestore", "freebusy", "gab", "google", "groupware", "guard", "guard-drive", "guard-mail", "ical", "infostore", "invite_guests", "messenger", "messenger-group", "mobility", "msliveconnect", "multiple_mail_accounts", "oauth", "olox20", "participants_dialog", "pim", "pop3", "portal", "presenter", "publication", "read_create_shared_folders", "remote_presenter", "rt", "search", "share_links", "share_mail_attachments", "spreadsheet", "subscription", "tasks", "testoauthservice", "text", "twitter", "unified-mailbox", "usm", "vcard", "webdav", "webdav_xml", "webmail" ],
      "admin" : 0,
      "contexts" : 6,
      "drive-overall" : {
        "mime-type-application/octet-stream" : 3,
        "mime-type-text/html" : 1,
        "mime-type-text/plain" : 3,
        "mime-type-text/xml" : 1
      },
      "total" : 11,
      "Context-users-max" : 3,
      "quota" : 1048576,
      "guests" : 1,
      "disabled" : 1,
      "links" : 2,
      "Context-users-min" : 1,
      "Context-users-avg" : 1
    }, {
      "drive-user" : {
        "file-size-min" : 11253,
        "file-size-max" : 11253,
        "file-size-avg" : 11253,
        "file-size-total" : 11253,
        "storage-use-min" : 11253,
        "storage-use-max" : 11253,
        "storage-use-avg" : 11253,
        "storage-use-total" : 11253,
        "file-count-overall-min" : 1,
        "file-count-overall-max" : 1,
        "file-count-overall-avg" : 1,
        "file-count-overall-total" : 1,
        "file-count-in-timerange-min" : 1,
        "file-count-in-timerange-max" : 1,
        "file-count-in-timerange-avg" : 1,
        "file-count-in-timerange-total" : 1,
        "external-storages-min" : 0,
        "external-storages-max" : 0,
        "external-storages-avg" : 0,
        "external-storages-total" : 0,
        "external-storages-users" : 0,
        "distinct-files-total" : 1,
        "quota-usage-percent-min" : 0,
        "quota-usage-percent-avg" : 1,
        "quota-usage-percent-max" : 6,
        "users" : 1
      },
      "client-list" : {
        "open-xchange-appsuite" : 2
      },
      "capabilities" : [ "active_sync", "autologin", "boxcom", "caldav", "calendar", "carddav", "client-onboarding", "collect_email_addresses", "conflict_handling", "contacts", "delegate_tasks", "dev", "document_preview", "drive", "edit_group", "edit_public_folders", "edit_resource", "emclient", "filestore", "freebusy", "gab", "google", "groupware", "guard", "guard-drive", "guard-mail", "ical", "infostore", "invite_guests", "messenger", "messenger-group", "mobility", "msliveconnect", "multiple_mail_accounts", "oauth", "olox20", "participants_dialog", "pim", "pop3", "portal", "presenter", "publication", "read_create_shared_folders", "remote_presenter", "rt", "search", "share_links", "share_mail_attachments", "spreadsheet", "subscription", "tasks", "testoauthservice", "text", "twitter", "unified-mailbox", "usm", "vcard", "webdav", "webdav_xml" ],
      "admin" : 7,
      "contexts" : 7,
      "drive-overall" : {
        "mime-type-text/xml" : 1
      },
      "total" : 7,
      "Context-users-max" : 1,
      "quota" : 1048576,
      "guests" : 0,
      "disabled" : 0,
      "links" : 0,
      "Context-users-min" : 1,
      "Context-users-avg" : 1
    } ]
  },
  "uuid" : "e48819025b5043a580b1f8d0d2ac2f2f",
  "reportType" : "extended",
  "timestamps" : {
    "start" : 1465292765550,
    "stop" : 1465292765748
  },
  "version" : {
    "version" : "7.8.2-Rev0",
    "buildDate" : "develop"
  }
}
------ end -------

Because this report simply enhances the default reports information, only the added components are described.

total

  • drive-total (on deployment level)
    • file-size-...: file-size values
    • storage-use-...: storage usage values
    • file-count-overall-...: overall file count values
    • file-count-in-timerange-...: file count values inside the considered timeframe
    • external-storages-...: exernal storage usage values
    • distinct-files-total: how many files are on this deployment, disregarding the versions
    • quota-usage-percent-...: how much quota is used in percent values
    • users: overall drive users
    • ime-type-...: What mime-types and how many of them are there

capabilitySets

  • drive-user: The drive metrics for this capability set users

    • file-size-...: file-size values
    • storage-use-...: storage usage values
    • file-count-overall-...: overall file count values
    • file-count-in-timerange-...: file count values inside the considered timeframe
    • external-storages-...: exernal storage usage values
    • distinct-files-total: how many files are on this deployment, disregarding the versions
    • quota-usage-percent-...: how much quota is used in percent values
    • users : overall drive users
  • drive-overall: All file mime-types and their amount.

Report-type: oxaas-extended

This report type will only generate the follwing outcome, if the provisioning bundles are installed and configured correctly. This type of report adds additional mail storage informationion gathered from dovecot services. It also has a slightly different structure. The report consists of metrics calculated for every user in a context per brand on a deployment. Therefore only the differences to the default report will be described.

Starting the Open-Xchange report client. Note that the report generation may take a little while.

UUID: d213c6bc55f449b290710a3db2d9e631
Type: oxaas-extended
Total time: 486 milliseconds
Avg. time per context: 486 milliseconds
Report was finished: Tue May 24 14:41:22 CEST 2016

------ report -------
{
  "configs" : {
    "com.openexchange.mail.adminMailLoginEnabled" : "false",
    "options" : {
      "show-drive-metrics" : "true",
      "show-mail-metrics" : "true",
      "timeframe-start" : "1432471282284",
      "timeframe-end" : "1464093682284"
    },
    "com.openexchange.report.appsuite.ReportService" : "LocalReportService"
  },
  "oxaas" : {
    "capabilitySets" : {
      "193583909" : "active_sync,autologin,boxcom,caldav,calendar,carddav,client-onboarding,collect_email_addresses,conflict_handling,contacts,delegate_tasks,dev,document_preview,drive,edit_group,edit_public_folders,edit_resource,emclient,filestore,freebusy,gab,google,groupware,guard,guard-drive,guard-mail,ical,infostore,invite_guests,messenger,messenger-group,mobility,msliveconnect,multiple_mail_accounts,oauth,olox20,participants_dialog,pim,pop3,portal,presenter,publication,read_create_shared_folders,remote_presenter,rt,search,share_links,share_mail_attachments,spreadsheet,subscription,tasks,testoauthservice,text,twitter,unified-mailbox,usm,vcard,webdav,webdav_xml",
      "-1894931580" : "active_sync,autologin,boxcom,caldav,calendar,carddav,client-onboarding,collect_email_addresses,conflict_handling,contacts,delegate_tasks,dev,document_preview,drive,edit_group,edit_public_folders,edit_resource,emclient,filestore,freebusy,gab,google,groupware,guard,guard-drive,guard-mail,ical,infostore,invite_guests,messenger,messenger-group,mobility,msliveconnect,multiple_mail_accounts,oauth,olox20,participants_dialog,pim,pop3,portal,presenter,publication,read_create_shared_folders,remote_presenter,rt,search,share_links,share_mail_attachments,spreadsheet,subscription,tasks,testoauthservice,text,twitter,unified-mailbox,usm,vcard,webdav,webdav_xml,webmail"
    },
    "brand.dev" : {
      "1" : {
        "2" : {
          "capabilitySet" : 193583909,
          "drive" : {
            "quota" : 1048576000,
            "used-quota" : 0,
            "file-size-min" : 0,
            "file-size-max" : 0,
            "file-size-avg" : 0,
            "file-count-latest-version" : 0,
            "file-count-all-versions" : 0,
            "mime-types" : { }
          },
          "mailbox-name" : "2@1",
          "username" : "admin.dev",
          "user-logins" : { }
        },
        "3" : {
          "capabilitySet" : -1894931580,
          "drive" : {
            "quota" : 1048576000,
            "used-quota" : 6979336,
            "file-size-min" : 11323,
            "file-size-max" : 6968013,
            "file-size-avg" : 3489668,
            "file-count-latest-version" : 2,
            "file-count-all-versions" : 2,
            "mime-types" : {
              "text/csv" : 1,
              "text/plain" : 1
            }
          },
          "mailbox-name" : "3@1",
          "username" : "adam",
          "user-logins" : {
            "open-xchange-appsuite" : 1463650499865
          },
          "mail" : {
            "mailQuota" : 1024000,
            "mailQuotaUsage" : 5
          }
        },
        "4" : {
          "capabilitySet" : -1894931580,
          "drive" : {
            "quota" : 1048576000,
            "used-quota" : 15501730,
            "file-size-min" : 126646,
            "file-size-max" : 6968013,
            "file-size-avg" : 2844572,
            "file-count-latest-version" : 3,
            "file-count-all-versions" : 4,
            "mime-types" : {
              "text/csv" : 3
            }
          },
          "mailbox-name" : "4@1",
          "username" : "eva",
          "user-logins" : {
            "open-xchange-appsuite" : 1463577630379
          },
          "mail" : {
            "mailQuota" : 1024000,
            "mailQuotaUsage" : 18436
          }
        },
        "5" : {
          "capabilitySet" : -1894931580,
          "drive" : {
            "quota" : 1048576000,
            "used-quota" : 0,
            "file-size-min" : 0,
            "file-size-max" : 0,
            "file-size-avg" : 0,
            "file-count-latest-version" : 0,
            "file-count-all-versions" : 0,
            "mime-types" : { }
          },
          "mailbox-name" : "5@1",
          "username" : "rpost",
          "user-logins" : { },
          "mail" : {
            "mailQuota" : 1024000,
            "mailQuotaUsage" : 0
          }
        },
        "6" : {
          "capabilitySet" : -1894931580,
          "drive" : {
            "quota" : 1048576000,
            "used-quota" : 0,
            "file-size-min" : 0,
            "file-size-max" : 0,
            "file-size-avg" : 0,
            "file-count-latest-version" : 0,
            "file-count-all-versions" : 0,
            "mime-types" : { }
          },
          "mailbox-name" : "6@1",
          "username" : "tiuser",
          "user-logins" : { },
          "mail" : {
            "mailQuota" : 1024000,
            "mailQuotaUsage" : 0
          }
        },
        "7" : {
          "capabilitySet" : -1894931580,
          "drive" : {
            "quota" : 1048576000,
            "used-quota" : 0,
            "file-size-min" : 0,
            "file-size-max" : 0,
            "file-size-avg" : 0,
            "file-count-latest-version" : 0,
            "file-count-all-versions" : 0,
            "mime-types" : { }
          },
          "mailbox-name" : "7@1",
          "username" : "tiwsuser",
          "user-logins" : { },
          "mail" : {
            "mailQuota" : 1024000,
            "mailQuotaUsage" : 0
          }
        },
        "8" : {
          "capabilitySet" : -1894931580,
          "drive" : {
            "quota" : 1048576000,
            "used-quota" : 0,
            "file-size-min" : 0,
            "file-size-max" : 0,
            "file-size-avg" : 0,
            "file-count-latest-version" : 0,
            "file-count-all-versions" : 0,
            "mime-types" : { }
          },
          "mailbox-name" : "8@1",
          "username" : "guarduser",
          "user-logins" : { },
          "mail" : {
            "mailQuota" : 1024000,
            "mailQuotaUsage" : 0
          }
        },
        "9" : {
          "capabilitySet" : -1894931580,
          "drive" : {
            "quota" : 1048576000,
            "used-quota" : 0,
            "file-size-min" : 0,
            "file-size-max" : 0,
            "file-size-avg" : 0,
            "file-count-latest-version" : 0,
            "file-count-all-versions" : 0,
            "mime-types" : { }
          },
          "mailbox-name" : "9@1",
          "username" : "catchall",
          "user-logins" : { },
          "mail" : {
            "mailQuota" : 1024000,
            "mailQuotaUsage" : 0
          }
        }
      },
      "totals" : {
        "quota" : 1048576000,
        "quotaUsage" : 22481066,
        "mailQuota" : 7168000,
        "mailQuotaUsage" : 18441
      }
    }
  },
  "uuid" : "d213c6bc55f449b290710a3db2d9e631",
  "reportType" : "oxaas-extended",
  "timestamps" : {
    "start" : 1464093682283,
    "stop" : 1464093682769
  },
  "version" : {
    "version" : "7.8.2-Rev0",
    "buildDate" : "develop"
  }
}
------ end -------

configs

  • options: Displays all additional options for this report type
    • show-drive-metrics: Are drive metrics diplayed
    • show-mail-metrics: Are mail metrics displayed
    • timeframe-start: Beginning of the considered timeframe
    • timeframe-end: End of the considered timeframe
    • single-brand: If only one brand is considered
    • ignore-admin: Are admin users ignored

oxaas

  • Contains all brands and capability sets, relevant for this report

capabilitySets

  • Contains a map with hash values for all capability sets in the report

"Brand": The brand name will be displayed

  • Every brand contains a map of its contexts and every context contains a map of its users.

"Context": The context Id will be diplayed

  • totals: Contains values for this context only
    • quota: The quota for this context. User filestores are ignored
    • quotaUsage: The cumulate used quota of all users, except those with an own filestore
    • mailQuota: The total cumulated mail quota of all users
    • mailQuotaUsage: The cumulated used quota of all users

"User": The user Id will be diplayed and it contains only values for this user

  • capabilitySet: Integer value, which is a reference to the reports capability sets map
  • drive
    • quota: Total quota
    • used-quota: Used quota by this user
    • file-size-min: The size of the smallest file
    • file-size-max: The size of the biggest file
    • file-size-avg: Average file size
    • file-count-latest-version: The number of distinct files
    • file-count-all-versions: The number of all stored files
  • mime-types: A list of all mime-types and their number
  • mailbox-name: The mailbox name
  • username: The username
  • user-logins: The clients used and a timestamp for the last login
  • mail
    • mailQuota: Total mail quota
    • mailQuotaUsage: Used mail quota

Explanation of the old console output

$ /opt/open-xchange/sbin/report -o -d 
Starting the Open-Xchange report client. Note that the report generation may take a little while.

module version\
admin 6.20.5 Rev1 groupware 6.20.5 Rev1

contexts users guests links 
5        19    22     10

mac       count adm disabled 
268435455 6     1   0
237044501 48    0   0
5         2     2   0

key                                         value 
com.openexchange.mail.adminMailLoginEnabled true

usmeas olox2 mobileapp carddav caldav 
1      0     0         0       0

usmeasyear olox2year mobileappyear carddavyear caldavyear 
4          12        7             11          10

contexts:

  • total number of contexts

users:

  • total number of users

guests:

  • total number of guests

links:

  • total number of links shared to anonymous users

mac:

  • decimal value of the module access. For conversion decimal to human readable permission please use report -b as described below

count:

  • amount of users with this module access

adm:

  • amount of admin users with this specific module access

disabled:

  • amount of users that are disabled

key:

  • key of the configuration property

value:

  • value of the configuration property

The last rows show the amount of users that did login to Open-Xchange within the ''last 30 days'' and ''the last year'' using the specified OXtender/service.

If you want to know the access permissions of a specific mac, run e.g.

$ /opt/open-xchange/sbin/report -b 237044501

usmeas:

  • using mobile phone via active sync (OXtender for Business Mobility) within the last 30 days

olox2:

  • using OXtender 2 for Microsoft Outlook within the last 30 days

mobileapp:

  • using Open-Xchange Mobile Web Interface within the last 30 days

carddav/caldav:

  • using the CalDAV/CardDAV feature within the last 30 days

usmeasyear:

  • using mobile phone via active sync (OXtender for Business Mobility) within the last year

olox2:

  • using OXtender 2 for Microsoft Outlook within the last year

mobileapp:

  • using Open-Xchange Mobile Web Interface within the last year

carddav/caldav:

  • using the CalDAV/CardDAV feature within the last year

Example: a value of 7 below olox2 means, that within the last 30 days, 7 different users used the OXtender 2 for Microsoft Outlook to connect to Open-Xchange.

Automatic reports

Creating a cron entry which will automatically execute the report client once a week saves a lot of work. To create this cron entry execute:

$ vim /etc/cron.d/open-xchange\_report

0 3 \* \* 7 open-xchange /opt/open-xchange/sbin/report -s -x 1> /dev/null 2>&1