wsh

Description

Issue a command to a server or cluster from the command line.

Syntax

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

login

Logs in the user.

logout

Logs the user out.

cat <file>

Displays the contents of <file> to the console.

ls <dir>

Lists the contents of the directory <dir>.

mkdir <dir>

Creates the directory <dir>.

rm <file>

Deletes the file <file>.

rmdir <dir>

Deletes the directory <dir>.

extract <jar>

Extracts the contents of the JAR file <jar> to the absolute path of “/”.

get-statistics

Displays the current server statistics to the console.

print-server

Displays the current server boot cycle to the console.

server-status

Echoes the current server status to the console.

refresh <entity>

Refreshes the entity, specified as entityType:entityName.

refresh-server

Refreshes the server to which you are logged in.

restart-server

Restarts the server to which you are logged in.

stop-server

Stops the server to which you are logged in.

start-module <name>

Adds <name> to the server’s startModules.

stop-module <name>

Removes <name> from the server’s startModules.

Examples

Example 1

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