Sometimes it’s useful to enrich your zone configuration with some additional data, so someone can look into the zone config and know for example who is responsible for the zone.

There is a little known method for this you can use with Solaris Zones. You can have attributes with generic content:

root@solaris:~# zonecfg -z playground
zonecfg:playground> add attr
zonecfg:playground:attr> set name=admin_contact
zonecfg:playground:attr> set type=string
zonecfg:playground:attr> set value="joerg@example.com"
zonecfg:playground:attr> end
zonecfg:playground> add attr
zonecfg:playground:attr> set name=admin_telephone
zonecfg:playground:attr> set type=string
zonecfg:playground:attr> set value="+49123456789"
zonecfg:playground:attr> end
zonecfg:playground> add attr
zonecfg:playground:attr> set name=department
zonecfg:playground:attr> set type=string
zonecfg:playground:attr> set value="HR"
zonecfg:playground:attr> end
zonecfg:playground:attr> commit
zonecfg:playground:attr> quit

When you now look into the output of zonecfg -z playground info you will see the additional data you have entered before.

root@solaris:~# zonecfg -z playground info
zonename: playground
zonepath: /export/zones/playground
brand: solaris
anet:
	linkname: net0
	configure-allowed-address: true
	auto-mac-address: f:f:ff:ff:ff:ff
attr:
	name: admin_contact
	type: string
	value: joerg@example.com
attr:
	name: admin_telephone
	type: string
	value: +49123456789
attr:
	name: department
	type: string
	value: HR
root@solaris:~#
Written by

Joerg Moellenkamp

Grey-haired, sometimes grey-bearded Windows dismissing Unix guy.