Skip to main content

Quick Reference of gfsh Commands by Functional Area

CommandDescriptionAvailability
debugEnable or disable debugging output in gfsh.online, offline
echoEcho the given text, which may include system and user variables.online, offline
exitExit the gfsh shell. You can also use quit to exit the shell.online, offline
helpIf the argument is a gfsh command, displays syntax and usage information for the command. If there are no arguments, displays a list of all available commands.online, offline
hintDisplay information on topics and a list of commands associated with a topic.online, offline
historyShow or save the command history.online, offline
runExecute a set of GFSH commands.online, offline
set variableSet variables in the GFSH environment.online, offline
shExecutes operating system (OS) commands.offline, online
sleepDelay gfsh command execution.online, offline
versionDisplay product version information.online, offline

Configuration Commands

CommandDescriptionAvailability
alter runtimeAlters configuration properties for one or more running members.online
change loglevelChanges the logging level on specified servers.online
configure pdxAlters cluster-wide PDX configuration settings for all caches. Note: Must be run before starting data members to enforce settings.online
describe configDisplays the configuration of a member.online
export configExports configurations, data, logs, and stack traces.online
export cluster-configurationExports a shared configuration ZIP containing cache.xml, gemfire.properties, and required JAR files.online
import cluster-configurationImports an exported configuration.online
status cluster-config-serviceReports the status of the cluster configuration service.online

Data Commands

CommandDescriptionAvailability
export dataExport user data from a region to a file.online
getDisplay an entry in a region.online
import dataImport user data from a file to a region.online
locate entryLocate a region entry on a member.online
putAdd or update a region entry.online
queryRun queries against Geode regions.online
removeRemove an entry from a region.online
wan-copy region Copy the entries of a region in a WAN site onto the same region in another WAN site, using a gateway sender.online

Deployment Commands

CommandDescriptionAvailability
deployDeploy JAR-packaged applications to a member or members.online
list deployedDisplay a list of JARs that were deployed to members using the deploy command.online
undeployUndeploy the JAR files that were deployed on members or groups using deploy command.online

Disk Store Commands

CommandDescriptionAvailability
alter disk-storeModify an existing Geode resource.online
backup disk-storeBack up persistent data from all members to the specified directory.online
compact disk-storeCompact online disk-stores.online
compact offline-disk-storeCompact an offline disk store.online, offline
create disk-storeDefines a pool of one or more disk stores, which can be used by regions and client subscription queues.online
describe disk-storeDisplay information about a member's disk store.online
describe offline-disk-storeDisplay information about an offline member's disk storeonline, offline
destroy disk-storeDeletes a disk store and all files on disk used by the disk store. Data for closed regions that previously used this disk store is lost.online
list disk-storesList all available disk stores in a Geode cluster.online
revoke missing-disk-storeInstruct the cluster member(s) to stop waiting for a disk store to be available.online
show missing-disk-storesDisplay a summary of the disk stores that are currently missing from the cluster.online
validate offline-disk-storeValidate offline disk stores.online, offline

Durable CQ and Client Commands

CommandDescriptionAvailability
list durable-cqsList durable client CQs associated with the specified durable client id.online
close durable-cqCloses the durable CQ registered by the durable client and drain events held for the durable CQ from the subscription queue.online
close durable-clientAttempts to close the durable client. The client must be disconnected.online
show subscription-queue-sizeShows the number of events in the subscription queue. If a CQ name is provided, it counts the number of events in the subscription queue for the specified CQ.online

Function Execution Commands

CommandDescriptionAvailability
destroy functionDestroy or unregister a function. The default is for the function to be unregistered from all members.online
execute functionExecute the function with the specified ID. By default, executes on all members.online
list functionsDisplay a list of registered functions. The default is to display functions for all members.online

Gateway (WAN) Commands

CommandDescriptionAvailability
alter async-event-queueAlter attributes of a specified asynchronous event queue.online
create async-event-queueCreates an asynchronous event queue.online
create gateway-receiverCreates a gateway receiver on one or more members.online
create gateway-senderCreates a gateway sender on one or more members.online
destroy async-event-queueDestroys an asynchronous event queue on one or more members.online
destroy gateway-senderDestroys a gateway sender on one or more members.online
list async-event-queuesDisplay a list of async event queues for all members.online
list gatewaysDisplays the gateway senders and receivers for a member or members.online
load-balance gateway-senderCauses the specified gateway sender to close its current connections and reconnect to remote gateway receivers in a more balanced fashion.online
pause gateway-senderPause a gateway sender.online
resume async-event-queue-dispatcherResumes dispatching of events on a specified asynchronous event queue which is currently in a paused state.online
resume gateway-senderResumes specified gateway sender that is currently in a paused state.online
start gateway-receiverStart the gateway receiver on a given member or group of members.online
start gateway-senderStart the gateway sender on a member or members.online
status gateway-receiverDisplay the status of the specified gateway receiver.online
status gateway-senderDisplay the status of the specified gateway sender.online
stop gateway-receiverStop the gateway receiver on a member or members.online
stop gateway-sendertop a gateway sender with a given id on a specified member or members of a specified member group.online

