This topic explains how to start gfsh, the VMware GemFire command-line interface.
Note: Before you try to start gfsh, confirm that you have set the JAVA_HOME environment variable and that your PATH variable includes the gfsh executable.
On Windows, you must have set the JAVA_HOME environment variable to use gfsh start, stop, and status commands for both locators and servers.
To launch gfsh, execute the following command on a command prompt on any machine that is currently installed with VMware GemFire:
Windows:
<product_directory>\bin\gfsh.bat
Where <product_directory> corresponds to the location where you installed VMware GemFire.
Unix:
<product_directory>/bin/gfsh
Where <product_directory> corresponds to the location where you installed VMware GemFire. Upon execution, the gfsh script appends the required VMware GemFire and JDK Jar libraries to your existing class path.
If you have successfully started gfsh, the gfsh splash screen and prompt appears.
c:\gemfire\latest>gfsh.bat
_________________________ __
/ _____/ ______/ ______/ /____/ /
/ / __/ /___ /_____ / _____ /
/ /__/ / ____/ _____/ / / / /
/______/_/ /______/_/ /_/
Monitor and Manage GemFire
gfsh>
You can also run some gfsh commands directly within your terminal without entering a gfsh prompt. For example:
Windows:
prompt> gfsh start server --name=server1
Unix:
$ gfsh start server --name=server1
For more information, see Creating and Running gfsh Command Scripts.