7.7.12.18 LIST METRICCURRENT

Purpose

The LIST METRICCURRENT command displays the most current metric observations.

Syntax

LIST METRICCURRENT [ metric_name |  attribute_filters ]  [attribute_list]  [DETAIL]

Usage Notes

  • You can use the DESCRIBE METRICCURRENT command to view the complete list of METRICCURRENT attributes.

  • Running the LIST METRICCURRENT command with no other options displays the most current metric observation for all metrics, which results in hundreds of lines of output. To generate more manageable output, use an attribute filter or identify a specific metric name.

  • By default, the LIST METRICCURRENT command does not display fine-grained metric observations. To display fine-grained metric observations, run LIST METRICCURRENT WHERE collection = finegrained.

Examples

Example 7-183 shows the LIST command with filters to display information about the METRICCURRRENT object, and the corresponding output.

Example 7-184 shows the LIST METRICCURRENT command with the ORDER BY and LIMIT options.

Example 7-183 Listing METRICCURRENT Attributes

CellCLI> LIST METRICCURRENT WHERE objectType = 'CELLDISK'

         CD_IO_TM_W_SM_RQ        c9controlfile0  205.5 us/request
         CD_IO_TM_W_SM_RQ        c9datafile0     93.3 us/request
         CD_IO_TM_W_SM_RQ        c9datafile1     0.0 us/request
         CD_IO_TM_W_SM_RQ        c9datafile2     110.5 us/request
         CD_IO_TM_W_SM_RQ        c9datafile3     0.0 us/request
         CD_IO_TM_W_SM_RQ        c9datafile4     541.5 us/request
         CD_IO_TM_W_SM_RQ        c9logfile0      181.2 us/request
         CD_IO_TM_W_SM_RQ        c9logfile1      0.0 us/request
         CD_IO_TM_W_SM_RQ        c9standby0      130.4 us/request

CellCLI> LIST METRICCURRENT WHERE name = CD_IO_TM_W_SM_RQ   -
         AND metricObjectName = c9datafile4 DETAIL   

         name:                   CD_IO_TM_W_SM_RQ
         alertState:             normal
         collectionTime:         2009-07-01T15:19:25-07:00
         metricObjectName:       c9datafile4
         metricType:             Rate
         metricValue:            0.0 us/request
         objectType:             CELLDISK

CellCLI> LIST METRICCURRENT CG_IO_UTIL_LG 
         CG_IO_UTIL_LG   RDB1.BATCH_GROUP                                0 % 
         CG_IO_UTIL_LG   RDB1.INTERACTIVE_GROUP                          0 % 
         CG_IO_UTIL_LG   RDB1.OTHER_GROUPS                               0 % 
         CG_IO_UTIL_LG   RDB2.BATCH_GROUP                               0 % 
         CG_IO_UTIL_LG   RDB2.INTERACTIVE_GROUP                         0 % 
         CG_IO_UTIL_LG   RDB2.OTHER_GROUPS                              0 % 

Example 7-184 Listing METRICCURRENT Attributes Using ORDER BY and LIMIT

CellCLI> LIST METRICCURRENT attributes name, metricObjectName, alertState,   \
         metricValue ORDER BY metricValue desc, metricObjectName asc,        \
         name desc LIMIT 3

CD_IO_TM_R_LG   c9FLASH0   normal    160,514,088   us
CD_IO_TM_R_LG   c9FLASH1   normal    156,659,463   us
DB_IO_TM_SM     ASM        normal    33,111,890    us