Sun Management Center 3.6 Installation and Configuration Guide

(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. Every Solaris system contains a global zone, the default zone for the system. You can create local (non-global) zones. 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.

If 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.

      No such zone configured Use 'create' to begin configuring a new zone.

      zonecfg:localzonename> create

      zonecfg:localzonename> export

      zonecfg:localzonename> add inherit-pkg-dir

      zonecfg:localzonename:inherit-pkg-dir> set dir=/opt, where /opt is the installation directory.

      zonecfg:localzonename:inherit-pkg-dir> end

      zonecfg:localzonename> add net

      zonecfg:localzonename:net> set address=ipaddress

      zonecfg:localzonename:net> set physical=networkinterface

      zonecfg:localzonename:net> end

      zonecfg:localzonename> set zonepath=/export/zone/localzonename

      zonecfg:localzonename> verify

      zonecfg:localzonename> commit

      zonecfg:localzonename> 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 etc.

      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.

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.

This release supports setting up and running of Advanced System Monitoring, Service Availability Manager, System Reliability Manager, and Performance Reporting Manager inside a local zone.


Note –

Java Console is not supported inside a local zone.