A web application to display current and historical license usage from a concurrent use (floating) license server.
lmutil.exe
included with the license server installation.Clone the repo
> git clone https://github.com/ishiland/arcgis-license-tracker.git
> cd arcgis-license-tracker
Initialize and activate a virtualenv:
> python -m virtualenv venv
> venv\Scripts\activate
Install the dependencies:
> pip install -r requirements.txt
In app/arcgis_config.py
, configure the following:
license_servers
- List of license servers to track. The default port is 27000.lm_util
- Path to your lmutil.exe. Initialize the database
Initialize the database using:
> python manage.py recreate_db
Test your license server configuration:
> python manage.py read_once
Run the development server:
> python manage.py runserver
Navigate to http://localhost:5000
After successfully testing in development, set the FLASK_ENV
variable to production
then initialize a production database using python manage.py recreate_db
.
Configure Windows Task Scheduler to update the license data. The following settings should work for most cases:
In 'General' check 'Run Whether user is logged on'.
The 'Trigger' should be set to run between 1 and 5 minutes. Make sure to check the 'Enabled' box.
The 'Action' should look similar to this:
manage.py read_once
manage.py
file is. Ex. C:\arcgis-license-tracker\
Deploy to a production web server. Here are some helpful guides and tools for deploying to IIS:
There is also a sample web.config for reference included in this repo. A summary of other deployment options here.
Tests can be ran using python manage.py test
The database design is as follows: