4D Blog

Home Product A new command to get detailed information about licenses

A new command to get detailed information about licenses

January 14, 2022

Product

It’s sometimes helpful to monitor 4D licenses on your server. That’s why with 4D v19 R4, we decided to provide you with a new command giving all the information about your license usage: Get License Usage. Let me introduce you to this new tool.

Get License Usage is a brand new command available in v19R4. It gives a list of all the 4D Client licenses used on your server with a lot of information on each of them. Here is an example of the result of this command on a server with a single user:

[
  {
    "token":1,
    "reason":"CLIENT",
    "time":"2021-12-01T15:36:42+01:00",
    "productId":808464441,
    "productName":"4D Client",
    "productUsedCount":1,
    "productBalance":9,
    "session":
    {
      "type":"remote",
      "userName":"DESIGNER",
      "machineName":"OPT9010",
      "systemUserName":"HenryDupont",
      "IPAddress":"192.168.1.2",
      "hostType":"windows",
      "creationDateTime":"2021-12-01T15:36+01:00",
      "state":"postponed",
      "ID":"1DB9C18F85CB2C458CEA348563969DFF",
      "persistentID":"486A2FFB26031740A0DABB5AABE18341",
      "licenseToken":1
    }
  }
]

This example gives a lot of information. First, we see that the 4D license has been retained at 15:36, thanks to the time field. And at that time, no other license was retained, as the ProductUsedCount field is equal to 1. It also gives us information about the user (HenryDupont), the machine he logged from, and its system. The token is a unique id for each retaining of licenses that we can follow across multiple calls to Get License Usage.

We have also expanded our diagnostic logs. If you activate them, you’ll see that every time a license is retained or released a line appears in the logs:

29 2021-12-14T14:40:26.191 [LICUSAGE] INFO - License 4D Client retained (current use 1) by user HenryDupont with IP 192.168.1.2 with token 1: CLIENT ()
96 2021-12-14T14:41:06.004 [LICUSAGE] INFO - License 4D Client released (current use 0) by user HenryDupont with IP 192.168.1.2 with token 1: CLIENT ()

More importantly, an error will appear if a license is refused to a user.

By getting the license usage and these extra log lines, you’ll be able to follow the license consumption on your server, optimize your usage and plan ahead for your future needs.

We hope this new command will answer your needs, and if you have any comments, feel free to share them with us on the official 4D forum.

Discuss

Tags Programming, v19 R4, v20

Latest related posts

  • February 3, 2026

    4D Write Pro – Adding a margin automatically when bullets are set using standard actions

  • January 22, 2026

    Transform Static Documents into Actionable Knowledge with AIKit

  • January 22, 2026

    Deploy Fluent UI effortlessly in your 4D applications

Nicolas Brachfogel
Nicolas Brachfogel
Product Owner & Senior Developer - Nicolas Brachfogel joined 4D in 2017 as senior developer (4D Server and networking) and as Product Owner to manage the 4D version on Apple Silicon. He is tasked with the redaction of user stories and functional specifications, as well as the verification that the new features are in line with customers' needs. With a degree from Institut Supérieur d'Informatique Appliquée Paris (INSIA), Nicolas started his career as a software developer in 2001. After many years of development in Java and C++, he specialized himself in client-server development in the video game industry. As a developer/software architect, he worked on the server architectures of many games (Dofus Arena, Drakerz, Trivial Pursuit Go !).
  • Deutsch
  • Français
  • English
  • Português
  • Čeština
  • Español
  • Italiano
  • 日本語

Categories

Browse categories

  • AI
  • Release infos
  • 4D View Pro
  • 4D Write Pro
  • Email, Microsoft 365, Gmail
  • Development Mode
  • 4D Language
  • ORDA
  • User Interface / GUI
  • 4D Qodly Pro
  • Server
  • Maintenance
  • Deployment
  • 4D Tutorials
  • Generic
  • 4D Summit sessions and other online videos

Tags

4D AIKit 4D for Android 4D for iOS 4D NetKit 4D Qodly Pro 4D View Pro 4D Write Pro 21 Administration AI Artificial Intelligence Build application CI/CD Class Client/Server Code editor Collections Compatibility settings Formula Google Listbox Logs Mail Microsoft 365 Network Objects OpenAI ORDA PDF Pictures Preemptive Programming REST Scalability Security Session Source control Speed Spreadsheet Tutorial UI User Experience vscode Web Word processor

Tags

4D AIKit 4D for Android 4D for iOS 4D NetKit 4D Qodly Pro 4D View Pro 4D Write Pro 21 Administration AI Artificial Intelligence Build application CI/CD Class Client/Server Code editor Collections Compatibility settings Formula Google Listbox Logs Mail Microsoft 365 Network Objects OpenAI ORDA PDF Pictures Preemptive Programming REST Scalability Security Session Source control Speed Spreadsheet Tutorial UI User Experience vscode Web Word processor
Subscribe to 4D Newsletter

© 2026 4D SAS - All rights reserved
Terms & Conditions | Legal Notices | Data Policy | Cookie Policy | Contact us | Write for us


Subscribe to 4D Newsletter

* Your privacy is very important to us. Please click here to view our Policy

Contact us

Got a question, suggestion or just want to get in touch with the 4D bloggers? Drop us a line!

* Your privacy is very important to us. Please click here to view our Policy