TIMFOX123
asked on
I need a simple script to tell me the IP addresses of the zones running on a solaris system
I do not have access to a solaris 10 with zones but I do need a script for the sysadmin to run nightly.
As I understand if you do a:
global# /usr/sbin/zoneadm list -vc
it shows the zones. Now for each zone if you do a:
global# zonecfg -z myzone info
it gives the ip address.
I need someone to "grep out" the zone and then run the secon command on each zone.
http://www.logiqwest.com/dataCenter/Demos/RunBooks/Zones/zoneStatus.html
As I understand if you do a:
global# /usr/sbin/zoneadm list -vc
it shows the zones. Now for each zone if you do a:
global# zonecfg -z myzone info
it gives the ip address.
I need someone to "grep out" the zone and then run the secon command on each zone.
http://www.logiqwest.com/dataCenter/Demos/RunBooks/Zones/zoneStatus.html
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Sample output from the previous command:
zonename: some-local-zone
address: 192.168.10.112/24
address: 192.168.119.109/24
zonename: some-local-zone
address: 192.168.10.112/24
address: 192.168.119.109/24
ASKER
What a great solution !!!!!!!!!!!!!!!!!!!!!!!
This realllllly helps us.
This realllllly helps us.
Open in new window