If you are using wadm CLI on the same machine where the Administration Server is installed, then you do not need to know the Administration Server's port number. You are required to know the port number only if you have configured Administration Node and need to use wadm CLI to connect to a remote Administration Server.
Question:Where can I find the CLI for Sun Java System Web Server 7.0 administration?
Answer:The administration CLI is located at install-root/bin/wadm
. To use the CLI, you need to know:
Administration server hostname (default is localhost
).
SSL port for the administration server (default is 8989).
Administration server user name (default is admin
).
Administration server password.
Administration server needs to be running in order to use the
CLI. You can start the server by running install-root/admin-server/bin/startserv
.
install-root/samples/admin/scripts
directory contains scripts that you can run using the wadm command line utility. wadm is built on a TCLengine
and hence supports TCL scripting. These scripts can be used to perform common
administrative tasks. They also demonstrate how new utilities can be built
on top of existing commands.
The following table describes the scripts:
Table 4–1 Sample wadm Scripts
Script |
Description |
Usage |
---|---|---|
enable-ssl.tcl |
Enables SSL on a given virtual server and port. |
wadm -f enable-ssl.tcl <config> <vs> <server> <port> |
filter-mime.tcl |
Fetches the matching MIME types from the given configuration and virtual server. |
wadm -f filter-mime.tcl "<regex>" <config> <vs> |
remove-mime.tcl |
Removes the matching MIME types from the given configuration and virtual server. |
wadm -f remove-mime.tcl "<regex>" <config> <vs> |
add-mime-ext.tcl |
Adds the specified extension to the matching MIME types in the given configuration and virtual server. |
wadm -f add-mime-ext.tcl "<regex>" "ext" <config> <vs> |
summary.tcl |
Provides a summary of the installation. It contains list of listeners, ports, and SSL status. |
wadm -f summary.tcl |
list-webapps.tcl |
Provides a summary of all the deployed web applications. |
wadm -f list-webapps.tcl |
collate-logs.tcl |
Provides a collated logs across multiple nodes. |
wadm -f collate-logs.tcl <config> <node1> <node2> .. |
renew-selfsigned-cert.tcl |
Allows renewal of self signed certificates with a given nickname |
wadm -f renew-selfsigned-cert.tcl <config> <cert-nickname> [<validity>] |