Git Product home page Git Product logo

altaplanning / arcgislicensemonitor Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jmitz/arcgislicensemonitor

0.0 0.0 0.0 28 KB

Aids in monitoring licenses managed by ESRI's ArcGIS License Manager. Python script checks license usage using a local ArcGIS License Manager and connects to external License managers by IP address. Data are stored in SQL database and can be retrieved with an Excel spreadsheet

Python 64.66% TSQL 35.34%

arcgislicensemonitor's Introduction

ArcGISLicenseMonitor

====================

Aids in monitoring licenses managed by ESRI's ArcGIS License Manager. Python script checks license usage using a local ArcGIS License Manager and connects to external License managers by IP address. Data are stored in SQLServer database and can be retrieved with an Excel spreadsheet

Database Setup

Run the createInstance.sql to build the database instance to hold the tables, views and stored procedures.

Run the table creation scripts.

  1. dbo.tblLicenseManager.Table.sql
  2. dbo.tblMachine.Table.sql
  3. dbo.tblSoftware.Table.sql
  4. dbo.tblUser.Table.sql
  5. dbo.tblSession.Table.sql (Run Last)

Run the stored procedure creation scripts.

  1. dbo.spRetrieveMachineId.StoredProcedure.sql
  2. dbo.spRetrieveSoftwareId.StoredProcedure.sql
  3. dbo.spRetrieveUserId.StoredProcedure.sql
  4. dbo.spSessionUpdateWithVersion.StoredProcedure.sql (Run Last)

Run the view creation scripts.

  1. dbo.vwUserFirstLastConnection.View.sql
  2. dbo.vwUserSession.View.sql

Create a limited user (or use an existing user) on the database for loading and accessing the data. Give the user account that will be loading the data execute rights on the spSessionUpdateWithVersion stored procedure.

Give the user account that will be access the data select rights on the views.

  1. vwUserFirstLastConnection
  2. vwUserSession

Monitoring Machine Setup

Requirements

  • Local installation of ArcGIS License Manager
  • Python
  • Python ODBC Library (PYODBC)

Monitoring Command

The command for the monitoring task is `LicenseMonitor' followed by the IP addresses of the ArcGIS License managers.

C:\>LicenseMonitor 192.168.1.5 192.168.1.27

Where the organization has two license managers, one at 192.168.1.5 and one at 192.168.1.27. User information for the license managers will be parsed and stored in the database.

LicenseMonitor can be added to the task scheduler and run throughout the day. Sessions are only added or updated when LicenseMonitor is run. So if the task is run every 10 minutes shorter sessions may not show up. I have not noticed any slowdown on a machine running the process every 5 minutes. The process could easily be run on the license manager itself.

Reporting

Requirements

  • Microsoft Excel (2010)

The ArcGISLicenseTracking.xlsx spreadsheet is used to pull the data from the database and put it in a format that is easy to use.

Setup

You will need to set up data connections to the database to allow the spreadsheet to access the stored session information.

The database Server connection information needs to be added to the connection information in the Data/Connections dialog. Not entirely sure how well this works on a local database at this writing.

arcgislicensemonitor's People

Contributors

jmitz avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.