Zones on a Solaris server

Can someone please let me know if there is a command which enables me to find out how many zones are there in a Solaris server.
LVL 1
ank5Asked:
Who is Participating?
 
robocatCommented:

zoneadm list -cv

gives you a list of all the zones
0
 
AmolCommented:
zoneadm list -cv
0
 
dead_philosopherCommented:
zoneadm list -cv will display all configured zones.

The output is essentially read from the XML files in /etc/zones on the global.
0
Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

 
ank5Author Commented:
If I run this comnd then it gives me the following result

ID NAME             STATUS     PATH                           BRAND    IP
   1 edmsd1           running    /                              native   shared

does this mean that there is only 1 zone on the server or does this mean that user is part of only 1 zone. Can a user get a list of all the zones on the server even if that user is not a root user?
0
 
dead_philosopherCommented:
You do not need to be root.

Example:
root@seed100.s01:/# zoneadm list -cv
  ID NAME             STATUS     PATH                           BRAND    IP    
   0 global              running    /                                           native   shared
   1 magento-app00          running    /var/zone/magento-app00              native   shared
   2 magento-app04          running    /var/zone/magento-app04              native   shared
   3 magento-app03          running    /var/zone/magento-app03              native   shared
   4 magento-app02          running    /var/zone/magento-app02              native   shared
   5 magento-app05          running    /var/zone/magento-app05              native   shared
   6 magento-app01          running    /var/zone/magento-app01              native   shared

dead@seed100.s01$ /usr/sbin/zoneadm list -cv
  ID NAME             STATUS     PATH                           BRAND    IP    
   0 global              running    /                              native   shared
   1 magento-app00          running    /var/zone/magento-app00              native   shared
   2 magento-app04          running    /var/zone/magento-app04              native   shared
   3 magento-app03          running    /var/zone/magento-app03              native   shared
   4 magento-app02          running    /var/zone/magento-app02              native   shared
   5 magento-app05          running    /var/zone/magento-app05              native   shared
   6 magento-app01          running    /var/zone/magento-app01              native   shared
0
 
dead_philosopherCommented:
A zone with a PATH of / is the global. As such you are not running any zones/containers on your server.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.