系统管理指南:基本管理

Procedure如何列出控制台资源和控制台属性

  1. 成为超级用户或同等角色。

    角色包含授权和具有一定权限的命令。有关角色的更多信息,请参见《系统管理指南:安全性服务》中的“配置 RBAC(任务列表)”

  2. 列出控制台资源和控制台属性。

    如果您所运行的版本不低于 Solaris 10 11/06 发行版,请使用以下命令:


    # wcadmin list
    
    Deployed web applications (application name, context name, status):
     
        console      ROOT            [running]
        console      com_sun_web_ui  [running]
        console      console         [running]
        console      manager         [running]
        legacy       myapp           [running]
     
    Registered jar files (application name, identifier, path):
     
        console  audit_jar     /usr/lib/audit/Audit.jar
        console  console_jars  /usr/share/webconsole/lib/*.jar
        console  jato_jar      /usr/share/lib/jato/jato.jar
        console  javahelp_jar  /usr/jdk/packages/javax.help-2.0/lib/*.jar
        console  shared_jars   /usr/share/webconsole/private/container/shared/lib/*.jar
     
    Registered login modules (application name, service name, identifier):
     
        console  ConsoleLogin  userlogin
        console  ConsoleLogin  rolelogin
     
    Shared service properties (name, value):
     
        ENABLE            yes
        java.home         /usr/jdk/jdk1.5.0_06

    注 –

    由于 SMF 使用自身的启用属性(如上一个过程中所示),此 ENABLE 属性将被忽略。ENABLE 属性用于旧式系统,该系统的控制台服务器不是由 SMF 管理。


    对于 Oracle Solaris 10、Solaris 10 1/06 和 Solaris 10 6/06 发行版,请使用以下命令:


    # smreg list
    
     The list of registered plugin applications:
    
    com.sun.web.console_2.2.4       /usr/share/webconsole/console
    com.sun.web.ui_2.2.4    /usr/share/webconsole/com_sun_web_ui
    com.sun.web.admin.example_2.2.4 /usr/share/webconsole/example
    
    The list of registered jar files:
    
    com_sun_management_services_api.jar scoped to ALL
    com_sun_management_services_impl.jar scoped to ALL
    com_sun_management_console_impl.jar scoped to ALL
    com_sun_management_cc.jar scoped to ALL
    com_sun_management_webcommon.jar scoped to ALL
    com_iplanet_jato_jato.jar scoped to ALL
    com_sun_management_solaris_impl.jar scoped to ALL
    com_sun_management_solaris_implx.jar scoped to ALL
    
    The list of registered login modules for service ConsoleLogin:
    
    com.sun.management.services.authentication.PamLoginModule optional
    use_first_pass="true" commandPath="/usr/lib/webconsole";
    com.sun.management.services.authentication.RbacRoleLoginModule requisite
    force_role_check="true" commandPath="/usr/lib/webconsole";
    
    The list of registered server configuration properties:
    
    session.timeout.value=15
    authentication.login.cliservice=ConsoleLogin
    logging.default.handler=com.sun.management.services.logging.ConsoleSyslogHandler
    logging.default.level=info
    logging.default.resource=com.sun.management.services.logging.resources.Resources
    logging.default.filter=none
    logging.debug.level=off
    audit.default.type=None
    audit.None.class=com.sun.management.services.audit.LogAuditSession
    audit.Log.class=com.sun.management.services.audit.LogAuditSession audit.class.fail=none
    authorization.default.type=SolarisRbac
    authorization.SolarisRbac.class=
    com.sun.management.services.authorization.SolarisRbacAuthorizationService
    authorization.PrincipalType.class=
    com.sun.management.services.authorization.PrincipalTypeAuthorizationService
    debug.trace.level=0
    .
    .
    .
    No environment properties have been registered.