<div dir="ltr">Dominik,<br><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Apr 10, 2015 at 12:37 PM, Dominik Hassler <span dir="ltr"><<a href="mailto:hasslerd@gmx.li" target="_blank">hasslerd@gmx.li</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="font-family:Verdana;font-size:12.0px"><div>Hi,</div>

<div> </div>

<div>I would like to manage (i.e. add/change properties) SMF instances for non-global zones from the global zone.</div>

<div> </div>

<div>This works fine using '/usr/sbin/zlogin my-ngz /usr/sbin/svccfg...'. However this only works if the NGZ is running.</div>

<div> </div>

<div>Afaik, there is no '-z' option for svccfg (there is one for svcadm however...).</div>

<div> </div>

<div>Is it possible at all to manage SMF instances for non-global zones if the NGZ is not running?</div></div></blockquote></div><div class="gmail_extra"><br></div>Sure. There's no command line option for this, but if you run svccfg</div><div class="gmail_extra">interactively or with an input file of commands (via the -f option), use</div><div class="gmail_extra">the repository subcommand to tell it to use the zone's repository (ie</div><div class="gmail_extra">${ZONEROOT}/etc/svc/repository.db) rather than the default.</div><div class="gmail_extra"><br></div><div class="gmail_extra">(Although my usual trick is to save the repository from a zone that's</div><div class="gmail_extra">configured the way I want, and drop that into a new zone as I build it.)</div><div class="gmail_extra"><br></div><div class="gmail_extra">The other way would be to create a service profile, and then drop that into</div><div class="gmail_extra">the zone ready to be picked up when the zone boots.</div><div class="gmail_extra"><div><br></div>-- <br><div class="gmail_signature">-Peter Tribble<br><a href="http://www.petertribble.co.uk/">http://www.petertribble.co.uk/</a> - <a href="http://ptribble.blogspot.com/">http://ptribble.blogspot.com/</a></div>
</div></div>