Sun Java System Application Server Enterprise Edition 8.1 2005Q2 Administration Guide

- Previous: To configure monitoring levels using the Admin Console
- Next: Admin Console Tasks for Viewing Monitoring Data

## To configure monitoring using the asadmin tool

To turn monitoring off, or to set a level for monitoring a component or service, you can use the Admin Console as described in To configure monitoring levels using the Admin Console.

1. Use the `get` command to find out what services and components currently have monitoring enabled.

       asadmin> get --user admin-user server.monitoring-service.module-monitoring-levels.*

   Returns:

       server.monitoring-service.module-monitoring-levels.
       connector-connection-pool = OFF
       server.monitoring-service.module-monitoring-levels.
       connector-service = OFF
       server.monitoring-service.module-monitoring-levels.ejb-container = OFF
       server.monitoring-service.module-monitoring-levels.http-service = OFF
       server.monitoring-service.module-monitoring-levels.jdbc-connection-pool = OFF
       server.monitoring-service.module-monitoring-levels.jms-service = OFF
       server.monitoring-service.module-monitoring-levels.jvm = OFF
       server.monitoring-service.module-monitoring-levels.orb = OFF
       server.monitoring-service.module-monitoring-levels.thread-pool = OFF
       server.monitoring-service.module-monitoring-levels.transaction-service = OFF
       server.monitoring-service.module-monitoring-levels.web-container = OFF

2. Use the `set` command to enable monitoring.

   For example, to enable monitoring for the HTTP service:

       asadmin> set --user admin-user
       server.monitoring-service.module-monitoring-levels.http-service=LOW

   To disable monitoring, use the `set` command and specify `OFF` for the monitoring level.

- Previous: To configure monitoring levels using the Admin Console
- Next: Admin Console Tasks for Viewing Monitoring Data

- © 2010, Oracle Corporation and/or its affiliates