Previous Topic: dpmzone rebootzone Command--Reboot a ZoneNext Topic: dpmzone setpoolscheduler Command--Set the Pool Scheduler


dpmzone renamezone Command--Rename a Zone

The renamezone command lets you rename a zone on the Solaris 10 server.

This command has the following format:

dpmzone renamezone
[-sc sc_host]
-host hostname
-name czonename
-new_name nzonename
[-pre]
[-post]
[-locale iso639value]

-sc sc_host

(Optional) Specifies the host name of the Service Controller.

-host hostname

Specifies the Solaris Zones server. This parameter is case-sensitive.

-old_name czonename

Specifies the current zone name.

-new_name nzonename

Defines the new zone name.

-pre

(Optional) Specifies whether to generate an event before the operation is performed.

-post

(Optional) Specifies whether to generate an event after the operation is performed.

-locale iso639value

(Optional) Specifies an IS0 639_3166 combination to override the default English output, for example, fr_FR for French. To use the locale of the command prompt, specify "native".

Example

Rename a zone on host SolarisServer2:

dpmzone renamezone -host SolarisServer2 -name myzone -new_name yourzone