Geode AsyncEventQueue Commands

CommandDescriptionAvailability
alter async-event-queueAlter attributes of a specified asynchronous event queue.online
create async-event-queueCreates an asynchronous event queue.online
destroy async-event-queueDestroys an asynchronous event queue on one or more members.online
list async-event-queuesDisplay a list of async event queues for all members.online
resume async-event-queue-dispatcherResumes dispatching of events on a specified asynchronous event queue which is currently in a paused state.online

Geode Monitoring Commands

CommandDescriptionAvailability
describe clientDisplays details about a specified client.online
describe memberDisplay details of a member with given name/id.online
export logsExport/dump logs to a given directory.online
export stack-tracesExport the stack trace for a member or members.online
gcForce garbage collection on a member or members. (Development only, not advised for production systems.)online
list clientsDisplays a list of connected clients.online
list membersDisplay all or a subset of members.online
netstatReport network information and statistics via the "netstat" operating system command.online
show dead-locksDisplay deadlocks, logs, metrics and missing disk-stores.online
show logDisplay the log for a member.online
show metricsDisplay or export metrics for the entire cluster, a member or a region.online
shutdownShut down all members that have a cache.online
start jconsoleStart the JDK JConsole monitoring application in a separate process. JConsole automatically connects to a running JMX Manager node if one is availableonline, offline
start jvisualvmStart the JDK's Java VisualVM monitoring application in a separate process.online, offline
start pulseLaunch the Geode Pulse monitoring dashboard tool in the user's default system browser.online, offline

Index Commands

CommandDescriptionAvailability
clear defined indexesClears all the defined indexes.online, offline
create defined indexesCreates all the defined indexes.online
create indexCreate an index that can be used when executing queries.online
define indexDefine an index that can be used when executing queries. Then you can create multiple indexes all at once.online, offline
destroy indexDestroy or remove the specified index.online
list indexesDisplay the list of indexes created for all members.online

JMX Connection Commands

CommandDescriptionAvailability
connectConnect to a jmx-manager either directly or via a locator.offline
describe connectionDisplay connection information details.online, offline
disconnectClose any active connection(s).online

Locator Commands

CommandDescriptionAvailability
start locatorStart a locator. The command creates a subdirectory and log file named after the locator. If the locator detects that no other JMX Manager exists, then the locator will automatically start an embedded JMX Manager and connect the current gfsh session to the JMX Manager.online, offline
status locatorDisplays the status of the specified locator.online, offline
stop locatorStop a locator.online, offline

Lucene Commands

CommandDescriptionAvailability
create lucene indexCreate a Lucene index.online
describe lucene indexDescribe a Lucene index.online
destroy lucene indexDestroy a Lucene index.online
list lucene indexesList Lucene indexes created for all members. The optional --with-stats qualifier shows activity on the indexes.online
search luceneSearch a Lucene index.online

PDX Commands

CommandDescriptionAvailability
configure pdxConfigure Portable Data eXchange for all the cache(s) in the cluster.online, offline
pdx renameRenames PDX types in an offline disk store.online, offline

Query Service Commands

CommandDescriptionAvailability
alter query-serviceAlter configuration details of the query service.online
describe query-servicePrint the information that describes the current configuration of the query service.online

Region Commands

CommandDescriptionAvailability
alter regionAlters the configuration of a region.online
create regionCreate and configure a region.online
describe regionDisplay the attributes and key information of a region.online
destroy regionDestroy or remove a region.online
list regionsDisplay regions of a member or members. If no parameter is specified, all regions in the cluster are listed.online
rebalanceRebalance partitioned regions.online
restore redundancyRestore redundancy to partitioned regions and optionally reassign which members host the primary copies.online
status redundancyDisplay the redundancy status of partitioned regions.online

Server Commands

CommandDescriptionAvailability
start serverStart a Geode cache server process.online, offline
status serverDisplay the status of the specified Geode cache server.online, offline
stop serverStop a Geode cache server.online, offline