- The following example subscribes to the desiredLoadSpecCount statistic for the cores:
set rdsClientInfo [av::subscribe client {loadspec,desiredLoadSpecCount@cores}]
- You can also use a wildcard character (*) to subscribe to all loadspec statistics, as in the following
Example: set rdsClientInfo [av::subscribe client {loadspec,*@cores}]
- Next, you get the statistics and save them to an array:
set rdoInfo [av::get $rdsClientInfo -resultdataobjects]
array set statsArray [av::get $rdoInfo]
- Finally, you obtain the per-core statistic based on the device’s IP address and port group, as in the following examples:
(Note: The format is ip/slot/portGroup:index, and index is zero-relative. )
puts $statsArray(-loadspec,desiredLoadSpecCount@10.61.38.40/1/13:0)
puts $statsArray(-loadspec,desiredLoadSpecCount@10.61.38.40/1/13:1)