Write a console event listener class or implement the default methods in the AMConsoleListenerAdapter class.
Compile the code.
Register the listener in the Administration Service.
Access Manager includes a sample implementation of the ConsoleEventListener. The Sun Java System Access Manager 7.1 Java API Reference also contains more detailed information on the listener interfaces and class.