-
Language:
English
-
Language:
English
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}
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}
[jmx://localhost:12000/MyCacheManager/namedCache]> site --online ${SITENAME}
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)