Quickstart: Installing and Setting Up Sun Management Center 3.6

(On Solaris 10) Monitoring a Zone Using Sun Management Center

Zone is a virtualized operating system environment that you can set up for systems that run the Solaris 10 Operating System (OS).

Every Solaris 10 OS contains a global zone, the default zone for the system. You can create local zones inside a global zone. You can monitor a zone by running an agent inside a local zone.

ProcedureTo Create a Local Zone

You can create a local zone either through zone commands or through the zone wizard of Solaris Container Manager.

When you create a local zone using Solaris Container Manager, ensure that you add the base directory of Sun Management Center to the inherit-pkg-dir directory. You can specify this in the “Provide Inherit Package” step of the wizard.

For more information, see “Managing Zones” in Installing and Administering Solaris Container Manager 1.1.

Step

    Create a local zone using zone commands.

    1. Become superuser and open two terminal windows.

    2. From the first terminal window, type the following lines to create a local zone.

      zonecfg -z localzonename, where localzonename is the name of the local zone.

      create

      export

      add inherit-pkg-dir

      set dir=/opt, where /opt is the installation directory.

      end

      add net

      set address=ipaddress

      set physical=networkinterface

      end

      set zonepath=/export/zone/localzonename

      verify

      commit

      exit

      zoneadm -z localzonename install

    3. From the second terminal window, type zlogin -C localzonename to log in to the local zone.

    4. From the first terminal window, type zoneadm -z localzonename boot to boot the zone.

      The boot messages are displayed in the second terminal window where you logged in to the zone.

    5. Type the appropriate values for locale, terminal type, host name, naming service, and so on.

      The zone will be rebooted.

ProcedureTo Use an Existing Local Zone

This procedure assumes that the local zone does not inherit /opt/SUNWsymon and that the path of the local zone is /export/zone/localzonename.

Steps
  1. Become superuser.

  2. From the terminal window, log in to the local zone.

    zlogin localzonename mkdir -p /opt/SUNWsymon

  3. Do a loopback mounting of /opt/SUNWsymon.

    mount -F lofs /opt/SUNWsymon /export/zone/localzonename/root/opt/SUNWsymon

ProcedureTo Monitor a Zone Using Sun Management Center

Before You Begin

Install and set up Sun Management Center in the global zone.

Steps
  1. Create a local zone as described in To Create a Local Zone or use an existing local zone as described in To Use an Existing Local Zone.

  2. From the global zone, set up an agent to run inside this local zone.

    /opt/SUNWsymon/sbin/es-setup -z localzonename

  3. From the global zone, log in to the local zone.

    zlogin localzonename

  4. From the local zone, complete the setup.

    /opt/SUNWsymon/sbin/es-setup

Supported Commands, Modules, and Add-ons

You can start and stop the agent from within the local zone. You can use es-config to change the port number of the agent.

You can also start the Java Console inside a local zone. For more information on this, see “Starting the Console”.

The commands supported inside the local zone are es-start, es-stop, es-setup, es-config, and es-load-default.

The list of modules that will be available for the agent inside the local zone is available at /var/opt/SUNWsymon/cfg/zone-modules-d.dat. If you remove a module from this file, that module will not be available when the agent is restarted.

Advanced System Monitoring, Service Availability Manager, System Reliability Manager, and Performance Reporting Manager can be set up and run inside a local zone.