# Bentley Cloud

# Introduction

Open iT supports Bentley Cloud usage reporting. The following sections will guide you on the required configuration for license manager utility polling and log file parsingBeta.

# Configuring License Manager Utility Polling

Open iT polls the license servers at regular intervals to get the current status of its license use and availability. This data collection utilizes the license server's built-in license administration utility, which collects and processes license statuses for reporting. This will produce the following aggregated data types used for real-time reporting:

# Requirements

# Initializing Bentley Cloud Data Collection

Before configuring data collection, it is necessary to follow the steps below:

  1. Open a command prompt with Administrator level privileges.

  2. Go to the bin directory, which is by default in C:\Program Files\OpeniT\Core\bin, run the command:

    Command Syntax
     cd $BIN_DIR
    Example
     cd C:\Program Files\OpeniT\Core\bin
  3. Run the command:

    Command Syntax
    openit_bentleycloud -c <bentley_admin_email> <bentley_admin_password> -s

    where:

    Parameter Description
    -c <bentley_admin_email> <bentley_admin_password> Use this to specify the credentials to access the Bentley portal.
    -s Use this to save the credentials.
    Parameters for Initializing Bentley Cloud Data Collection

    Example
    openit_bentleycloud -c jsmith@email.com bentleyAdm!n123 -s

    This example initializes Bentley Cloud data collection using the administrator account jsmith@email.com with passsword bentleyAdm!n123.

    Parameter Description
    -h Use this to display the help message.
    -d Use this to turn on debug logging.
    Optional Parameters

# Configuring Data Collection

These are the required steps to activate and configure collection of Bentley Cloud usage data.

  1. Go to the Components directory, which is by default in C:\Program Files\OpeniT\Core\Configuration\Components, and back up the licpoll.xml configuration file.

  2. Open a command prompt with Administrator level privileges.

  3. Go to the bin directory, which is by default in C:\Program Files\OpeniT\Core\bin, run the command:

    Command Syntax
     cd $BIN_DIR
    Example
     cd C:\Program Files\OpeniT\Core\bin
  4. Once in the directory, activate the collection of Bentley Cloud data, run the command:

    Command Syntax
     openit_confinit -c "licpoll.license-types.bentleycloud-sample.active=true"
  5. Set any preferred argument for the openit_bentleycloud binary, run the command:

    Command Syntax
     openit_confinit -c "licpoll.license-types.bentleycloud-sample.status-command.arguments=<argument>"
    Parameter Description
    -t "<TEMPDIR>" specifies where the program will store temporary files, where:
    <TEMPDIR> - path to the temporary directory; the default path is C:\ProgramData\OpeniT\Data\temp\Bentley
    -o "<OUTDIR>" specifies where the program will save its output, where:
    <OUTDIR> - path to the output directory; the default path is C:\ProgramData\OpeniT\Data\temp\Bentley\out
    -ci <COUNTRYISO> lists the country ISO code(s) where the collection will be made, where:
    <COUNTRYISO> - ISO code per country
    Optional Parameters
    Example
     openit_confinit -c "licpoll.license-types.bentleycloud-sample.status-command.arguments=-t C:\ProgramData\OpeniT\Data\temp\Bentley"
  6. Run the following command to update the configuration files:

    Command Syntax
    openit_confbuilder --client

    Make sure that there are no errors encountered.

Refer to the Bentley Cloud Data Collection Configuration table to learn more about Bentley Cloud configuration in licpoll.xml.

Object Name Accepted Value Description
active Boolean (true or false) Setting this to true activates Bentley Cloud usage data collection.
type String (i.e., GenericLicense) The license manager type.
interval Timespan (e.g., P30S, P5M, P1H) The span of time between each polling round (it is recommended to set a value no less than P1M).
offset Timespan (e.g., P30S, P5M, P1H) The span of time the aligned poll time decided by interval is shifted.
product-name String (e.g., server;daemon) This object is defined if a product name other than the default GenericLicense=%hosttype% will be used.
license-server String (e.g., hou105lin) The Bentley Cloud License Server name.
status-command FileName (e.g., ${OpeniT.directories.bin}/openit_bentleycloud.exe) The binary used to obtain status from the license manager.
status-command.arguments String (i.e., -a) The arguments used for the status command.
Bentley Cloud Data Collection Configuration

