获取卷或主机统计信息

您可以使用 IBMTSDS_PerformanceStatisticsService.GetStatisticsCollection 方法获取卷或主机统计信息。

过程

  1. 针对 IBMTSDS_PerformanceStatisticsService 使用 enumerateInstanceNames,然后保存引用。
  2. 针对 IBMTSDS_PerformanceStatisticsService 使用 enumerateInstanceNames,然后保存引用。
  3. 针对 IBMTSDS_VolumeManifest(或 CIM_BlockStatisticsManifest 并查找 ElementType 值 8)IBMTSDS_ SystemSpecificCollection(或 CIM_BlockStatisticsManifest 并查找 ElementType 值 4) 使用 enumerateInstances,然后保存 BulkFormat
  4. 针对 GetStatisticsCollection 使用 invokeMethod,且对于卷,ElementType 值设置为 8,或者对于主机设置为 4(如果 ElementType 为空且指定 ElementType 值为 4 和 8)StatisticsFormat 值设置为 2,同时具有步骤 2 中获取的 ManifestCollection 值和第一个步骤中获取的 PerformanceStatisticsCollection 实例值。
  5. 检查输出统计信息 (Statistics)。对于统计信息输出中的每个数组元素,对分号进行字符串记号化,并将属性保存在表中。检查属性。