Re: [zones-discuss] cli zone configuration

2009-06-13 Thread Ron Halstead
I use a 'here' document in ksh to do what you want. You could use variables to pass IP address and zone name to the script. See the attachment. --ron -- This message posted from opensolaris.org ___ zones-discuss mailing list

Re: [zones-discuss] cli zone configuration

2009-06-12 Thread Peter Tribble
On Fri, Jun 12, 2009 at 8:13 PM, Patrick J. McEvoyno-re...@opensolaris.org wrote: Folks, I am trying to configure zones by running a series of commands because I want to script setting up zones. The man page for zonecfg only shows interactive examples, and the PDF documentation suggests

Re: [zones-discuss] cli zone configuration

2009-06-12 Thread Bernd Schemmer
Hi, write the zonecfg commands that you would enter interactively into a file and use zonecfg -f yourfile -z yourzone - you don't need expect or something similar for this to work You can also use that syntax to change the configuration of an existing zone (see

Re: [zones-discuss] cli zone configuration

2009-06-12 Thread Kris Kasner
In addition to what everyone else has already replied with, I do something like this if [ conditional ]; then cat EOF $zonecfg add fs set dir=/usr/local set special=$dir/$zone/local set type=lofs end EOF fi Since the variables get substituted within the script, you can make the

Re: [zones-discuss] cli zone configuration

2009-06-12 Thread Jordan Vaughan
Hi swagman, You can lump the commands into a single zonecfg execution by passing them as a single string argument in which the commands are separated by semicolons. Using your example: zonecfg -z zfoo set zonepath=/zonefs/zfoo; add net; set physical=foonic0; end Hope that helps, Jordan

Re: [zones-discuss] cli zone configuration

2009-06-12 Thread Menno Lageman
On 06/12/09 21:13, Patrick J. McEvoy wrote: Folks, I am trying to configure zones by running a series of commands because I want to script setting up zones. The man page for zonecfg only shows interactive examples, and the PDF documentation suggests exporting a config, then editing it, then

Re: [zones-discuss] cli zone configuration

2009-06-12 Thread Patrick J. McEvoy
menno, flippedb, Sweet! The semi-colon-spearated list of commands works perfectly. How do I file an RFE to add that to the man page? Thanks, swagman -- This message posted from opensolaris.org ___ zones-discuss mailing list

Re: [zones-discuss] cli zone configuration

2009-06-12 Thread Menno Lageman
On 06/12/09 22:39, Patrick J. McEvoy wrote: menno, flippedb, Sweet! The semi-colon-spearated list of commands works perfectly. How do I file an RFE to add that to the man page? You can file the bug at http://bugs.opensolaris.org. Category solaris/manpage, subcategory section1m. Menno --