sun.com docs.sun.com My Sun Worldwide Sites

Previous Previous     Contents     Index     Next Next

ProcedureHow to Use Non-Interactive Mode to Access an lx Branded Zone

Non-interactive mode is enabled when the user supplies a command to be run inside the zone. Non-interactive mode does not allocate a new pseudo-terminal.

Note that the command or any files that the command acts upon cannot reside on NFS.

You must be the global administrator in the global zone to perform this procedure.

  1. Become superuser, or assume the Primary Administrator role.

    To create the role and assign the role to a user, see "Using the Solaris Management Tools With RBAC (Task Map)" in System Administration Guide: Basic Administration.

  2. From the global zone, log in to the lx-zone zone and supply a command name.

    Replace command with the name of the command to be run inside the zone.

    global# zlogin lx-zone command

Example 34-1   Using the Command uptime in the Zone lx_master
global#  zlogin lx_master uptime
	21:16:01  up  2:39,  0 users,  load average: 0.19, 0.13, 0.11
	fireball#

ProcedureHow to Exit the lx Branded Zone

  • To disconnect from a non-global zone, use the tilde (~) character and a period:

    zonename# ~.

    Your screen will look similar to this:

    [Connection to zone 'lx-zone' pts/6 closed]

    • You can also type exit to exit the zone.

See Also

For more information about zlogin command options, see the zlogin(1) man page.

ProcedureHow to Use Failsafe Mode to Enter an lx Branded Zone

When a connection to the zone is denied, the zlogin command can be used with the -S option to enter a minimal environment in the zone.

You must be the global administrator in the global zone to perform this procedure.

  1. Become superuser, or assume the Primary Administrator role.

    To create the role and assign the role to a user, see "Using the Solaris Management Tools With RBAC (Task Map)" in System Administration Guide: Basic Administration.

  2. From the global zone, use the zlogin command with the -S option to access the zone, for example, lx-zone.

    global# zlogin -S lx-zone

ProcedureHow to Use zlogin to Shut Down an lx Branded Zone


Note - Running init 0 in the global zone to cleanly shut down a Solaris system also runs init 0 in each of the non-global zones on the system. Note that init 0 does not warn local and remote users to log off before the system is taken down.


Use this procedure to cleanly shut down a zone. To halt a zone without running shutdown scripts, see How to Halt a Zone.

You must be the global administrator in the global zone to perform this procedure.

  1. Become superuser, or assume the Primary Administrator role.

    To create the role and assign the role to a user, see "Using the Solaris Management Tools With RBAC (Task Map)" in System Administration Guide: Basic Administration.

  2. Log in to the zone to be shut down, for example, lx-zone, and specify shutdown as the name of the utility and init 0 as the state.

    global# zlogin lx-zone shutdown -i 0

    Your site might have its own shutdown script, tailored for your specific environment.

More Information
Using shutdown in Non-Interactive Mode

You cannot use the shutdown command in non-interactive mode to place the zone in single--user state at this time. See 6214427 for more information.

You can use an interactive login as described in How to Use Interactive Mode to Access a Branded Zone.

Previous Previous     Contents     Index     Next Next
Company Info Contact Terms of Use Privacy Copyright 1994-2007 Sun Microsystems, Inc.