|
|||
1. Solaris Management Tools (Road Map) 2. Working With the Solaris Management Console (Tasks) 3. Working With the Sun Java Web Console (Tasks) What's New in Administering the Java Web Console? Getting Started With the Java Web Console (Task Map) Getting Started With the Java Web Console Troubleshooting the Java Web Console Software (Task Map) Troubleshooting the Java Web Console Software Java Web Console Reference Information 4. Managing User Accounts and Groups (Overview) 5. Managing User Accounts and Groups (Tasks) 6. Managing Client-Server Support (Overview) 7. Managing Diskless Clients (Tasks) 8. Introduction to Shutting Down and Booting a System 9. Shutting Down and Booting a System (Overview) 10. Shutting Down a System (Tasks) 11. Modifying Solaris Boot Behavior (Tasks) 12. Booting a Solaris System (Tasks) 13. Troubleshooting Booting a Solaris System (Tasks) 14. Managing the Solaris Boot Archives (Tasks) 15. x86: GRUB Based Booting (Reference) 16. Managing Services (Overview) 18. Managing Software (Overview) 19. Managing Software With Solaris System Administration Tools (Tasks) 20. Managing Software by Using Package Commands (Tasks) 21. Managing Solaris Patches by Using the patchadd Command (Tasks) |
Configuring the Java Web ConsoleThe Java Web Console is preconfigured to run without administrator intervention. However, you might choose to change some of the web console's default behavior by overriding the console's configuration properties. Note - Starting with the Solaris 10 11/06 OS, you must use the wcadmin command to change these properties. Previously, the smreg command was used. For more information about the wcadmin command, see the wcadmin(1M) man page. Properties in the console's configuration files control the behavior of the console. To change the behavior, you define new values for properties to override the default values. The default values of most properties should not be overridden unless there is a specific need that the default values do not provide, such as specifying your own login service. In general, the property values that you might consider changing are the following:
See Example 3-5 for an example of specifying the auditing implementation. How to Change Java Web Console Properties
Example 3-1 Changing the Java Web Console's Session Timeout PropertyThis example shows how to set the session time out value to 5 minutes. # wcadmin add -p -a console session.timeout.value=5 Example 3-2 Configuring the Java Web Console Logging LevelThis example shows you how to set the logging level to all. # wcadmin add -p -a console logging.default.level=all Example 3-3 Resetting the Java Web Console Logging Level to the Default ValueThis example shows how to reset the logging level to the default. # wcadmin remove -p -a console logging.default.level Example 3-4 Specifying a Java Version for the Java Web ConsoleThis example shows how to set the Java version for the console. # wcadmin add -p -a console java.home=/usr/java Example 3-5 Choosing an Auditing Implementation for the Java Web ConsoleThis example shows you how to set the auditing implementation to None. # wcadmin add -p -a console audit.default.type=None The valid auditing types are:
Java Web Console User IdentityBy default, the web console runs under the user identity, noaccess. However, some system configurations disable the noaccess user, or set the login shell for the noaccess user to an invalid entry to make this user identity unusable. When the noaccess user is not usable, the web console server cannot be started or configured, so an alternative user identity must be specified. Ideally, the user identity should be changed only once, before the console server is configured at initial startup. You can configure the web console to run under an alternative non-root user identity by using either of the following commands before the console starts: # smcwebserver start -u username This command starts the web console server under the specified user identity. The web console server runs under this identity each time the server is subsequently started if the command is issued before the first console start. If you are running at least the Solaris 10 11/06 release, you can also use this command: # wcadmin add -p -a console com.sun.web.console.user=username Note - Starting with the Solaris 10 11/06 release, when the system initially starts, the console also starts and is automatically configured to run under noaccess. Consequently, the user identity is set to noaccess before you are able to change the user identity. Use the following commands to reset the console to its initial unconfigured state. Then, specify a different user identity when you restart the console. # smcwebserver stop # /usr/share/webconsole/private/bin/wcremove -i console # smcwebserver start -u new_user_identity If you are not running at least the Solaris Express 5/06 release, use this command: For the Solaris 10, Solaris 10 1/06, Solaris 10 6/06 releases, use this command: # smreg add -p -c com.sun.web.console.user=username This command causes the web console server to run under the specified user identity the next time the server starts, and each time the server is started. Using the Console Debug Trace LogBy default, the console does not log debug messages. You can turn on debug logging to help troubleshoot console service problems. Use the debug.trace.level property to turn on debug logging by setting the property to a value other than 0. Available choices include the following:
By default, the debug trace log is created in the /var/log/webconsole directory . Starting with the Solaris 10 11/06 release, the log is created in the /var/log/webconsole/console directory. The log file is named console_debug_log. Historical logs, such as console_debug_log.1 and console_debug_log.2 might also exist in this directory. There can be up to five (default setting) historical logs stored in this directory before the earliest log is deleted and a new log is created. Example 3-6 Setting the Console Debug Trace Log LevelUse the following command to set the debug trace log level to 3. For the Solaris 10 11/06 release, use this command: # wcadmin add -p -a console debug.trace.level=3 For the Solaris 10, Solaris 10 1/06, and the Solaris 10 6/06 releases, use this command: # smreg add -p -c debug.trace.level=3 Example 3-7 Checking the Status of the debug.trace.level PropertyTo check the status of the debug.trace.level property, use the wcadmin list or smreg list command. Solaris 10 11/06: # wcadmin list -p | grep "debug.trace.level" If you are not running at least the Solaris Express 5/06 release, use this command: # smreg list -p | grep "debug.trace.level" |
||
|