> Date: Sat, 13 Jun 2009 11:23:08 PDT
> From: 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.
Um-m-m... The attachment apparently didn't make it... Is there
someplace we could
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
zones-discuss@opensolaris.o
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
--
Me
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
zones-discuss@opensolaris.or
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 usin
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
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 th
Hi,
write the zonecfg commands that you would enter interactively into a file and use zonecfg
-f -z - 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 http://bnsmb.de/solaris/create_zone.html fo
On Fri, Jun 12, 2009 at 8:13 PM, 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,
> t
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 using zonecfg -f. I don't want to
write expect scr
10 matches
Mail list logo