Previous Topic: dpmzone createzone Command--Create a ZoneNext Topic: dpmzone deleteproject Command--Delete a Project


dpmzone customcommand Command--Run a Custom Command

The customcommand command lets you run external commands or scripts on the Solaris server.

Note: For information about restricted external commands, see the Custom Commands appendix in this guide.

This command has the following format:

dpmzone customcommand 
[-sc sc_host] 
-host hostname 
-cmd command 
[-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.

-cmd command

Specifies the name of the program or script to run.

-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

Run a command on host SolarisServer2:

dpmzone customcommand -host SolarisServer2 
-cmd /usr/local/private/scripts/test_connections.pl