Solaris Management Console[tm]: General FAQ

Solaris Management Console Upgrades
Solaris Management Console Server Issues
General Solaris Management Console Issues
  • Starting the console gives "can't open toolbox" error
  • Is there a tutorial I can read to learn about Solaris Management Console?
  • Using Solaris Management Console to manage LDAP
  • Software Available for System Administration
  • Tables in the System Administration Guide: Basic Administration list management tools available in various Solaris releases, including Solaris 8 update releases.
  • If the information you need is not found here, send email to smc-interest-ext@Sun.COM

    Solaris Management Console Upgrades

    What do I need to do before upgrading to a Solaris 8 01/01 or later update, which contains Solaris Management Console 2.0 or later?

    IMPORTANT: Previous Solaris Management Console versions are not compatible with Solaris Management Console 2.x. Therefore, before upgrading to a Solaris 8 01/01 or later update, you must first uninstall Solaris Management Console 1.x.

    Solaris Management Console 1.x software may exist on your machine if you installed:

    Use one of the following methods to perform a full uninstall of Solaris Management Console 1.x : Note: The packages must be removed exactly in the order specified. It is possible that one or more of these packages might not exist, depending on the version of Solaris Management Console 1.x you have installed. Optionally, you can remove SUNWhttp and SUNWhtsvl (Sun Web Server) if it was installed simply to run Solaris Management Console 1.x, although that should not be required.


    What if I neglected to remove Solaris Management Console 1.x before upgrading to a Solaris 8 01/01 or later update?

    If you did not uninstall Solaris Management Console 1.0, 1.0.1, or 1.0.2 before you upgraded, you have to remove all the Solaris Management Console 1.x packages. It is critical that you use pkgrm for package removal, instead of /usr/bin/prodreg and you need to carefully follow the order of package removal. Follow these steps:

    1. su root
    2. pkginfo | grep "Solaris Management Console" | grep -v "2.*" | awk '{print $2}'

    3. The package names in the output will identify the Solaris Management Console 1.x pkgs that need to be removed. Remove them using pkgrm.

      Note: The packages must be removed exactly in the order specified, below. It is possible that one or more of these pkgs might not exist, depending on the version of Solaris Management Console 1.x that you have installed.

    4. rm -rf /var/sadm/pkg/SUNWmcapp
    At this point, Solaris Management Console 2.x should now function. If it does not, then it is recommended that you remove 2.x and re-install it by following these steps:
    1. pkgrm SUNWlvmg SUNWlvma SUNWlvmr (Solaris 9 only)
    2. pkgrm SUNWrmui SUNWpmgr (Solaris 9 only)
    3. pkgrm SUNWdclnt SUNWmga SUNWmgapp
    4. pkginfo | grep "Solaris Management Console" | grep "2.*" | awk '{print $2}'

    5. The package names in the output will identify the Solaris Management Console 2.x packages that need to be removed. Remove them using pkgrm.

      Note: The packages must be removed exactly in the order specified, below. It is possible that one or more of these packages might have been installed on top of a Solaris Management Console 1.x package of the same name, and so would have had a numerical suffix appended to its package name to indicate a multiple instance (for example: SUNWmc.2 or SUNWmcc.2). Simply use the full package instance name, but the specified order is critical:

    6. With the Solaris Software 1 of 2 CD in your cdrom drive, run the following commands:
    All previous versions of Solaris Management Console are now removed and Solaris Management Console 2.x is now functional.


    What version of Java is required?

    For Solaris 8, java 1.2.2_06.  For Solaris 9, java1.4

    All Solaris Management Console commands use the following search heuristic to locate a suitable runtime java:


    Solaris Management Console Server Issues

    What are the sequence of steps in the server startup?

    Solaris Management Console configuration takes place when the Java-based server daemon is started, but that daemon is started upon the first connection from the console, NOT at system bootup.  Therefore, a small proxy server (called smcboot) must be running to receive that first connection.

    The proxy server smcboot is a native program that starts during system boot and sits on the Solaris Management Console server port (default is 898) waiting for a connection from the console. After system boot, you will not see any JVM's running relative to Solaris Management Console. Instead, you will see two instances of smcboot processes - one (the parent) on port 898, and another (the child) on port 5987. On Solaris 9, a 3rd child instance is on port 5988. The parent receives connections and redirects them to one of the children, which sits on them until the parent has completed starting up the real Java-based server and is ready to handle those connections.

    When the server is ready, the child redirects those connections back to port 898 and all smcboot instances die. At this point you will see a process that looks something like "/usr/java/bin/../bin/sparc/native_threads/java -Dviper.fifo.path=/tmp/...". This is the JVM running the merged Solaris Management Console/WBEM server.

    It is important to remember that for Solaris Management Console 2.0, /etc/init.d/init.wbem start always starts the smcboot process, and not the real server daemon.  The real daemon will start upon the next connection from the console. It is very important not to run /etc/init.d/init.wbem start when smcboot is running.  If you do, you will encounter conflicting server status messages that cannot be resolved by repeated stopping and starting of the server via the init.wbem command.  You can resolve this situation by implementing the workaround described here.

    Beginning with Solaris Management Console 2.1 on Solaris 9, you don't have to be so cautious, as init.wbem has been     enhanced such that it will automatically run init.wbem stop if it detects smcboot is running, and will then start the real Java-based server.

    Remember that configuration begins when you start the console for the first time, which, in turn, starts the server daemon for the first time.  With Solaris Management Console 2.0, this initial configuration can take a long time, and is the reason why the console appears hung upon that initial launch.  The delay is roughly 5 minutes on an Ultra 60 machine, longer on lower-end machines.  Note: Please be patient and allow the configuration to finish.   With Solaris Management Console 2.1, this delay has been significantly reduced so as to be negligible.

    With 2.1, you can view the progress of the configuration by entering the following in a terminal window before starting the console the first time:

    # /etc/init.d/init.wbem stop
    # /etc/init.d/init.wbem start

    Server gives conflicting status, or just doesn't seem to work.  How can I fix it?

    In Solaris Management Console 2.0, it is possible to stumble into catch-22 situation where init.wbem stop indicates the server is not running, yet init.wbem start indicates it already is! One way for this to happen is to run /etc/init.d/init.wbem start when smcboot is running. Other ways would be if the server daemon crashed or was manually killed.  Effective with Solaris Management Console 2.1, this situation should occur much less frequently.  However, if you find yourself in this situation, implement the following steps: Then with Solaris Management Console 2.0, invoking /etc/init.d/init.wbem start will successfully start the smcboot process, and the server will be available upon the next connection from the console.

    Effective with 2.1, the above steps should not be required if the server becomes unstable for whatever reason. Instead, you should be able to simply run /etc/init.d/init.wbem stop (which will automatically perform the above steps), followed by /etc/init.d/init.wbem start and the server should be back up.


    General Solaris Management Console Issues

    Starting the console gives "can't open toolbox" error

    The console is trying to open a toolbox that does not exist. This typically occurs when the default preference is to open the last opened toolbox from a previous console session, but that toolbox has been deleted.

    To fix this, invoke Console->Preferences, select the "Console" tab, and specify the toolbox you want the console to load by default.

    Is there a tutorial I can read to learn about Solaris Management Console?

    No, but you can simply read the online help by invoking the Help->Overview menu option after launching the console.

    With 2.1, you can also view the online help without launching the console by running this command from a terminal window:

    /usr/j2se/opt/javahelp/demos/bin/hsviewer SMC_hs \
         /usr/sadm/lib/smc/lib/UserGuide.jar

    Using Solaris Management Console to manage LDAP

    Solaris Management Console 2.0 does not support LDAP management.

    To set up Solaris Management Console 2.1 to be able to manage LDAP users and projects, follow these steps:

  • 1. As root, register the LDAP administrative credentials with Solaris Management Console via the /usr/sadm/bin/dtsetup storeCred command. Note that the "Administrator DN" argument given here is just an example and this will vary based on your LDAP setup.
  • # /usr/sadm/bin/dtsetup storeCred
    Administrator DN:cn=Directory Manager
    Password:xxxxxx
    Password (confirm):xxxxxx
  • 2. Verify communication with Directory Service via the following command
  • # /usr/sadm/bin/dtsetup scopes
    Getting list of managable scopes...
    Scope 1 file:/myhost/myhost
    Scope 2 ldap:/myhost/dc=myhost,dc=mycompany,dc=com
    The desired LDAP scope should be listed, similar to the example scope listed from the above command.
  • 3.  Create a toolbox for managing LDAP within Solaris Management Console using the scope reported in step 2. You can either create a brand new toolbox, or edit the default toolbox to have LDAP instead of files scope.
    1. To create a copy of the default toolbox (with all the standard Solaris Management Console tools) that can manage your new LDAP scope, do the following:
  • 4. Start the console and select your new LDAP toolbox. At the command line, type /usr/sadm/bin/smc. Once the console launches, open the new toolbox by clicking Console->Open Toolbox. Use the "Local Toolbox" tab to browse to and select the .tbx file you created in Step 3. Once you select the file and click "Open", you should be ready to manage your LDAP domain.
  • Note that due to a bug in the Users and Projects tools relative to missing or empty directory tables, you must populate the LDAP directory with data before attempting to use Solaris Management Console to manage it.  A fix for this problem should be available via a patch in the near future.