Oracle GlassFish Server 3.0.1 Administration Guide

Administering Audit Modules

The following topics are addressed here:

ProcedureTo Create an Audit Module

Use the create-audit-module subcommand in remote mode to create an audit module for the add-on component that implements the audit capabilities.

  1. Ensure that the server is running.

    Remote subcommands require a running server.

  2. Create an audit module by using the create-audit-module(1) subcommand.

    Information about properties for this subcommand is included in this help page.


Example 11–7 Creating an Audit Module

This example creates an audit module named sampleAuditModule:


asadmin> create-audit-module 
--classname com.sun.appserv.auditmodule --property defaultuser=
admin:Password=admin sampleAuditModule
Command create-audit-module executed successfully.

See Also

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

ProcedureTo List Audit Modules

Use the list-audit-modules subcommand in remote mode to list the audit modules on one of the following targets:

  1. Ensure that the server is running.

    Remote subcommands require a running server.

  2. List the audit modules by using the list-audit-modules(1) subcommand.


Example 11–8 Listing Audit Modules

This example lists the audit modules on localhost:


asadmin> list-audit-modules
audit-module : default
audit-module : sampleAuditModule
Command list-audit-modules executed successfully.

See Also

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

ProcedureTo Delete an Audit Module

Use the delete-audit-module subcommand in remote mode to delete an existing audit module.

  1. Ensure that the server is running.

    Remote subcommands require a running server.

  2. List the audit modules by using the list-audit-modules(1) subcommand.

  3. Delete an audit module by using the delete-audit-module(1) subcommand.


Example 11–9 Deleting an Audit Module

This example deletes sampleAuditModule:


asadmin> delete-audit-module sampleAuditModule
Command delete-audit-module executed successfully.