Issue a command to a server or cluster from the command line.
wsh [- svr <server> | -cluster <cluster>] <command>
Where server
or cluster
is the name of the server or cluster to which you are issuing the
command. Executes <command> relative to $djc.home/bin/<command>.
You must log in to the server (host and port) to which you are issuing the command before running wsh. For example:
wlogin test-pc:8000
Command |
Description |
---|---|
|
Logs in the user. |
|
Logs the user out. |
|
Displays the contents of <file> to the console. |
|
Lists the contents of the directory <dir>. |
|
Creates the directory <dir>. |
|
Deletes the file <file>. |
|
Deletes the directory <dir>. |
|
Extracts the contents of the JAR file <jar> to the absolute path of “/”. |
|
Displays the current server statistics to the console. |
|
Displays the current server boot cycle to the console. |
|
Echoes the current server status to the console. |
|
Refreshes the entity, specified as entityType:entityName. |
|
Refreshes the server to which you are logged in. |
|
Restarts the server to which you are logged in. |
|
Stops the server to which you are logged in. |
|
Adds <name> to the server’s startModules. |
|
Removes <name> from the server’s startModules. |
From the bin subdirectory of the EAServer installation, this example logs in to the server test-pc, then lists the contents of the deploy subdirectory:
wlogin test-pc:8000 Username: admin@system Password: admin1 wsh ls ~/deploy