【问题标题】:I'm trying to automate update of vmware vsan hcl database using powershell我正在尝试使用 powershell 自动更新 vmware vsan hcl 数据库
【发布时间】:2021-08-29 00:06:22
【问题描述】:

当我运行 Update-VSanHclDatabase 时,我收到以下错误:

Update-VsanHclDatabase : 6/12/2021 7:09:35 AM    Update-VsanHclDatabase  Specified argument was out of the range of valid values.
Parameter name: i    
At line:1 char:1
+ Update-VsanHclDatabase
+ ~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Update-VsanHclDatabase], VimException
    + FullyQualifiedErrorId : Core_BaseCmdlet_UnknownError,VMware.VimAutomation.Storage.Commands.Cmdlets.Vsan.UpdateVsanHclDatabase

我使用的是 Windows 2012 Server 和 vSphere 版本 7。

【问题讨论】:

  • 你能确认你先用过Connect-VIServer吗?如果您仍然需要帮助,请在运行失败的命令后立即将您的 PowerShell 版本以及 Get-Module -Name VMware* -ListAvailable | Select Name,Version$Error[0].Exception.PSObject.Properties | select Name,Value | FL * 的输出添加到您的帖子中。
  • 还请使用您正在运行的完整命令/代码或MRE更新您的帖子。

标签: powershell automation vmware rest powercli


【解决方案1】:

我用 powershell 7 试用了这个命令,效果很好

【讨论】:

    猜你喜欢
    • 2017-09-22
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-08-02
    • 2013-03-28
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多