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]
(Optional) Specifies the host name of the Service Controller.
Specifies the Solaris Zones server. This parameter is case-sensitive.
Specifies the name of the program or script to run.
(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
Copyright © 2013 CA. All rights reserved. |
|