Sun GlassFish Enterprise Server v3 Prelude Administration Guide

Administering Audit Modules

The following topics are addressed here:

ProcedureTo Create an Audit Module

The remote create-audit-module command enables you to create an audit module for the add-on component that implements the audit capabilities.

  1. Ensure that the server is running.

    Remote commands require a running server.

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


Example 6–2 Creating an Audit Module

The following example command creates an audit module named sampleAuditModule on localhost:


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

Information similar to the following is displayed:


Creation of AuditModule sampleAuditModule completed successfully

Command create-audit-module executed successfully.

ProcedureTo List Audit Modules

The remote list-audit-modules command enables you to list the audit modules on one of the following targets:

  1. Ensure that the server is running.

    Remote commands require a running server.

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


Example 6–3 Listing Audit Modules

The following example command lists the audit modules on localhost:


asadmin list-audit-modules

Information similar to the following is displayed:


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

ProcedureTo Delete an Audit Module

The remote delete-audit-module command allows you to delete an existing audit module.

  1. Ensure that the server is running.

    Remote commands require a running server.

  2. Delete an audit module by using the delete-audit-module(1) command.


Example 6–4 Deleting an Audit Module

The following example command deletes sampleAuditModule from localhost:


asadmin delete-audit-module sampleAuditModule

Information similar to the following is displayed:


Deletion of Audit Module sampleAuditModule completed successfully

Command delete-audit-module executed successfully.