# Verifying Data Collection

After configuration, you can verify that the data is collected by following these steps:

  1. Open a command prompt with Administrator level privileges.

  2. Go to the bin directory, which is by default in C:\Program Files\OpeniT\Core\bin, run the command:

    Command Syntax
     cd $BIN_DIR
    Example
     cd C:\Program Files\OpeniT\Core\bin
  3. Run the command:

    Command Syntax
     openit_licpoll -# 1
  4. Verify that the temp directory, which is by default in C:\ProgramData\OpeniT\Data\temp, contains a LicPoll directory containing .data and status-*.log files.

# Configuring Log File ParsingBeta

Open iT collects log files and converts them to Open iT format. This will produce the following aggregated data types used for historical reporting:

# Requirements

  • An Open iT Client connected to an Open iT Server or a coexistent Open iT setup
  • Non-SSO Bentley cloud account with Administrator access to the Bentley Portal

# Setting up Bentley Cloud Data Collection

These are the required steps to set up data collection from the Bentley portal.

  1. Open a command prompt with Administrator level privileges.

  2. Go to the bin directory, which is by default in C:\Program Files\OpeniT\Core\bin, run the command:

    Command Syntax
     cd $BIN_DIR
    Example
     cd C:\Program Files\OpeniT\Core\bin
  3. Run the command:

    Command Syntax
    openit_bentleycloudstat init --username <bentley_username> --password <bentley_password>

    where:

    Parameter Description
    --username <bentley_username> Use this to specify the username for accessing the Bentley portal.
    --password <bentley_password> Use this to specify the password for accessing the Bentley portal.
    Parameters for Setting Up Bentley Cloud Data Collection

    Example
    openit_bentleycloudstat init --username jsmith@email.com --password bentleyAdm!n123

    This example sets up Bentley Cloud data collection using the administrator account jsmith@email.com with password bentleyAdm!n123.

    • export - use this to export Bentley Cloud data from the portal.

      Example
      openit_bentleycloudstat export <param 1> <param 2> ... <param n>
      Parameter Description
      --data <data> Use this to specify the data to export.
      --from <YYYY-MM-DD> Use this to specify the date for which to start collection.
      --to <YYYY-MM-DD> Use this to specify the date for which to end collection.
      --last <Q> Use this to specify the last period of the data to be collected.
      --dir <export_dir> Use this to specify the directory where the exported data will be saved.
      Parameters for Exporting Bentley Cloud Data

    • query - use this to query Bentley Cloud data from the portal.

      Example
      openit_bentleycloudstat query <param 1> ... <param n>
      Parameter Description
      --data <data> Use this to specify the data to query.
      --output-file <output_file> Use this to specify the output file.
      Parameters for Querying Bentley Cloud Data

    • parse - use this to parse the exported Bentley Cloud data from the portal.

      Example
      openit_bentleycloudstat parse <param 1> <param 2> ... <param n>
      Parameter Description
      --dir <dir> Use this to specify the directory containing the csv files to parse.
      --data <data> Use this to specify the data to parse.
      --subscription-file <subscription_file> Use this to specify the file containing feature details.
      --target-dir<target_dir> Use this to specify the directory where the parsed data will be saved.
      Parameters for Parsing Extracted Bentley Cloud Data

    • collect - use this to collect Bentley Cloud data from the portal.

      Example
      openit_bentleycloudstat collect <param 1> <param 2> ... <param n>
      Parameter Description
      --data <data> Use this to specify the data to parse.
      --parse-data <parse_data> Use this to specify the file containing feature details.
      --from <YYYY-MM-DD> Use this to specify the date for which to start collection.
      --to <YYYY-MM-DD> Use this to specify the date for which to end collection.
      --last <Q> Use this to specify the last period of the data to be collected.
      --dir <export_dir> Use this to specify the directory where the exported data will be saved.
      --target-dir<target_dir> Use this to specify the directory where the parsed data will be saved.
      Parameters for Collecting Bentley Cloud Data

    • recollect - use this to recollect Bentley Cloud data from the portal.

      Example
      openit_bentleycloudstat recollect <param 1> <param 2> ... <param n>
      Parameter Description
      --data <data> Use this to specify the data to parse.
      --parse-data <parse_data> Use this to specify the file containing feature details.
      --from <YYYY-MM-DD> Use this to specify the date for which to start collection.
      --to <YYYY-MM-DD> Use this to specify the date for which to end collection.
      --last <Q> Use this to specify the last period of the data to be collected.
      --dir <export_dir> Use this to specify the directory where the exported data will be saved.
      --target-dir<target_dir> Use this to specify the directory where the parsed data will be saved.
      Parameters for Recollecting Bentley Cloud Data

    • remove - use this to remove Bentley Cloud data from archive.

      Example
      openit_bentleycloudstat remove <param 1> <param 2> ... <param n>
      Parameter Description
      --data <data> Use this to specify the data to remove.
      --from <YYYY-MM-DD> Use this to specify the date for which to start removal.
      --to <YYYY-MM-DD> Use this to specify the date for which to end removal.
      --last <Q> Use this to specify the last period of the data to be removed.
      Parameters for Removing Bentley Cloud Data

    • cleanup - use this to clean up the exported csv.

      Example
      openit_bentleycloudstat cleanup

