Link to home
Start Free TrialLog in
Avatar of ank5
ank5Flag for India

asked on

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.
ASKER CERTIFIED SOLUTION
Avatar of robocat
robocat

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
zoneadm list -cv
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ank5

ASKER

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?
Avatar of dead_philosopher
dead_philosopher

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
A zone with a PATH of / is the global. As such you are not running any zones/containers on your server.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial