Published on InterSystems Developer Community (https://community.intersystems.com)

Home > Accessing %Monitor.System.License properties

Question
Kevin McGinn · Apr 14, 2022

Accessing %Monitor.System.License properties

I am writing a Python tools I want to access the %Monitor.System.License properties:

  1. AvailableDist
  2. AvailableLocal
  3. MaxUsedDist
  4. MaxUsedLocal
  5. CurrentUsedDist
  6. CurrentUsedLocal

Initially I want to develop Objectscript to verify access to the properties. But I can not figure the proper syntax.

I first attempted:

set ans = ##class(%Monitor.System.License).AvailableDist

which failed.

I tried another approach:

set ans = ##CLASS(%Monitor.System.License).%GetParameter("AvailableLocal")

which also failed. There is open method so it appears access options are limited. I am missing something about this class. I have not encountered such issues accessing other classes. Any help in either objectscript or Python form would be helpful.

#ObjectScript #Python #Caché
Product version: Caché 2018.1

Source URL:https://community.intersystems.com/post/accessing-monitorsystemlicense-properties