Is there a way to retrieve the units for a metric from a groovy script?
If the topology object type and the metric names are known, then it is possible to get the units.
For example, to get the unit of "Available Paging Space" from a "Host" object, please use the following groovy line in Script Console:
server.TopologyService.getType("Host").getProperty("availablePagingSpace").getUnit().getName()
Result: percent
It is also possible to check the units for different collections from the effective topology type section of the Diagnostic Snapshot. The Diagnostic Snapshot file is in the FMS support bundle. It will be in the first level directory and will have a name in the following format:
DiagnosticSnapshot_.txt
© 2024 Quest Software Inc. ALL RIGHTS RESERVED. Termini di utilizzo Privacy Cookie Preference Center