cache show cmd
Parameters
Parameter |
Description |
Value |
---|---|---|
cur | Command being executed in a cache. | None. |
trace | Command executed in a cache. | None. |
type | Command type. | The value can be all,recovervol, recoverstp,stopvoldsg, stopstpdsg, or protect. all: all command types. recovervol: command for recovering a volume cache. recoverstp: command for recovering a stripe cache. stopvoldsg: command for stopping the disk flushing of a volume cache. stopstpdsg: command for stopping the disk flushing of a stripe cache. protect: command for protecting cache data. |
result | Command execution result. | The value can be all, begin,ok, or fail. all: all results. begin: command executed at the beginning. ok: command executed successfully. fail: command that fails to be executed. |
obj | Cache object. | None. |
volumeId | Volume ID. | The value ranges from 0 to 2^64 - 1. |
layer | Range of cache information that you want to view. | The value can be a, v, or s. a: volume cache and stripe cache. v: volume cache. s: stripe cache. |
Example
To view the execution of commands which result is OK in a cache.
admin:/diagnose>cache show cmd trace all ok ---------START--CACHE--CMD--TRACE---------- (000) [2015-07-16 17:10:19] SET_VOLUME_CACHE_WORK_CONTROLLER,volumeId(0x4000000065):cmd ok. (001) [2015-07-16 17:10:19] SET_VOLUME_CACHE_WORK_CONTROLLER,volumeId(0x4000000071):cmd ok. (002) [2015-07-16 17:10:19] SET_VOLUME_CACHE_WORK_CONTROLLER,volumeId(0x4000000089):cmd ok. (003) [2015-07-16 17:10:19] SET_VOLUME_CACHE_WORK_CONTROLLER,volumeId(0x400000009d):cmd ok. (004) [2015-07-16 17:10:19] SET_VOLUME_CACHE_WORK_CONTROLLER,volumeId(0x4000000095):cmd ok. (005) [2015-07-16 17:10:19] SET_VOLUME_CACHE_WORK_CONTROLLER,volumeId(0x40000000a1):cmd ok. (006) [2015-07-16 17:10:19] SET_VOLUME_CACHE_WORK_CONTROLLER,volumeId(0x4000000099):cmd ok. (007) [2015-07-16 17:10:19] SET_VOLUME_CACHE_WORK_CONTROLLER,volumeId(0x40000000b1):cmd ok. (008) [2015-07-16 17:10:19] SET_VOLUME_CACHE_WORK_CONTROLLER,volumeId(0x40000000a9):cmd ok. (009) [2015-07-16 17:10:19] SET_VOLUME_CACHE_WORK_CONTROLLER,volumeId(0x40000000ad):cmd ok. (010) [2015-07-16 17:10:19] SET_VOLUME_CACHE_WORK_CONTROLLER,volumeId(0x40000000b5):cmd ok. (011) [2015-07-16 17:10:19] SET_VOLUME_CACHE_WORK_CONTROLLER,volumeId(0x40000000a5):cmd ok. (012) [2015-07-16 17:10:19] SET_VOLUME_CACHE_WORK_CONTROLLER,volumeId(0x40000000b9):cmd ok. (013) [2015-07-16 17:10:19] SET_VOLUME_CACHE_WORK_CONTROLLER,volumeId(0x40000000c1):cmd ok. (014) [2015-07-16 17:10:19] SET_VOLUME_CACHE_WORK_CONTROLLER,volumeId(0x40000000bd):cmd ok. (015) [2015-07-16 17:10:19] SET_VOLUME_CACHE_WORK_CONTROLLER,volumeId(0x40000000c5):cmd ok. (016) [2015-07-16 17:10:19] SET_STRIPE_CACHE_WORK_CONTROLLER,volumeId(0x1000000001):cmd ok. (017) [2015-07-16 17:10:19] SET_STRIPE_CACHE_WORK_CONTROLLER,volumeId(0x1000000019):cmd ok. (018) [2015-07-16 17:10:19] SET_STRIPE_CACHE_WORK_CONTROLLER,volumeId(0x100000000d):cmd ok. (019) [2015-07-16 17:10:19] SET_STRIPE_CACHE_WORK_CONTROLLER,volumeId(0x1000000009):cmd ok. (020) [2015-07-16 17:10:19] SET_STRIPE_CACHE_WORK_CONTROLLER,volumeId(0x1000000000):cmd ok. (021) [2015-07-16 17:10:19] SET_STRIPE_CACHE_WORK_CONTROLLER,volumeId(0x1000000011):cmd ok. (022) [2015-07-16 17:10:19] SET_STRIPE_CACHE_WORK_CONTROLLER,volumeId(0x100000002d):cmd ok. (023) [2015-07-16 17:10:19] SET_STRIPE_CACHE_WORK_CONTROLLER,volumeId(0x1000000005):cmd ok. (024) [2015-07-16 17:10:19] SET_STRIPE_CACHE_WORK_CONTROLLER,volumeId(0x100000003d):cmd ok. (025) [2015-07-16 17:10:19] SET_STRIPE_CACHE_WORK_CONTROLLER,volumeId(0x1000000029):cmd ok. (026) [2015-07-16 17:10:19] SET_STRIPE_CACHE_WORK_CONTROLLER,volumeId(0x1000000025):cmd ok. (027) [2015-07-16 17:10:19] SET_STRIPE_CACHE_WORK_CONTROLLER,volumeId(0x1000000015):cmd ok. (028) [2015-07-16 17:10:19] SET_STRIPE_CACHE_WORK_CONTROLLER,volumeId(0x1000000035):cmd ok. (029) [2015-07-16 17:10:19] SET_STRIPE_CACHE_WORK_CONTROLLER,volumeId(0x100000006d):cmd ok. -----END-CACHE-CMD-TRACE(find 30 cmdtrace)-----