gpt4 book ai didi

java - SoftLayer 虚拟访客主机状态列表

转载 作者:行者123 更新时间:2023-12-01 09:07:38 26 4
gpt4 key购买 nike

当我创建虚拟访客时,我需要了解虚拟访客的运行、 Activity 和配置脚本执行结果。

据我们所知,对于硬件,主机配置有以下状态:

* '''ACTIVE''': This server is active and in use.
* '''DEPLOY''': Used during server provisioning.
* '''DEPLOY2''': Used during server provisioning.
* '''MACWAIT''': Used during server provisioning.
* '''RECLAIM''': This server has been reclaimed by SoftLayer and is awaiting de-provisioning.
*
* Status from SoftLayer Host Power State:
* '''Halted''': This Virtual Server Power State is Power off
* '''Running''': This Virtual Server Power State is Power on

所以我想知道虚拟 guest 对象的完整状态列表,以及 SoftLayer 主机电源状态的完整列表。

最佳答案

虚拟机的状态为:

Status for SoftLayer Virtual Guest State:

  • '''ACTIVE''': The virtual guest is active and in use.
  • '''DISABLED''': The virtual guest is disabled.
  • '''INACTIVE''': The virtual guest is inactive.
  • '''DELETED''': The virtual guest has been reclaimed.
  • '''ACTIVE UTILITY''': This is for Net Scalers.
  • '''DISCONNECTED''': This is used when the network interfaces were disconnected for security reasons.
  • '''RESOURCE RESERVE''': This is used when an order has been placed, an instance is reserved, after that, it’s removed.

Status for SoftLayer Virtual Guest Power State:

  • '''Halted''': This virtual guest power state is Powered off
  • '''Running''': This virtual guest power state is Powered on
  • '''Paused''': This virtual guest has been paused
  • '''Suspended''': This status is set before the VSI is deleted
  • '''Unknown''':

关于了解配置脚本的结果,目前没有状态,唯一的方法是登录到计算机并查看脚本是否运行有关更多信息,请参阅此 https://sldn.softlayer.com/blog/jarteche/getting-started-user-data-and-post-provisioning-scripts

此外,正如您所看到的,在部署过程中 VSI 没有状态,如果您想知道这一点,我建议您查看事务。当部署或重新加载或升级过程运行时,会创建一个事务,您可以通过调用此方法查看相关事务:

http://sldn.softlayer.com/reference/services/SoftLayer_Virtual_Guest/getActiveTransaction

如果结果不为空,则表示事务正在运行,事务本身包含有关正在运行的进程的更多信息

希望对你有帮助

问候

关于java - SoftLayer 虚拟访客主机状态列表,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41139441/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com