pi license usage

Command Help

> pi lic usage -h
Usage: pi license usage [-h] [--format {json,long}]

Description: Report License activity.

Optional arguments:
  --format {json,long}  Return the results in the specified format. Default is
                        long.
  -h, --help            Show this help message and exit

More information and documentation available at:
  https://help.perforce.com/methodics/
Copyright © 2010-2025 Perforce, Inc.

Examples

> pi lic usage
License files:
  b8dbe8ed-2302-4a70-93ba-85f9188ced0c:
    IP(s)                     - *
    Block ID(s)               - *
    Expires on                - 2019-08-05 20:00:00 -0400 EDT

Features usage:
  Users of PI-L1:
    Total number of licenses  - 11
    Licenses in use           - 11
      admin                   - 2019-07-27 00:36:46 -0400 EDT
      albert                  - 2019-07-26 16:45:19 -0400 EDT
      chienshiungwu           - 2019-07-26 16:45:22 -0400 EDT
      ernst                   - 2019-07-26 16:44:30 -0400 EDT
      george                  - 2019-07-26 16:43:26 -0400 EDT
      isaac                   - 2019-07-26 16:45:25 -0400 EDT
      jane                    - 2019-07-26 16:44:32 -0400 EDT
      louis                   - 2019-07-26 16:45:30 -0400 EDT
      mdxtut                  - 2019-07-26 16:45:34 -0400 EDT
      sophie                  - 2019-07-26 16:45:37 -0400 EDT
      vera                    - 2019-07-26 16:45:40 -0400 EDT
> pi lic usage --format=json
{
  "features": {
    "PI-L1": {
      "assignees": [
        {
          "name": "admin", 
          "timestamp": 1564202560405
        }, 
        {
          "name": "albert", 
          "timestamp": 1564173919193
        }, 
        {
          "name": "chienshiungwu", 
          "timestamp": 1564173922159
        }, 
        {
          "name": "ernst", 
          "timestamp": 1564173870779
        }, 
        {
          "name": "george", 
          "timestamp": 1564173806305
        }, 
        {
          "name": "isaac", 
          "timestamp": 1564173925272
        }, 
        {
          "name": "jane", 
          "timestamp": 1564173872189
        }, 
        {
          "name": "louis", 
          "timestamp": 1564173930837
        }, 
        {
          "name": "mdxtut", 
          "timestamp": 1564173934421
        }, 
        {
          "name": "sophie", 
          "timestamp": 1564173937563
        }, 
        {
          "name": "vera", 
          "timestamp": 1564173940348
        }
      ], 
      "total": 11
    }
  }, 
  "license_file": {
    "b8dbe8ed-2302-4a70-93ba-85f9188ced0c": {
      "blocks": [
        "*"      ], 
      "expiration_date": 1565049600000, 
      "ips": [
        "*"      ]
    }
  }
}