# Initially Collecting and Sending Bentley Cloud Data to the Server

The collect_bentleycloud.bat script automates the initial stage of data handling by collecting data from the specified sources and sending it to the Open iT server.

  1. Open a command prompt with Administrator level privileges.

  2. Go to the bin directory, which is by default in C:\Program Files\OpeniT\Core\bin, run the command:

    Command Syntax
     cd $BIN_DIR
    Example
     cd C:\Program Files\OpeniT\Core\bin
  3. Run the command:

    Command Syntax
     collect_bentleycloud.bat --from <YYYY-MM-DD> --to <YYYY-MM-DD> 
    Example
     collect_bentleycloud.bat --from 2024-01-01 --to 2024-06-01 
    Parameter Description
    --data <data> Use this to specify the data to collect.
    --from <YYYY-MM-DD> Use this to specify the date for which to start collection.
    --to <YYYY-MM-DD> Use this to specify the date for which to end collection.
    Optional Parameters for Collecting and Sending Bentley Cloud Data to the Server

  4. Verify that there are archiver*.in files created in the server in the archiver directory, which is by default in C:\ProgramData\OpeniT\Data\incoming\archiver.

# Activating Bentley Cloud Data Collection

These are the required steps to activate collection of Bentley Cloud data.

  1. Go to the scheduler directory, which is by default in C:\Program Files\OpeniT\Core\Configuration\scheduler, and open collect_license_bentleycloud.oconf.

  2. Locate and set root.scheduler.jobs.collect_bentleycloud.general.active to true to activate the collection of Bentley Cloud data.

    collect_license_bentleycloud.oconf
     13|	}
     14|		general
     15|		{
     16|			active
     17|			{
     18|				type=bool
     19|				value=true
  3. Save the changes.

The collection runs daily. The primary data is then transferred to the server every night according to the client timezone for processing. To configure the intervals, locate the instances attribute under collect_bentleycloud, collect_bentleycloud_licenselogscsv, parse_bentleycloud_licenselogscsv, transfer_bentleycloud_licenseevents, transfer_bentleycloud_token, or cleanup_bentleycloud in the same file and configure the attributes.

Refer to the Bentley Cloud Data Collection Job Scheduler Instances Configuration table to learn the attributes used to configure Bentley Cloud data collection and transfer.

Attribute Name Accepted Value Description
max-instances Uint (e.g., 5, 8, 9) The number of instances allowed to run at the same time.
max-handling String (end-oldest, end-all-old, or end-new) The action done upon reaching the maximum number of instances. Specify end-oldest to stop/kill the oldest instance and then start the new, specify end-all-old to stop/kill all running instances and then start the new, or specify end-new to not start the new instance.
end-timeout Timespan (e.g., P30S, P5M, P1H) The maximum waiting time before terminating a running instance.
quarantine Timespan (e.g., P30S, P5M, P1H) The waiting time before starting a new instance after a previous one.
Bentley Cloud Data Collection Job Scheduler Instances Configuration

# Activating Bentley Cloud Data Recollection

Recollecting the Bentley Cloud data is required to ensure that the token-based data is in sync with the recalculated license information from the portal. These are the required steps to activate recollection of Bentley Cloud data.

  1. Go to the scheduler directory, which is by default in C:\Program Files\OpeniT\Core\Configuration\scheduler, and open recollect_license_bentleycloud.oconf.

  2. Locate and set root.scheduler.jobs.recollect_bentleycloud.general.active to true to activate the collection of Bentley Cloud data.

    recollect_license_bentleycloud.oconf
     13|	}
     14|		general
     15|		{
     16|			active
     17|			{
     18|				type=bool
     19|				value=true
  3. Save the changes.

The recollection runs every Saturday. The primary data is then transferred to the server according to the client timezone for processing. To configure the intervals, locate the instances attribute under recollect_bentleycloud, transfer_bentleycloud_token_recollect, or cleanup_bentleycloud_recollect in the same file and configure the attributes.

Refer to the Bentley Cloud Data Recollection Job Scheduler Instances Configuration table to learn the attributes used to configure Bentley Cloud data recollection and transfer.

Attribute Name Accepted Value Description
max-instances Uint (e.g., 5, 8, 9) The number of instances allowed to run at the same time.
max-handling String (end-oldest, end-all-old, or end-new) The action done upon reaching the maximum number of instances. Specify end-oldest to stop/kill the oldest instance and then start the new, specify end-all-old to stop/kill all running instances and then start the new, or specify end-new to not start the new instance.
end-timeout Timespan (e.g., P30S, P5M, P1H) The maximum waiting time before terminating a running instance.
quarantine Timespan (e.g., P30S, P5M, P1H) The waiting time before starting a new instance after a previous one.
Bentley Cloud Data Recollection Job Scheduler Instances Configuration

# Verifying Bentley Cloud Data Collection

After configuration, you can verify that the data is collected and sent to the server by following these steps:

  1. Open a command prompt with Administrator level privileges.

  2. Go to the bin directory, which is by default in C:\Program Files\OpeniT\Core\bin, run the command:

    Command Syntax
     cd $BIN_DIR
    Example
     cd C:\Program Files\OpeniT\Core\bin
  3. Run the command:

    Command Syntax
     openit_executor -r collect_license_bentleycloud
  4. Verify that there are archiver*.in files created in the server in the archiver directory, which is by default in C:\ProgramData\OpeniT\Data\incoming\archiver.

# Sample Reports

Max Available vs Max in Use Licenses per Feature

Max Available vs Max in Use Licenses per Feature

Token Used per User

Token Used per User

# Troubleshooting

This section lists possible ERRORS that may occur when running bentleycloudstat and the suggested solutions.

# An error occurred: Login failed. Please check your username and password

# Problem

This error may be encountered when the credentials used in setting up the Bentley Cloud data collection is incorrect.

# Resolution

Verify that the credentials are correct, then repeat the set up following the instructions in the Setting up Bentley Cloud Data Collection section.

# An error occurred: Waiting for selector "#HFProfileAnchor" failed: timeout 30000ms exceeds

# Problem

This may be encountered when there is an error during log-in. This may be because of a network issue or incorrect credentials used in setting up the Bentley Cloud data collection.

# Resolution

Verify that there are no network issues and the credentials are correct, then repeat the set up following the instructions in the Setting up Bentley Cloud Data Collection section.

# Next Steps?

   Renaming Vendor License    Renaming Features    Create and Add Report    License Monitor

We value your feedback!

Please take a few minutes to complete our survey and share your thoughts on your recent experience with our documentation.

Take survey

Close