Using the zlogin
Command
To display information about a zone's internal configuration, you would typically log in to the zone and then issue the appropriate Oracle Solaris commands. However, with zlogin
, you can run these commands directly from the global zone. Use the following syntax:
global$ zlogin zonename
command
The following example shows the network IP configuration of zoneA
.
global$ zlogin zoneA ipadm
NAME CLASS/TYPE UNDER ADDR
lo0 loopback --- --
lo0/v4 static --- 127.0.0.1/8
lo0/v6 static --- ::1/128
global$
The following example displays the computer or host name of zoneA
.
global$ zlogin zoneA hostname
system1
The following example shows user home directories in zoneA
.
global$ zlogin zoneA ls /export/home
jdoe
jsmith
For more information about the use of the zlogin
command, see the
zlogin
(1) man page.