Oracle GlassFish Server 3.0.1 Monitoring Scripting Client Installation and Quick Start Guide

ProcedureTo Run a Script for Monitoring GlassFish Server

  1. Ensure that the server is running.

    Remote subcommands require a running server.

  2. Ensure that monitoring is enabled for GlassFish Server.

    If monitoring for GlassFish Server is disabled, no events that your script is listening for are sent.

    For information about how to enable monitoring for GlassFish Server, see To Enable Monitoring in Oracle GlassFish Server 3.0.1 Administration Guide.

  3. Run the run-script subcommand.

Example 1–1 Running a Script for Monitoring GlassFish Server

This example runs the script /tools/mon/modulestarted.js.

asadmin> run-script /tools/mon/modulestarted.js

See Also

You can also view the full syntax and options of the subcommand by typing asadmin help run-script at the command line.