Sun Java System Web Server 7.0 Update 1 Administrator's Guide

CLI Scripts

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 1–1 Sample CLI 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>]