What command can be used for monitoring flash cache hit_percent?
Applies to
- ONTAP 9
- Flash Cache
Answer
- To view the flash cache hit percent, the following command is used:
Example:
::*> statistics start -sample-id test -object ext_cache_obj -counter inserts|hit_percent
Statistics collection is being started for sample-id: test
::*> statistics stop -sample-id test
Statistics collection is being stopped for sample-id: test
::*> statistics show -sample-id test
Object: ext_cache_obj
Instance: ec0
Start-time: 12/7/2021 22:11:25
End-time: 12/7/2021 22:11:45
Elapsed-time: 20s
Scope: fas8200-dal-1a
Counter Value
-------------------------------- --------------------------------
hit_percent 0%
inserts 0
Object: ext_cache_obj
Instance: ec0
Start-time: 12/7/2021 22:11:25
End-time: 12/7/2021 22:11:45
Elapsed-time: 20s
Scope: fas8200-dal-1b
Counter Value
-------------------------------- --------------------------------
hit_percent 0%
inserts 0
4 entries were displayed.
2. To continuously display the flash cache performance data at a regular interval, the following command is used:
Example:
::*> statistics show-periodic -object ext_cache_obj -instance ec0 -interval 2 -iterations 5 -counter inserts|hit_percent
fas8200-2n-dal-1: ext_cache_obj.ec0: 12/7/2021 22:00:08
hit Complete Number of
percent inserts Aggregation Constituents
------- -------- ----------- ------------
0% 0 n/a n/a
0% 0 n/a n/a
0% 0 n/a n/a
0% 0 n/a n/a
0% 0 n/a n/a
fas8200-2n-dal-1: ext_cache_obj.ec0: 12/7/2021 22:00:18
hit Complete Number of
percent inserts Aggregation Constituents
------- -------- ----------- ------------
Minimums:
0% 0 - -
Averages for 5 samples:
0% 0 - -
Maximums:
0% 0 - -
Additional Information
Add your text here.