Reference Guide

238 Lifecycle Controller Web Services Interface Guide for Linux
27 Secureboot Configuration
The DCIM BIOS and Boot Management Profile describes the secure boot configuration.
Profile and Associated MOFs:
http://www.delltechcenter.com/page/DCIM.Library.Profile
27.1 Enabling Secure Boot configuration
To enable or disable the secure boot, management applications can use the
DCIM_BIOSService.SetAttribute() method from Dell_BIOSandBOOT management profile to set the
BIOS.Setup.1-1:SecureBoot attribute and create a job using
DCIM_BIOSService.CreateTargetedConfigJob()method to execute this change. This enumeration
attribute can be set to Enabled or Disabled.
EXAMPLE:
wsman invoke -a setattributes
"http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/root/dcim/DCIM_biosService?
SystemCreationClassName=DCIM_ComputerSystem,CreationClassName=DCIM_biosservice
,SystemName=DCIM:ComputerSystem,Name=DCIM:biosservice"
-h $IPADDRESS -V -v -c dummy.cert -P 443
-u $USERNAME -p $PASSWORD
-J SetAttributes_bios.xml -j utf-8 -y basic
The input file setattributes_bios.xml is shown below:
<p:SetAttributes_INPUT
xmlns:p="http://schemas.dmtf.org/wbem/wscim/1/cimschema/2/root/dcim/DCIM_bioss
ervice">
<p:Target> bios.setup.1-1</p:Target>
<p:AttributeName>secureboot </p:AttributeName>
<p:AttributeValue>Enabled</p:AttributeValue>
</p:SetAttributes_INPUT>
OUTPUT:
<n1:SetAttribute_OUTPUT>
<n1:Message>The command was successful</n1:Message>
<n1:MessageID>BIOS001</n1:MessageID>
<n1:RebootRequired>Yes</n1:RebootRequired>
<n1:ReturnValue>0</n1:ReturnValue>
<n1:SetResult>Set PendingValue</n1:SetResult>
</n1:SetAttribute_OUTPUT>
Example for create target config job:
wsman invoke -a createtargetedconfigjob
"http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/root/dcim/DCIM_biosService?
SystemCreationClassName=DCIM_ComputerSystem,CreationClassName=DCIM_biosservice
,SystemName=DCIM:ComputerSystem,Name=DCIM:biosservice"
-h $IPADDRESS -V -v -c dummy.cert -P 443
-u $USERNAME -p $PASSWORD
-J create_target_config.xml -j utf-8 -y basic
The input file create_target_config.xml is shown below:
<p:createtargetdconfigjob_INPUT
xmlns:p="http://schemas.dmtf.org/wbem/wscim/1/cimschema/2/root/dcim/DCIM_BIOSS
ervice">
<p:Target> bios.setup.1-1</p:Target>
<p:rebootjobtype >1 </p: rebootjobtype>