Reboot Zone operation
The Reboot Zone operation enables you to reboot the specified Zone, which must be in the running state.
The following table describes the elements for the adapter request:
Adapter request elements for the Reboot Zone operation
Element | Definition | Required |
|---|---|---|
<operation-type> | Defines the type of operation: Basic_Zone. | Yes |
<operation-name> | Defines the name of operation: Reboot_Zone | Yes |
<zone-name> | Specifies the name of the Zone that you want to reboot | Yes |
<host> | Specifies the host name of the Solaris computer hosting Solaris Zones | No |
<port> | Specifies the port on which the SSH service is running on the host computer | No |
<operation-timeout-secs> | Specifies the time, in seconds, to wait for the operation to complete on the target server | No |
<user-name> | Specifies the user name for the Solaris computer | No |
<password> | Specifies the password corresponding to the user name | Conditional |
The following figure shows the sample adapter request for the Reboot Zone operation:
Sample adapter request for the Reboot Zone operation
<target>
<host>vm-sol-abc</host>
<user-name>admin</user-name>
<password>adminpass</password>
<port>8888</port>
</target>
<operation-type>Basic_Zone</operation-type>
<operation-name>Reboot_Zone</operation-name>
<operation-timeout-secs>100</operation-timeout-secs>
<zone-name>testzone</zone-name>
</solaris-zones-request>
The following figure shows the response for the sample adapter request:
Sample adapter response for the Reboot Zone operation
<metadata>
<status>success</status>
</metadata>
<target-output host="vm-sol-abc">
<metadata>
<os-id>SunOS</os-id>
<os-version>5.10</os-version>
<status>success</status>
</metadata>
<operation-output>
<metadata>
<command>zoneadm -z testzone reboot</command>
<line-count>1</line-count>
<execution-milliseconds>2062</execution-milliseconds>
<exit-code>0</exit-code>
<status>success</status>
</metadata>
<output>
<line index="1">Operation Reboot_Zone executed successfully!!</line>
</output>
</operation-output>
</target-output>
</solaris-zones-response>