23.4.6. Taking a Site Offline via the CLI


Use JBoss Data Grid's Command Line Interface (CLI) to manually take a site from a cross-datacentre replication configuration down if it is unresponsive using the site command.
The site command can be used to check the status of a site as follows:
[jmx://localhost:12000/MyCacheManager/namedCache]> site --status ${SITENAME}
Copy to Clipboard Toggle word wrap
The result of this command would either be online or offline according to the current status of the named site.
The command can be used to bring a site online or offline by name as follows:
[jmx://localhost:12000/MyCacheManager/namedCache]> site --offline ${SITENAME}
Copy to Clipboard Toggle word wrap
[jmx://localhost:12000/MyCacheManager/namedCache]> site --online ${SITENAME}
Copy to Clipboard Toggle word wrap
If the command is successful, the output ok displays after the command.
For more information about the JBoss Data Grid CLI and its commands, refer to the Developer Guide's chapter on the JBoss Data Grid Command Line Interface (CLI)
Red Hat logoGithubredditYoutubeTwitter

Learn

Try, buy, & sell

Communities

About Red Hat Documentation

We help Red Hat users innovate and achieve their goals with our products and services with content they can trust. Explore our recent updates.

Making open source more inclusive

Red Hat is committed to replacing problematic language in our code, documentation, and web properties. For more details, see the Red Hat Blog.

About Red Hat

We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.

Theme

© 2026 Red Hat
Back to top