Datagrid server 8.4.1 no command found error when trying to use for loop and if statement
Issue
Expecting to use FOR loop in datagrid CLI to iterate in datagrid caches it should work fine same as we were using in old infinispan cli in Datagrid 7X
In Datagrid 8.4.1
[at01-40356@cluster//containers/clustered]> for cache in ls caches=
Command not found
In Datagrid 7X , Although this is working when we try to run on old infinipan cli
[domain@at01:9991 cache-container=clustered] for cache in ls ./distributed-cache=
[domain@at01:9991 cache-container=clustered ...] if (result.configuration != default && result.configuration != memcachedCache) of ./distributed-cache=$cache:read-resource()
[domain@at01:9991 cache-container=clustered ...] echo Deleting Cache $cache
[domain@at01:9991 cache-container=clustered ...] end-if
[domain@at01:9991 cache-container=clustered ...] done
Environment
- Redhat Datagrid
- 8.4.1
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.