Users Guide
在執行 Linux 的系統設定 BIOS 屬性
您可以使用下列任一方法設定 BIOS 屬性:
• 使用 OMICLI
• 使用 WinRM
• 使用 WSMan
註: 確定 OMI 伺服器已啟動並正在執行。
使用 OMICLI 設定 BIOS 屬性
您可以使用 SetBIOSAttributes 方法來設定 BIOS 屬性。此程序接下來會以啟用信賴平台模組 (TPM) 工作為例子說明。
若要使用 OMICLI 命令設定 BIOS 屬性,
註: 按照下列程序啟用 TPM 之前,請確定 TPM 選項已在 BIOS 中清除。
若要啟用 TPM,
1. 若要設定系統的 BIOS 密碼。若尚未設定,請執行
./omicli iv root/dcim/sysman { DCIM_BIOSService Name DCIM:BiosService
SystemCreationClassName DCIM_ComputerSystem SystemName <system name displayed in
DCIM_BIOSService class> CreationClassName DCIM_BIOSService } SetBIOSAttributes
{ AttributeName "AdminPwd" AttributeValue “<new Admin Password>” }
2. 若要使用以下命令啟用 TPM 安全性,請執行
./omicli iv root/dcim/sysman { DCIM_BIOSService Name DCIM:BiosService
SystemCreationClassName DCIM_ComputerSystem SystemName <system name displayed in
DCIM_BIOSService class> CreationClassName DCIM_BIOSService } SetBIOSAttributes
{ AttributeName "Trusted Platform Module" AttributeValue
“1” AuthorizationToken
“<password>”
3. 重新啟動系統。
4. 若要啟用 TPM,請執行
./omicli iv root/dcim/sysman { DCIM_BIOSService Name DCIM:BiosService
SystemCreationClassName DCIM_ComputerSystem SystemName <system name displayed in
DCIM_BIOSService class> CreationClassName DCIM_BIOSService } SetBIOSAttributes
{ AttributeName " Trusted Platform Module Activation" AttributeValue
“2”
AuthorizationToken “<password>” }
5. 重新啟動系統。
6. 若要重設 BIOS 密碼,請執行
./omicli iv root/dcim/sysman { DCIM_BIOSService Name DCIM:BiosService
SystemCreationClassName DCIM_ComputerSystem SystemName <system name displayed in
DCIM_BIOSService class> CreationClassName DCIM_BIOSService } SetBIOSAttributes
{ AttributeName "AdminPwd" AttributeValue “” AuthorizationToken “<password>” }
使用 WinRM 設定 BIOS 屬性
您可以使用 SetBIOSAttributes 方法來設定 BIOS 屬性。此程序接下來會以啟用信賴平台模組 (TPM) 工作為例子說明。
使用 WinRM 命令設定 BIOS 屬性,
註: 按照下列程序啟用 TPM 之前,請確定 TPM 選項已在 BIOS 中清除。
1. 透過列舉設定 DCIM_BIOSService 類別取得選取器設定。執行:
winrm e wsman/DCIM_BIOSService?__cimnamespace=root/dcim/sysman -auth:basic -r:https://
<system IP or system name>:5986 -username:<user name> -password:<password> -skipCAcheck
-skipCNcheck -encoding:utf-8 -returnType:epr
18