对于大多数用户来说,您可能拥有多年来配置的大量 vSphere 许可证密钥,并且跟踪产品 SKU、授权功能和容量可能是一个挑战,特别是当您只是查看原始的 25 个字符的许可证字符串时。
虽然建议使用 Broadcom 支持门户 (BSP) 进行所有许可证管理操作(查看、拆分、合并等),但您是否知道也可以使用 vCenter Server 来帮助解码特定的许可证密钥?
当您尝试将有效的许可证密钥(ESXi、vCenter、vSAN 或 Tanzu)添加到 vCenter Server 时,它会提供产品 SKU 功能和容量的预览,其中将 25 个字符的许可证字符串解码为更有意义的内容。
利用此信息,我们使用 vSphere API 和特别是decryptLicense方法解码 vCenter Server 理解的特定许可证密钥来复制相同的行为。
为了演示此功能,我创建了一个名为 Decode-VMwareLicense 的 PowerCLI 函数,它允许用户指定一个或多个许可证密钥,并且它将自动解码每个许可证密钥的产品 SKU、容量、单位、到期日、授权组件和功能。
步骤 1-将vmware-scripts/blob/master/powershell/DecodeVMwareLicense.ps1" target="_blank" rel="noopener" style="box-sizing: border-box; background: 0px center; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0); text-decoration-line: none; border-bottom: 1px solid rgb(0, 51, 102); font-weight: 700; padding-bottom: 1px; border-top-color: rgb(0, 51, 102); border-right-color: rgb(0, 51, 102); border-left-color: rgb(0, 51, 102);">DecodeVMwareLicense.ps1下载到本地系统
步骤 2 - 通过运行以下命令获取 Decode-VMwareLicense 函数:
../解码VMwareLicense.ps1
步骤 3 - 使用Connect-VIServer cmdlet连接到其中一个 vCenter Server
步骤 4-使用您想要解码的许可证密钥数组运行以下命令:
解码 VMwareLicense -LicenseKeys @("AAAA","BBB","CCC","DDD")
以下是解码四个许可证密钥的示例输出,这些密钥可转换为 vSphere Enterprise Plus、vSAN Enterprise、vSphere Enterprise Plus for VCF 和 vSphere Enterprise Plus for VVF:
esxi-vsan-tanzu-license-keys.html/decode-vmware-license-keys" data-orig-file="https://i0.wp.com/williamlam.com/wp-content/uploads/2024/06/decode-vmware-license-keys.png?fit=1488%2C741&ssl=1" data-orig-size="1488,741" data-comments-opened="1" data-image-meta="{"aperture":"0","credit":"","camera":"","caption":"","created_timestamp":"0","copyright":"","focal_length":"0","iso":"0","shutter_speed":"0","title":"","orientation":"0"}" data-image-title="decode-vmware-license-keys" data-image-description="" data-image-caption="" data-medium-file="https://i0.wp.com/williamlam.com/wp-content/uploads/2024/06/decode-vmware-license-keys.png?fit=300%2C149&ssl=1" data-large-file="https://i0.wp.com/williamlam.com/wp-content/uploads/2024/06/decode-vmware-license-keys.png?fit=1024%2C510&ssl=1" tabindex="0" role="button" class="alignnone wp-image-186094" src="https://i0.wp.com/williamlam.com/wp-content/uploads/2024/06/decode-vmware-license-keys.png?resize=450%2C224&ssl=1" alt="" width="450" height="224" srcset="https://i0.wp.com/williamlam.com/wp-content/uploads/2024/06/decode-vmware-license-keys.png?resize=300%2C149&ssl=1 300w, https://i0.wp.com/williamlam.com/wp-content/uploads/2024/06/decode-vmware-license-keys.png?resize=1024%2C510&ssl=1 1024w, https://i0.wp.com/williamlam.com/wp-content/uploads/2024/06/decode-vmware-license-keys.png?resize=768%2C382&ssl=1 768w, https://i0.wp.com/williamlam.com/wp-content/uploads/2024/06/decode-vmware-license-keys.png?w=1488&ssl=1 1488w" sizes="(max-width: 450px) 100vw, 450px" data-recalc-dims="1" style="box-sizing: border-box; border: 0px; max-width: 100%; height: auto; isolation: isolate; margin: 0px 0px 20px;"/>
推荐本站淘宝优惠价购买喜欢的宝贝:
本文链接:https://hqyman.cn/post/6932.html 非本站原创文章欢迎转载,原创文章需保留本站地址!
休息一下~~