HPE Compute Ops Management Zero-Touch Automation
Jump to:
- Introduction
- HPE Compute Ops Management PowerShell Library
- Connecting to the lab environment
- Task 1 - How to Install HPECOMCmdlets
- Task 2 - Get the exported commands
- Task 3 - Connection to HPE GreenLake
- Task 4 - Configuration of your workspace
- Task 5 - Onboarding devices
- Task 6 - Configuration of Compute Ops Management
- Task 7 - Gathering Comprehensive Server Inventory Information
- Task 8 - Monitoring Server Health, Support, and Warranty Status
- Task 9 - Updating and Ensuring Server Firmware Compliance
- Task 10 - Essential Next Steps for Server Management and Sustainability
- Task 11 - Clean up your workspace
- Task 12 - Explore Zero Touch Automation with the Sample Script (Optional)
- Summary
- Want more?
Hands on Lab Guide
Introduction
Welcome to this Hands-On Lab (HOL). For the next two hours you will complete a self-paced lab using the HPECOMCmdlets PowerShell library, HPE ProLiant DL-series servers and HPE GreenLake Compute Ops Management.
Lab Objectives
In this hands-on lab, you will discover how the HPE Compute Ops Management PowerShell library can transform the way you manage data center infrastructure. By working through real-world scenarios, you will learn how to replace time-consuming manual operations with automated, repeatable workflows—covering the full server lifecycle from initial provisioning and device onboarding to policy enforcement, compliance monitoring, and decommissioning. You will gain practical experience automating critical IT tasks such as workspace configuration, firmware management, and iLO settings enforcement, while also learning how to leverage sustainability and utilization insights to make smarter infrastructure decisions. By the end of this lab, you will have the skills and confidence to design and implement automation workflows that reduce human error, enforce consistent configurations at scale, and accelerate server deployments across your HPE GreenLake environment.
Team Assignments
This lab has 25 stations. Each station will have its own HPE DL-series server to be onboarded into COM. You will be working in a Virtual Machine using Visual Studio Code with the PowerShell extension.
Your team assignments will be on a separate sheet of paper issued to you by your lab proctor. Please return the team assignment sheet to your proctor when finished with this lab.
Virtual Lab Environment
Upon access to the lab, you will be presented with a Windows desktop.
Each team will have the following physical and virtual infrastructure:
-
Windows virtual machine with Visual Studio Code
-
One ProLiant DL-series server
HPE Compute Ops Management PowerShell Library
This lab introduces the HPE Compute Ops Management PowerShell module, a set of cmdlets for managing and automating your HPE GreenLake environment. The module enables direct interaction with HPE GreenLake and Compute Ops Management services from the PowerShell command line, fitting easily into existing automation workflows.
Development is ongoing. SaaS cloud applications evolve over time. Therefore, this library will be continuously updated to incorporate new features as they are released by HPE.
This module is available in the PowerShell Gallery under the name HPECOMCmdlets, following the naming convention used by most HPE modules.
The PowerShell Gallery is a repository for sharing and distributing
PowerShell modules and scripts. It’s a community-driven platform that
provides access to various PowerShell resources, enabling you to easily
discover, install, and publish your own PowerShell content. The
PowerShell Gallery can be accessed through the PowerShellGet module
(includes Install-Module, Find-Module, etc.), which comes
pre-installed with Windows PowerShell 5.0 and above.
This project is also associated with a new public GitHub repository from our community contributor, Lionel Jullien from HPE. This repository is where the source code is developed. You can also track releases, report and view issues, and participate in discussions.
The library covers the HPE GreenLake platform and every Compute Ops Management instance in your workspace:
-
Authentication and sessions: Connect with SAML 2.0 or OIDC single sign-on (Okta, Microsoft Entra ID, PingIdentity), passwordless or password-based, or with an HPE Account with or without MFA. One session covers every COM region, and sessions can be saved and restored for multi-workspace automation.
-
Workspace, identity and access: Create and manage workspaces, organizations and tenant workspaces; claim domains and configure SSO connections and authentication policies; invite users and manage user groups, roles, and scope-based access control (SBAC).
-
Services, subscriptions and devices: Provision Compute Ops Management, manage subscriptions and auto-subscription policies, add devices individually or in bulk from CSV files, set locations and tags, and remove (unclaim) devices.
-
Server onboarding and configuration: Connect iLOs to COM directly, through a web proxy, or through a Secure Gateway (with automatic discovery). Create BIOS, storage, OS, firmware and iLO settings, and apply them to server groups.
-
Operations, compliance and insights: Schedule firmware updates and other jobs, require approval for sensitive operations, check firmware, iLO settings and external storage compliance, collect inventory, health, warranty and logs, and review utilization and sustainability insights.
-
Notifications, integration and appliances: Enable email notifications, deliver platform events to external endpoints with webhooks, integrate with ServiceNow, and manage HPE OneView, OVE and Secure Gateway appliances.
Connecting to the lab environment
To access the Windows virtual machine in our VMware Omnissa Horizon lab environment complete these steps:
-
Navigate to https://labs.compute.cloud.hpe.com
-
On the Horizon login screen, click the Omnissa Horizon Web Client button.
-
Login with the Horizon login username and password provided in your login sheet.
-
Click on the graphic that represents your Lab environment.
Since Horizon is presenting a remote desktop session inside of your desktop’s browser, it may be helpful to hit F11 at this time to put the browser in full screen mode.
Preparation of your environment
-
Start by opening VS Code using the shortcut in the VM’s desktop:
-
VS Code opens with the Station-Info.ps1 file. This file holds all the credentials and details for your station, so keep it open and within reach:
-
A PowerShell terminal is already open in VS Code. Run all the commands of this lab guide in this window:
Your environment is now ready, with Station-Info.ps1 open in the editor and a PowerShell terminal open for the commands of this lab.
💡 Note: Recovering from a terminal crash
Throughout this lab you will define PowerShell variables (your email, region, workspace name, iLO IP, etc.) and a GreenLake session that only live in memory. If your terminal crashes or is closed, they are lost and the remaining commands will fail.
To recover quickly, keep Station-Info.ps1 open and fill in each value of its Lab variables block the moment you define it. Don’t forget to save the file (Ctrl+S) after each update. If your terminal session is lost, open a new terminal, run the Lab variables block, and you will be back where you left off in seconds.
Task 1 - How to Install HPECOMCmdlets
-
The first step is to install the library on your Windows virtual machine. Return to the PowerShell console and enter the following command:
Install-Module HPECOMCmdlets💡 Tip: Using the Copy Button
Throughout this lab, each code block displays a Copy button in the middle-right corner. Click it to copy the commands to your clipboard, then press Ctrl+V to paste them into the PowerShell terminal. This eliminates typing errors and speeds up your workflow.
This command will download and install the module from the official PowerShell Gallery repository. If this is your first time installing a module from the PowerShell Gallery, it will ask you to confirm whether you trust the repository or not.
-
Type
Ywhen prompted and press Enter to continue with the installation.This library has no dependencies, so it does not require the installation of any other software or modules to function properly.
Task 2 - Get the exported commands
-
Now that the module is installed, you can get the list of commands exported by the module using:
Get-Command -Module HPECOMCmdletsVersion v1.0.27 of the module includes over 250 cmdlets.
-
In PowerShell, cmdlets follow a verb-noun naming convention. In this library, cmdlet names begin with HPECOM for Compute Ops Management (e.g.,
Get-HPECOMServer) or HPEGL for HPE GreenLake (e.g.,New-HPEGLUser), reflecting the close integration between both platforms. -
To list all cmdlets in the module related to server resources, use the following command:
Get-Command -Module HPECOMCmdlets | ? name -match serverThis command is especially helpful when you’re dealing with many cmdlets and need to pinpoint the one that fits your needs best.
💡Note
?is an alias forWhere-Objectin PowerShell, and-matchis the operator used to determine if a string matches a regular expression, such asserverin this example. -
Get-Helpcmdlet is another essential PowerShell command for locating information about new modules. To utilize this command, enter:Get-Help Get-HPECOMserver -FullGet-Help(or the aliasHelp) is a PowerShell cmdlet that allows you to retrieve information on other PowerShell cmdlets and functions.By running
Get-Helpin the PowerShell console, you can view detailed information about the specified cmdlet, including its syntax, parameters, examples, and related links. Additionally, you can use specific switches such as-Detailed,-Examples, or-Fullto customize the output. -
Each cmdlet exported from this module provides detailed examples of how to use the command. To view the examples for the
Get-HPECOMServercmdlet, enter:Help Get-HPECOMServer -ExamplesThis will display a list of examples demonstrating how to use
Get-HPECOMServeralong with detailed explanations of what each example does.
Task 3 - Connection to HPE GreenLake
After the module is installed, the next step is to connect to HPE GreenLake using the Connect-HPEGL command.
The library supports three authentication methods:
-
HPE Account Authentication (Single or Multi-Factor)
Authenticate using your HPE account email and password. Multi-factor authentication (MFA) is optionally supported for enhanced security (requires v1.0.12+).
-
Passwordless SAML/OIDC Single Sign-On (SSO) (SAML requires v1.0.18+ and OIDC requires v1.0.27+)
Connect to a federated (SSO) account using the
-PasswordlessSSOEmailparameter with your federated email address. Authentication is completed via a push notification or a Time-based One-Time Password (TOTP) — no password is entered.- Supported identity providers: Okta, PingIdentity, and Microsoft Entra ID. Other IdPs are not supported for SSO — use standard HPE account credentials instead.
- Requirement: Passwordless authentication (push notifications or TOTP) must be enabled on your identity provider. For SAML configuration guidance, refer to Configuring SAML SSO with HPE GreenLake and Passwordless Authentication.
-
Password-based SAML/OIDC Single Sign-On (SSO) (SAML requires v1.0.26+ and OIDC requires v1.0.27+)
Connect to a federated (SSO) account that requires a password, using the
-Credentialparameter with your federated email address — federation is detected automatically. If a second factor is required, a push or TOTP challenge fires automatically.- Supported identity providers: Okta, PingIdentity, and Microsoft Entra ID. Other IdPs are not supported for SSO — use standard HPE account credentials instead.
- Unattended automation: Because no interactive push approval is needed when only a password is required, this method — combined with a securely stored credential — enables truly unattended SSO automation.
Step 1 - Authenticate to HPE GreenLake
To connect to HPE GreenLake with the PowerShell module, you will use a predefined user account from the lab’s organization workspace:
-
Start by setting your email variable. In Station-Info.ps1, scroll down to the Lab variables block, click anywhere on the
$MyEmailline, and press F8. VS Code runs that line directly in the PowerShell terminal, so there is no need to copy and paste it: -
Next, store your credentials in a variable. The
Get-Credentialcmdlet opens a prompt that is pre-filled with the email stored in$MyEmailas the user name, and returns your credentials as a secure object:$credentials = Get-Credential -UserName $MyEmail -
In the prompt, enter the password from your login sheet and click OK:
-
Finally, connect to HPE GreenLake by passing the stored credentials to
Connect-HPEGL. The connection takes a few seconds:Connect-HPEGL -Credential $credentials -RemoveExistingCredentialsThe
-RemoveExistingCredentialsparameter deletes any API client credentials that the HPECOMCmdlets module previously created for your account in the lab’s organization (for example, during an earlier lab session). This makes sure the module starts with a clean set of credentials.
Step 2 - Verify your connection
-
Once authentication is successful, a secure connection to HPE GreenLake will be established to the lab’s organization, allowing you to proceed with subsequent operations.
The
Connect-HPEGLcmdlet is responsible for initiating and managing this connection. Upon establishment, it maintains a persistent session using the$HPEGreenLakeSessionconnection tracker variable, which supports all further module cmdlet activities. Furthermore, the cmdlet issues a temporary API client credential for both HPE GreenLake and any Compute Ops Management service instances provisioned within your workspace.💡 Note
You can use
Get-Help Connect-HPEGL -Fullto access the complete help documentation, technical details, and in-depth explanations forConnect-HPEGL.The command to directly connect to an existing and known workspace is:
Connect-HPEGL -Credential $credentials -Workspace "workspace_name"
Now that you are connected to HPE GreenLake with the PowerShell module, you can optionally open a Chrome browser to access the HPE GreenLake portal and view the results of the commands you will run in the following sections.
-
From your Horizon desktop, open Google Chrome:
-
Click the HPE GreenLake bookmark in the HOL folder of the bookmarks bar. It opens the portal at
https://common.cloud.hpe.com. -
Sign in with the GreenLake username listed in Station Info:
-
On the Choose sign-in method page, select Sign in with SSO:
-
On the Microsoft sign-in page, enter the password from your login sheet:
-
You are now on the HPE GreenLake home page.
You may now leave this page open and begin your zero-touch automation experience.
Task 4 - Configuration of your workspace
Step 1 - Create your first workspace
-
Next, create a workspace. Return to VS Code and, in Station-Info.ps1, in the Lab variables block, click anywhere on the
$WorkspaceNameline, and press F8. This defines your workspace name variable in the terminal. The name follows the formatCOM-ZeroTouch-Lab-xx, where xx is your team number: -
Now build the full command using PowerShell’s tab completion feature. Tab completion is a built-in PowerShell mechanism that, after typing a parameter name followed by a space, lets you press the Tab key to cycle through all valid values for that parameter — no need to memorize them.
-
Start by typing the following command in the terminal. Do not press Enter until the command is complete:
New-HPEGLWorkspace -Name $WorkspaceName -InOrganizationThe
-InOrganizationparameter creates the new workspace as a member of the lab’s organization. Do not forget it: without it, an orphan workspace is created outside the organization and you will run into issues later in this lab. -
Add the
-Countryparameter followed by a space, then press Tab to browse the list of supported countries and select yours. You can also type the first letter(s) of your country before pressing Tab to jump directly to matching entries. For example, typeIto jump to countries starting with “I” such as Iceland, India, Ireland, etc.:-Country -
Complete the command with the
-Streetparameter. You can enter any address, real or fictional, since the workspace will be automatically deleted when the lab is reset:-Street "Your street address" -
Your complete command should look like:
New-HPEGLWorkspace -Name $WorkspaceName -InOrganization -Country Canada -Street "123 Main Street"Press Enter to run it:
📌 Note
If you struggle to build the command, you can copy this following example with the Copy button and paste it into the terminal instead:
New-HPEGLWorkspace -Name $WorkspaceName -InOrganization -Country Finland -Street "Main street"In the example above, only the
name,type,country, andstreetparameters are included because they are required. However, you can also specify optional parameters likecity,state,email, and others.
-
-
After executing this command, the workspace is created,
-
To connect to your new workspace, enter:
Connect-HPEGL -Credential $credentials -Workspace $WorkspaceName -
Give the lab administrator account access to your workspace, so the lab team can recover your resources if something goes wrong:
New-HPEGLUser -Email "com.demoad@gmail.com" -RoleName 'Workspace Administrator'⚠️ Important
Do not skip this step!
Today, HPE GreenLake does not give organization administrators automatic access to the workspaces in their organization. A workspace administrator must invite them first. We are working with the HPE GreenLake team to remove this limitation. Until then, without this invitation, the lab team cannot open your workspace to remove your server and release your subscription key if your cleanup at the end of the lab does not complete, and the next participant cannot use them.
-
To check the content of your workspace, enter:
Get-HPEGLWorkspace
Step 2 - Provision Compute Ops Management
The following step involves setting up services. There are several kinds of services you can provision across different regions.
-
To see all available services, use:
Get-HPEGLService -ShowUnprovisionedThis command lists all unprovisioned services, including those for networking devices (HPE Aruba Networking Central), compute devices (Compute Ops Management), storage devices (Data Services), OpsRamp, etc.
The ProvisionStatus column will indicate UNPROVISIONED for each listed service. You can choose to provision any of these, as long as you have the needed permissions.
-
In this lab exercise, you’ll set up the Compute Ops Management (COM) service in the European central region. Enter:
$Region = "eu-central" New-HPEGLService -Name "Compute Ops Management" -Region $Region💡 Note
Additional regions are available; to view different supported regions, use:
Get-HPEGLService -Name "Compute Ops Management" -
To confirm that the COM instance is provisioned, run:
Get-HPEGLService -ShowProvisioned -
Next, assign the Compute Ops Management administrator role to your user account. This role gives you full access to the COM instance you just provisioned:
Add-HPEGLRoleToUser -Email $MyEmail -RoleName 'Compute Ops Management administrator'💡 Note
The Tab key can be used to display the available list of role names.
-
Finally, verify the role assignments with:
Get-HPEGLUserRole -Email $MyEmailThe output also shows the Workspace Administrator role, which HPE GreenLake automatically assigns to the user who creates a workspace.
Step 3 - Set a location
Locations in Service Delivery Information (SDI) store addresses, contacts, and support details for automation. Assigning a device to a location links it physically for automated support, including ticket creation with HPE.
This step is essential for automatically creating a ticket with HPE support.
-
In Station-Info.ps1, scroll down to the Lab variables block and replace the value of
$LocationNamewith a city name of your choice. Click anywhere on that line and press F8 to define the variable in the terminal, then save the file with Ctrl+S: -
To create the location, edit the placeholder values in the following command (description, country, street address, and postal code), then run it. After typing
-Country, press the Tab key to browse all supported countries:New-HPEGLLocation -Name $LocationName -Description "Your customized description" -Country "Your country" -Street "Your customized street address" -City $LocationName -State "NA" -PostalCode "123456789" -PrimaryContactEmail $MyEmail -
Check the location with:
Get-HPEGLLocation
Step 4 - Add a subscription to your workspace
-
To activate compute devices that will be added later to your workspace, you need to add a COM subscription key. Copy the key from Station-Info.ps1 and replace the placeholder in the following command, then run it:
New-HPEGLSubscription -SubscriptionKey "<subscription key from Station-Info.ps1>" -
To check the subscription, enter:
Get-HPEGLSubscription -
Workspaces have two subscription management options:
-
Assignment: Controls automatic subscription assignment when devices are added.
-
Re-assignment: Controls if subscriptions are reassigned when one expires or is canceled. Note that auto-reassignment is enabled by default for all device types.
To retrieve these options, enter:
Get-HPEGLDeviceAutoSubscriptionGet-HPEGLDeviceAutoReassignSubscription -
-
Set the automatic subscription assignment for Compute:
Set-HPEGLDeviceAutoSubscription -ComputeSubscriptionTier ENHANCED💡 Note
Auto-reassignment is enabled by default for all device types; therefore, manual configuration of automatic subscription re-assignment for Compute devices is generally unnecessary. For reference, you may enable it manually using
Set-HPEGLDeviceAutoReassignSubscription -Computesif it was previously disabled withRemove-HPEGLDeviceAutoReassignSubscription.
Task 5 - Onboarding devices
You can add devices to a workspace either one at a time or in bulk. Another option is to use a COM activation key, which lets you add single or multiple compute devices directly to a Compute Ops Management (COM) instance. In this lab, you’ll be using that specific method.
🎯 Note
For onboarding multiple servers or in production, a better approach is to use the HPE Compute Ops Management Onboarding Scripts. Two complementary scripts are available, pick the one that matches how your iLOs reach COM:
- Prepare-and-Connect-iLOs-to-COM-v2.ps1 — bulk, CSV-driven onboarding for any connection type (direct, web proxy, or Secure Gateway). It handles authentication, activation key generation, local iLO firmware updates, and initial iLO configuration (DNS, NTP, tags, location).
- Discover-and-Onboard-iLOs-via-SecureGateway.ps1 — discovery-driven onboarding for estates entirely behind an HPE Secure Gateway. The gateway discovers the iLOs and updates their firmware server-side, so there is no IP list to build and no firmware files to stage (requires HPECOMCmdlets v1.0.26+).
Both deliver a consistent zero-touch process at scale.
Step 1 - Onboard one server
For this lab, you will onboard a single server manually so you can understand each command and validation step.
-
To generate an activation key for connecting your server to the Compute Ops Management instance in the region you provisioned earlier, use the following command:
$Activation_Key = New-HPECOMServerActivationKey -Region $RegionThis command should be used in conjunction with the
-Regionparameter, consistent with other HPECOM cmdlets, to specify the COM instance—that is, the region where the COM instance is provisioned and where the command will be executed. Please note that the auto-completion tab can be utilized to display the available region codes provisioned within your workspace.🔔 Note
This method is supported only for the following iLO versions:
- iLO 5: Version 3.09 or later
- iLO 6: Version 1.64 or later
- iLO 7: Version 1.12.00 or later
-
To see the activation key that has been generated, you can enter:
$Activation_key💡 Note
No subscription key is needed with this command because auto-subscription for Compute has been enabled earlier using
Set-HPEGLDeviceAutoSubscription. -
Next, define the variables for your iLO. In Station-Info.ps1, scroll down to the Lab variables block, select both the
$iLO_IPand$iLO_Passwordlines, and press F8 to run them in the terminal.$iLO_Passwordis the password of the iLO Administrator account: -
Then execute the following commands to connect the iLO to the COM instance using the activation key that was generated earlier:
$iLO_SecurePassword = ConvertTo-SecureString $iLO_Password -AsPlainText -Force $iLO_credential = New-Object System.Management.Automation.PSCredential("Administrator", $iLO_SecurePassword) Connect-HPEGLDeviceComputeiLOtoCOM -iLOCredential $iLO_credential -IloIP $iLO_IP -ActivationKeyfromCOM $Activation_Key -SkipCertificateValidation💡 Note
The
-SkipCertificateValidationparameter bypasses all certificate validation steps, including checks for expiration, revocation, and trusted root authority. This approach is insecure and generally discouraged. It should only be used with known hosts that are using self-signed certificates, which applies in our scenario.💡 Note
The
Connect-HPEGLDeviceComputeiLOtoCOMcmdlet provides additional parameters to connect iLO through a COM Secure Gateway or through a web proxy.In scenarios involving a Secure Gateway (not applicable to this lab), you have two options.
Option A — Connect a single iLO through the Secure Gateway (set the Secure Gateway as the iLO’s proxy):
- Obtain a valid subscription key:
$SubscriptionKey = Get-HPEGLSubscription -ShowWithAvailableQuantity -ShowValid -FilterBySubscriptionType Server | Select-Object -First 1 -ExpandProperty key - Retrieve the Secure Gateway object:
$SG = Get-HPECOMAppliance -Region $Region -Name sg01.domain.com - Create a Secure Gateway activation key:
$Activation_Key = New-HPECOMServerActivationKey -Region $Region -SecureGateway $SG -SubscriptionKey $SubscriptionKey - Use the Secure Gateway activation key to connect the iLO to COM and set the Secure Gateway as the iLO’s proxy server:
Connect-HPEGLDeviceComputeiLOtoCOM -iLOCredential $iLO_credential -IloIP "xxx.xxx.xxx.xxx" -ActivationKeyfromCOM $Activation_Key -SkipCertificateValidation -IloProxyServer sg01.domain.com -IloProxyPort 8080
Option B — Discover and onboard an entire estate behind a Secure Gateway in one batch job (requires v1.0.26+). This native, gateway-driven workflow needs no activation key (COM generates it automatically) and updates the iLO firmware automatically on any server that is below the minimum required version:
- Discover the iLOs reachable through the Secure Gateway:
Invoke-HPECOMSecureGatewayServerDiscovery -Region $Region -SecureGateway "sg01.domain.com" - Onboard every discovered server in a single batch job (firmware compliance handled automatically):
Get-HPECOMSecureGatewayServerDiscovery -Region $Region -SecureGateway "sg01.domain.com" | Connect-HPECOMSecureGatewayDiscoveredServer -IloCredential $iLO_credential -SubscriptionKey $SubscriptionKeyConnect-HPECOMSecureGatewayDiscoveredServercan also configure DNS/NTP and assign a location, tags, and a service delivery contact inline using-Dns,-Ntp,-LocationName,-Tags, and-ServiceDeliveryContact. Add-WhatIfto preview every action without making any change.
To automate this at scale, see 🛡️ Discover-and-Onboard-iLOs-via-SecureGateway.ps1 (v1.0.26+). This Secure-Gateway-native onboarding script discovers every iLO behind an HPE Secure Gateway and onboards them in a single batch job — no CSV of IP addresses and no local firmware staging required (the gateway discovers the iLOs and updates their firmware server-side). It automates GreenLake authentication, COM instance / Secure Gateway / subscription / location validation, optional iLO DNS/NTP, subscription, location, tags and service-delivery contact, shared or per-iLO credentials (CSV), with a
-Checkpre-flight triage table and CSV status reporting. For direct, web-proxy, or CSV-driven onboarding, use its companion Prepare-and-Connect-iLOs-to-COM-v2.ps1 instead. - Obtain a valid subscription key:
-
You can then verify the onboarded servers using the following cmdlet:
Get-HPEGLDevice💡 Note
This method not only automatically assigns servers to the COM service instance but also automatically applies a subscription key to the devices.
-
As the device has been automatically assigned to your COM instance with a subscription key, you are now able to utilize COM cmdlets. For instance, you may use:
Get-HPECOMServer -Region $RegionNote that the output differs slightly from the output of the
Get-HPEGLDevicecommand. It adds additional information such as the power state, the connected state, the iLO IP address, and more.However, always remember that the output is a formatted view and does not show the entire content of the returned object. To get the full details, you need to pipe the command to
| Format-List(or| fl) at the end. -
To determine the number of remaining licenses, execute the following command:
Get-HPECOMServer -Region $Region -ShowSubscriptionDetails -
Before proceeding with the next steps in the lab, ensure that your server is powered on by checking the PowerState column in the output above. If the server is not ON, run the following command:
Get-HPECOMServer -Region $Region | Start-HPECOMServerThis command powers on all servers managed by COM. Since you currently have only one server onboarded, it will start that specific device.
Step 2 - Set device location and tags
-
Next you need to set the device location. As indicated earlier, this step is important to ensure that support cases are automatically created in the event of device failures. To do so, enter:
Get-HPEGLdevice | Set-HPEGLDeviceLocation -LocationName $LocationName -
To verify that the location has been correctly assigned to your device, use the following command:
Get-HPEGLdevice📝 Note
Expand the PowerShell console to its maximum width to ensure that you can see the Location property in the output.
-
Next, you can assign tags to your device. A tag is a form of metadata that uses a key-value pair (e.g., App=AI) and can be applied to any resource. Tags are primarily used to categorize resources based on purpose, owner, environment, or other criteria.
ℹ️ Note
Tags are particularly important for extending filtering capabilities and enhancing the use of scope-based access control, which allows you to limit users’ abilities to perform actions on a selected list of resources. These resources can be categorized based on various criteria, such as generation, model, groups, and most importantly, tags.
-
Add two tags to your device: one for country location and one for AI application type. Use this command:
Get-HPEGLDevice | Add-HPEGLDeviceTagToDevice -Tags "Country=FR, App=AI" -
To verify that the tags have been correctly assigned to your device, use the following command:
Get-HPEGLdevice -ShowTags
Task 6 - Configuration of Compute Ops Management
The following step involves setting up Compute Ops Management. This process includes various tasks like setting up server configurations, forming groups, assigning servers to these groups and much more. The steps to complete this setup are outlined below:
Step 1 - Create server settings
A setting in COM is a collection of parameters that you can apply to one or more servers through groups. These settings include parameters such as BIOS, internal storage, firmware, OS, etc.
Server Bios Settings
Server BIOS Settings allow you to create a new BIOS configuration for
servers using either a workload profile or custom parameters, ensuring
consistent settings across server groups. The
New-HPECOMSettingServerBios cmdlet provides many options; for
details on available parameters and how they behave with different iLO
versions and server generations, refer to the help section of the
cmdlet.
ℹ️ Note
Server BIOS settings can’t be managed from the UI—they can only be created today through the COM API using the
New-HPECOMSettingServerBioscmdlet.
-
To create a bios setting with a few customized options, enter:
$BiosSettingName = "Custom-Bios-For-AI" New-HPECOMSettingServerBios -Region $Region -Name $BiosSettingName -WorkloadProfileName "Virtualization - Max Performance" -AsrStatus:$True -AsrTimeoutMinutes Timeout10This command creates a new BIOS setting configuration tailored for virtualization with maximum performance. It also enables the Automatic Server Recovery (ASR) feature and sets the timeout for the ASR feature to 10 minutes.
-
To verify the newly created BIOS setting, enter:
Get-HPECOMSetting -Region $Region -Name $BiosSettingName
Server Internal Storage Settings
These settings allow you to configure a new server storage setup with different volumes using selected RAID type and size, ensuring uniform storage across groups.
-
To configure for example a configuration with two volumes: OS on RAID1 with two SAS drives, and data on RAID5 with three SSDs plus two spares, enter:
$InternalStorageSettingName = "RAID-Configuration-for-AI-Servers" $volume1 = New-HPECOMSettingServerInternalStorageVolume -RAID RAID5 -DriveTechnology NVME_SSD -IOPerformanceMode ENABLED -ReadCachePolicy OFF -WriteCachePolicy WRITE_THROUGH -SizeinGB 100 -DrivesNumber 3 -SpareDriveNumber 2 $volume2 = New-HPECOMSettingServerInternalStorageVolume -RAID RAID1 -DriveTechnology SAS_HDD New-HPECOMSettingServerInternalStorage -Region $Region -Name $InternalStorageSettingName -Volumes $volume1, $volume2 -Description "RAID1 and RAID5 server settings for AI systems" -
To verify the newly created internal storage setting, enter:
Get-HPECOMSetting -Region $Region -Name $InternalStorageSettingName -
To verify the two volumes that are defined:
Get-HPECOMSetting -Region $Region -Name $InternalStorageSettingName -ShowVolumes
Server Firmware Settings
These settings allow you to set baselines for updating server firmware, helping maintain consistent firmware versions across groups of servers.
-
To set up firmware, start by finding the latest baseline for the relevant generation using:
Get-HPECOMFirmwareBaseline -Region $Region -Generation 11 -LatestVersion -
To create the firmware setting with the latest baselines for both Gen10 and Gen11, enter:
$FirmwareSettingName = "Latest-Firmware-Baselines-for-AI" $Gen10_Firmware_Baseline = Get-HPECOMFirmwareBaseline -Region $Region -LatestVersion -Generation 10 | select -ExpandProperty releaseVersion $Gen11_Firmware_Baseline = Get-HPECOMFirmwareBaseline -Region $Region -LatestVersion -Generation 11 | select -ExpandProperty releaseVersion New-HPECOMSettingServerFirmware -Region $Region -Name $FirmwareSettingName -Description "FW baseline for AI servers" -Gen10FirmwareBaselineReleaseVersion $Gen10_Firmware_Baseline -Gen11FirmwareBaselineReleaseVersion $Gen11_Firmware_Baseline -
To verify the newly created firmware setting, enter:
Get-HPECOMSetting -Region $Region -Name $FirmwareSettingName
iLO Settings
ILO settings enable the configuration of specific parameters to standardize iLO management across server groups. These settings support a range of options, including network protocols, SNMP, user accounts, security features, and update services. The New-HPECOMSettingiLOSettings cmdlet provides many options; for details on available parameters, refer to the help section of the cmdlet.
-
To configure iLO settings, enter:
$iLOSettingName = "AI_iLO_Settings" New-HPECOMSettingiLOSettings -Region $Region -Name $iLOSettingName -Description "iLO Settings for AI Servers" -VirtualMedia Enabled -AccountServicePasswordComplexity Enabled -WebServerSSL Enabled -AcceptThirdPartyFirmwareUpdates Disabled -HardwareVerification EnabledThis command activates iLO virtual media, enforces password complexity, enables HTTPS, disables third-party firmware updates, and enables hardware verification.
💡 Note
With hardware verification enabled, Compute Ops Management records a trusted baseline of the server hardware (memory, drives, processors, power supplies, chassis and devices such as storage controllers or network adapters) when the server joins the group. Any component added, removed or modified afterwards is flagged until an administrator reviews and accepts the change. You will check this in Task 10.
-
To verify the newly created iLO settings, enter:
Get-HPECOMSetting -Region $Region -Name $iLOSettingName
Step 2 - Create a group
In this task you will create a new group incorporating the different settings created earlier. Groups enable you to organize your servers into custom-defined sets for easier monitoring and manageability. The server-related settings and policies you created earlier can be applied to a single group, as you will do in this lab, or to multiple groups as needed.
-
To create a new group, enter:
$GroupName = "AI_Group" New-HPECOMGroup -Region $Region -Name $GroupName -Description "My new group for AI servers" -BiosSettingName $BiosSettingName -AutoBiosApplySettingsOnAdd:$false -iLOSettingName $iLOSettingName -AutoIloApplySettingsOnAdd:$true -FirmwareSettingName $FirmwareSettingName -AutoFirmwareUpdateOnAdd:$false -PowerOffServerAfterFirmwareUpdate:$false -FirmwareDowngrade:$false -StorageSettingName $InternalStorageSettingName -AutoStorageVolumeCreationOnAdd:$false -AutoStorageVolumeDeletionOnAdd:$false -TagUsedForAutoAddServer "App=AI"This command creates the new group “AI_Group” with previously configured BIOS, firmware, storage, and iLO settings. Additionally, the command specifies whether certain actions, such as applying settings or creating storage volumes, should be automated when servers are added to the group. These are called group policies. The “App=AI” tag is defined so that any server with this tag during onboarding will automatically be added to this group.
💡 Note
The server operating system image setting is not used in this command but is another setting that can be utilized to install the operating system using an ISO image and optionally a kickstart file.
-
To verify the newly created group, enter:
Get-HPECOMGroup -Region $RegionNote that, as configured earlier, 4 settings are applied to that group.
-
To display the settings list, type:
Get-HPECOMGroup -Region $Region -Name $GroupName -ShowSettings -
Additionally, you may review the policies currently assigned to the group by using the following:
Get-HPECOMGroup -Region $Region -Name $GroupName -ShowPoliciesKeep in mind that only the iLO settings take effect right away after you add servers to the group.
Step 3 - Add servers to the group
The next task is to add your server to the new group. According to the group policies, only the iLO settings will be applied immediately upon adding the servers to the group.
-
To assign all servers (in this instance, only one server) to the newly created group, proceed as follows:
Get-HPECOMServer -Region $Region | Add-HPECOMServerToGroup -GroupName $GroupName -
To verify that the new server has been added to the group, enter the following command:
Get-HPECOMGroup -Region $Region -Name $GroupName -ShowMembers -
To monitor the progress of active related group jobs, execute the following command at regular intervals:
Get-HPECOMJob -Region $Region -Category Group -ShowRunningThis command shows all the running jobs associated with the group category.
📝 Note
Each time a server is added to a group that includes firmware or iLO settings, an automatic process is initiated. This process triggers a group firmware compliance report job and a group iLO settings compliance job to ensure the servers meet the requirements of the associated firmware baselines and iLO settings.
-
To review the related server jobs that are presently active, execute the command multiple times:
Get-HPECOMJob -Region $Region -Category Server -ShowRunningThis command lists active jobs for the server category, focusing on the “add to group” action.
-
Once all jobs have finished running, execute the command below to check their status:
Get-HPECOMJob -Region $Region📝 Note
Compute Ops Management tracks iLO settings and compares them to the desired configuration. Whenever iLO changes are detected, Compute Ops Management automatically verifies compliance.
-
You can check the compliance status of firmware and ILO settings in several ways, such as by using
Get-HPECOMGrouporGet-HPECOMServer. To verify the group compliance, use the following method:Get-HPECOMGroup -Region $Region -Name $GroupName -ShowComplianceThis command generates a comprehensive compliance status report for all types, including firmware, iLO settings, and external storage. Notably, the iLO settings status is ‘COMPLIANT,’ which confirms that the group-defined iLO settings have been properly implemented on the iLO.
📝 Note
The COM API does not track BIOS settings compliance. This is why you only see these three compliance types in the cmdlets
💡 Note
Get-HPECOMServerincludes several parameters-ShowGroupCompliance,-ShowGroupiLOSettingsCompliance, or-ShowGroupFirmwareCompliance—that allow you to directly check compliance on a specified server.
Task 7 - Gathering Comprehensive Server Inventory Information
Keeping accurate server inventory is crucial for effective IT management—it enables quick troubleshooting, ensures compliance, and helps identify issues before they escalate. Compute Ops Management streamlines this by automatically collecting and updating detailed server inventory, so administrators always have the latest information on hand.
To obtain detailed server inventory information, use the Get-HPECOMServerInventory cmdlet along with the -Name parameter. The -Name parameter accepts either the server’s name or its serial number, allowing you to specify the server from which you wish to retrieve inventory data.
-
But before that, capture the serial number of your server to facilitate all subsequent commands, enter:
$SN = Get-HPECOMServer -Region $Region | Select-Object -ExpandProperty SerialNumber -
Then to generate a detailed memory report of your server using the
$SNvariable, run:Get-HPECOMServerInventory -Region $Region -Name $SN -ShowMemory -
Additional reporting options are available via the same command, like for a report on the CPU:
Get-HPECOMServerInventory -Region $Region -Name $SN -ShowProcessorThere are several Show commands for different server inventory data. For efficiency, type -Show and press CTRL+SPACE to view all property options or use Tab for auto-completion.
💡 Note
Running
-ShowSoftwaremay return no data if your server’s operating system or HPE Agentless Management Service (AMS) is not installed or running. Same with-ShowSmartUpdateToolif SUT is not installed and running.💡 Note
If it is necessary to initiate the collection of server inventory data (for example, if existing data may be outdated), the following command can be used to force a hardware inventory collection:
Get-HPECOMServer -Region $Region | New-HPECOMServerInventory -AsyncThe
-Asyncparameter allows the cmdlet to return the asynchronous job resource immediately. By default, the cmdlet will wait for the job to finish before returning.
Task 8 - Monitoring Server Health, Support, and Warranty Status
One of the key responsibilities in server management is troubleshooting
issues, managing open cases, monitoring server health, and ensuring that
servers remain under warranty coverage. In Task 8, effective server
management includes tasks such as confirming operational status,
reviewing health summaries, monitoring current activities and alerts,
retrieving support details and cases, and identifying servers with
recent support incidents for proactive maintenance. The
Get-HPECOMServer cmdlet, along with its related inventory and job
parameters, provides a comprehensive toolkit for these tasks.
Specifically, you can:
-
Check overall server health and component status (fans, memory, network, power supplies, processor, storage, temperature, BIOS, health LEDs) using
-ShowHealthStatus. -
Review current activities and alerts with
-ShowActivitiesand-ShowAlerts. -
Retrieve detailed support information and warranty details using
-ShowSupportDetails. -
Manage and track open support cases with
-ShowSupportCases, and identify servers with recent support cases via-ShowServersWithRecentSupportCases. -
Review recent jobs performed on the server using
-ShowJobs.
These features collectively enable robust monitoring, efficient troubleshooting, and proactive resolution of server issues, ensuring optimal server performance and support coverage.
Step 1 - Getting server health status, activities, jobs and alerts
The first step in server troubleshooting is to confirm that the server is operational and verify the absence of any active alerts.
-
To review your server’s health status, execute the following command:
Get-HPECOMServer -Region $Region -Name $SN -ShowHealthStatus -
To retrieve the list of activities from the past month on your server, you can use:
Get-HPECOMServer -Region $Region -Name $SN -ShowActivitiesYou can use the dedicated cmdlet
Get-HPECOMActivity -Region $Region -SourceName $SNto retrieve COM activities, which offers enhanced options such as filtering by time, category, or source name. -
To retrieve all alerts associated with your server, use:
Get-HPECOMServer -Region $Region -Name $SN -ShowAlertsAlerts provide security information and issues related to servers. By default, all alerts associated with your server are returned. You can use the dedicated cmdlet
Get-HPECOMAlertto get more options and filters. -
You may receive some returned alerts with a less-than-ideal output view. To view different properties, consider running:
Get-HPECOMServer -Region $Region -Name $SN -ShowAlerts | Format-List -
To obtain a comprehensive list of jobs associated with your server for the last month, including their current state “PENDING” (waiting to start), “RUNNING” (in progress), “STALLED” (stuck), “ERROR” (failed), or “COMPLETE” (finished successfully), you can run:
Get-HPECOMServer -Region $Region -Name $SN -ShowJobsYou can also utilize the specialized cmdlet
Get-HPECOMJob -Region $Region -SourceName $SNto retrieve a list of jobs associated with a specific source name. By default, this command returns jobs from the past seven days, but you can broaden your search using parameters like-ShowLastMonthto include the previous month or-ShowAllfor the complete job history. Additionally, you have the option to filter results to display only jobs that are currently running with-ShowRunning, or to show only jobs that are waiting in the queue by using-ShowPending. -
Please be advised that to obtain the list of jobs related to your group, you may use the following method:
Get-HPECOMJob -Region $Region -SourceName $GroupName -
If you need to view detailed job information or troubleshoot specific tasks, you can refine your queries further by using additional parameters. For example, to quickly identify and analyze the most recent job that has failed, you can target your search accordingly:
Get-HPECOMJob -Region $Region | Where-Object resultCode -eq FAILURE | Select-Object -First 1 | Format-ListThis flexibility helps in managing and monitoring server operations more effectively, especially in large or complex environments.
Step 2 - Getting server support details
The subsequent phase in server troubleshooting involves verifying the support details. This information is crucial for determining warranty status and its duration.
-
To make sure the server is still supported, you can run.
Get-HPECOMServer -Region $Region -Name $SN -ShowSupportDetails⚠️ Note
Your assigned lab server may not have a support contract warranty.
-
You can use the following command to verify whether COM has automatically created a support case:
Get-HPECOMServer -Region $Region -Name $SN -ShowSupportCasesNote that if no support cases are found for the specified server, the cmdlet returns no output.
💡 Note
Get-HPECOMServer -Region $Region -ShowServersWithRecentSupportCasescan be used to list servers with recent support cases.
Step 3 - Collecting and downloading server logs
When encountering a critical server issue, HPE support may request the collection and submission of your server’s Active Health System (AHS) logs for deeper analysis. Traditionally, gathering these logs can be a complex and time-consuming task. Fortunately, the provided module streamlines this process by offering a straightforward method to collect server logs for any specified server, making troubleshooting more efficient and accessible.
-
To initiate the collection and download of server logs, enter:
Get-HPECOMServerLogs -Region $Region -Name $SN -DownloadAHSLogs -Path .💡 Note
The
-DownloadAHSLogsparameter enables you to include Active Health System (AHS) logs along with the regular server logs. AHS logs offer extensive diagnostic information that HPE support often asks for when investigating hardware problems or reviewing support cases. These logs give detailed insights into hardware health and performance. Normally, only standard server logs are gathered, so activate this option if HPE support requests AHS logs specifically for case analysis.The
-Pathparameter allows you to specify the destination folder for the downloaded server logs. In the example above, we used a single period “.” to indicate the current directory, so the logs will be saved locally. Since no custom filename was provided, the module automatically creates a file named in the format “server-logs-- .zip", making it easy to identify and organize logs for different servers and collection times. Please note that the log collection process may require 2 to 4 minutes to complete, as it compiles comprehensive diagnostic data from the server. -
Once the task completes, the zip file can be found using:
Get-ChildItem -Path . -Filter *.zip | Select-Object Name, Length, LastWriteTime -
To see what is inside the archive, extract it with the built-in
Expand-Archivecmdlet and list the extracted files:Get-ChildItem -Path . -Filter *.zip | Expand-Archive -DestinationPath .\AHS -Force; Get-ChildItem .\AHSAlternatively, you can open the zip file in Windows Explorer:
This makes it easy to inspect individual log files and share relevant data with support teams for further troubleshooting.
Step 4 - Enabling email notification
An essential aspect of effective server management is receiving timely alerts when issues arise. To address this, COM provides configurable email notification policies for each service instance as well as for individual servers. In this step, you will establish an email notification policy at the COM instance level, ensuring that whenever a server is added to COM, the preferred email notification settings are automatically applied.
-
To subscribe your user account to receive email notifications, including service events, critical or warning severity events, and daily summary updates, execute the following command:
Enable-HPECOMEmailNotificationPolicy -Region $Region -DailySummary -ServiceEventAndCriticalAndWarningIssues📝 Note
A service event refers to a failure that requires the creation of an HPE support case and may necessitate a service repair.
-
To review the current status of the email notification policy, use the following command:
Get-HPECOMEmailNotificationPolicy -Region $Region
Task 9 - Updating and Ensuring Server Firmware Compliance
This section outlines the procedures for configuring key server management functions in COM. It covers reviewing the firmware analysis report to understand the security value of an update, maintaining server firmware compliance to uphold security and performance standards, reviewing group firmware deviations, and scheduling group firmware updates. Adhering to these steps will enhance the efficiency of monitoring and maintaining your server infrastructure.
Step 1 - Reviewing the firmware analysis report
Before updating firmware, it helps to know what the update would bring. Compute Ops Management continuously compares every server with the latest firmware baseline of its generation, and reports what an update would change, including the security bulletins and customer advisories it would resolve. The analysis is refreshed automatically when the server inventory changes, when an advisory or bulletin is updated, or when a new baseline is supported, so there is nothing to run first.
-
To display the report summary for each server generation, enter:
Get-HPECOMFirmwareAnalysisReport -Region $RegionFor each generation, the summary shows the baseline used for the analysis, the number of servers to update and already up to date, and the number of advisories and bulletins that the update resolves.
-
To list the servers that need an update, run:
Get-HPECOMFirmwareAnalysisReport -Region $Region -ShowServersToUpdateFor each server, the report shows the number of components to update, the critical updates, the advisories resolved, whether a reboot is required, and the download size.
-
To list the security bulletins and customer advisories resolved by the update, run:
Get-HPECOMFirmwareAnalysisReport -Region $Region -ShowAdvisoriesEach entry shows the severity, the title, the number of servers affected, and a link to the HPE support document. To focus on the most important ones, filter by severity and type:
Get-HPECOMFirmwareAnalysisReport -Region $Region -ShowAdvisories -Severity Critical, High -Type 'Security Bulletin'⚠️ Note
Your server was onboarded only a few minutes ago, so it may not be analyzed yet. In that case, the commands above return no server, and the following command lists your server with the reason it has not been analyzed:
Get-HPECOMFirmwareAnalysisReport -Region $Region -ShowServersNotAnalyzedThe screenshots are included to illustrate the anticipated output once the analysis is complete.
💡 Note
The server lists of the report can be piped directly to the firmware update cmdlets. For example, to preview an update of every server whose update resolves at least one advisory or bulletin:
Get-HPECOMFirmwareAnalysisReport -Region $Region -ShowServersToUpdate | Where-Object advisoriesResolved -gt 0 | Update-HPECOMServerFirmware -FirmwareBaselineReleaseVersion $Gen11_Firmware_Baseline -WhatIf
Step 2 - Checking group firmware compliance
The initial step in this process is to verify your group’s firmware compliance status. This compliance report provides a clear assessment of how closely your servers align with the firmware baseline established for your group. Not only does it indicate the number of components that are out of compliance, but it also offers a detailed breakdown—including the total download size required for all necessary firmware updates. This comprehensive view is essential for understanding the scope of updates needed and for planning any remediation actions efficiently.
-
To check your group’s current firmware compliance status, run this command:
Get-HPECOMGroup -Region $Region -Name $GroupName -ShowFirmwareComplianceThis command returns the following properties for the server:
-
Server: Server name
-
SerialNumber: Server serial number
-
Group: Group name the server belongs to
-
State: Compliance state (Compliant, Not Compliant, Unknown, etc.)
-
Score: Compliance score percentage (e.g., 25% indicates 25% compliant)
-
ErrorReason: Reason for compliance failure if applicable
-
Criticality: Severity level of the firmware update (Recommended, Critical, Optional)
-
Deviations: Number of firmware components that deviate from the group’s baseline
-
WillItRebootTheServer: Indicates if applying the update will reboot the server (Yes/No)
-
GracefullShutdownAttempt: Indicates if a graceful shutdown will be attempted before reboot (Yes/No)
-
TotalDownloadSize: Total size of firmware updates to download (e.g., 65 MB)
These properties describe the firmware compliance status of each group member. COM calculates the group compliance status by analyzing the group members for adherence to the server firmware settings configured in the group.
🔔 Note
You may achieve a perfect 100% compliance score with no deviations depending on the status of your allocated server.
-
Step 3 - Checking group firmware deviations
Before updating the server firmware, you can examine any deviations in firmware components from your group’s established baseline. This step allows you to accurately identify which specific components require updates to align with the group definition. The components identified for update correspond to the total firmware size of 65 MB, as indicated in the TotalDownloadSize column of the firmware compliance report.
-
To view your group’s firmware deviations, use:
Get-HPECOMServer -Region $Region -Name $SN -ShowGroupFirmwareDeviationThis command returns the following properties for each firmware component that deviates:
-
ComponentName: Name of the firmware component (e.g., System ROM, NIC, Boot Controller)
-
ExpectedVersion: Firmware version expected by the group’s baseline
-
InstalledVersion: Currently installed firmware version on the server
-
ComponentFilename: Filename of the firmware update package
⚠️ Note
If there are no deviations, this command will not return any response.
🔔 Note
The Firmware Compliance feature does not monitor HPE driver and software versions.
-
Step 4 - Scheduling group firmware update
After identifying the firmware deviation within the group definition, you may choose to perform a group firmware update. For this exercise, however, you will instead create a scheduled task to initiate the firmware update for all servers in your group during the upcoming weekend (in four days).
🎯 Note
A live group firmware update will not be performed in this lab because of time constraints and the potential impact on servers used by other sessions. Thank you for your understanding.
-
To create a scheduled firmware update task, you need to use the
Update-HPECOMGroupServerFirmwarecmdlet with the-ScheduleTimeparameter as shown below:Update-HPECOMGroupServerFirmware -Region $Region -GroupName $GroupName -AllowFirmwareDowngrade -InstallHPEDriversAndSoftware -ScheduleTime (Get-Date).AddDays(4)This update, scheduled in four days, allows firmware downgrades and installs HPE drivers and software.
📝 Note
To benefit from HPE’s drivers and software update functionality, always make sure your servers fulfill the required prerequisites.
-
To list all scheduled tasks, you can use:
Get-HPECOMSchedule -Region $RegionThere are several other important parameters with the
Update-HPECOMGroupServerFirmware:The
-ServerSerialNumberparameter allows you to update only a specific server within the group instead of updating all servers in the group at once. Testing firmware updates on an individual server prior to deploying them across the entire group is a recommended best practice.By default,
Update-HPECOMGroupServerFirmwareruns updates in parallel across eligible servers. The-SerialUpdatesparameter ensures that only one server in the group updates at a time. This prevents all servers from being offline simultaneously. When you combine-SerialUpdateswith-StopOnFailure, the update process stops immediately if any server fails the firmware update, preventing further servers from being updated until you investigate the issue.The
-PowerOffAfterUpdateparameter automatically powers off servers after a successful firmware update, which can be useful for data center maintenance schedules or when you want to perform physical maintenance.The
-DisablePrerequisiteCheckparameter bypasses prerequisite validation checks before the update starts. Use this parameter only in trusted environments where you have already verified that all prerequisites are met, as skipping these checks can lead to failed updates.The
-SkipComponentUpdatesThatAreBlockedByKnownIssuesparameter automatically avoids updating specific firmware components that are known to cause problems or issues in your environment.The
-Asyncparameter returns control to your PowerShell prompt immediately without waiting for the firmware update to complete. This is useful when you want to schedule multiple operations or continue with other tasks while the firmware updates run in the background.
Task 10 - Essential Next Steps for Server Management and Sustainability
After completing setup and firmware updates, the next essential steps focus on ongoing server management and sustainability. Use HPE Compute Ops Management PowerShell cmdlets to monitor server performance and sustainability, generate utilization insights, and review energy reports. Streamline authentication for accessing iLO interfaces by implementing Single Sign-On (SSO), confirm that your COM configuration of iLO settings is correct through practical verification, and check the security and hardware verification status of your server.
Step 1 - Server utilization insights
Server utilization insights play a crucial role in optimizing data center efficiency and sustainability. Leveraging AI-powered analytics, these insights provide detailed visibility into key performance metrics such as CPU usage, memory utilization, bus activity, and I/O bus performance. By continuously monitoring and analyzing server workloads, administrators can proactively identify bottlenecks, balance resource allocation, and make informed decisions to maximize both performance and energy efficiency.
By default, COM automatically enables metrics data collection and utilization alerts. This feature allows COM to gather essential metrics for generating sustainability AI insights, creating utilization reports, and issuing utilization alerts.
-
To check the current configuration status, you can run:
Get-HPECOMMetricsConfiguration -Region $RegionCOM metrics provides information on CPU, memory bus, and I/O bus usage. These insights help organizations monitor and manage the performance of their server infrastructure.
-
To view detailed CPU utilization insights for your server, use the following command:
Get-HPECOMServerUtilizationInsights -Region $Region -SerialNumber $SN -CPUUtilization⚠️ Note
Please be advised that server utilization insights are only for HPE ProLiant Intel based servers and the utilization insight data might not be available at this time.

Since your server was only recently added to the COM instance, a minimum of one day is required for sufficient data collection. The screenshot is included to illustrate the anticipated output of the cmdlets after several days of data collection.
-
By default, this cmdlet provides CPU utilization data for the past 90 days. If you want to customize the reporting period, add the
-LookbackDaysparameter. For example, to see CPU utilization insights for the last 7 days, enter:Get-HPECOMServerUtilizationInsights -Region $Region -SerialNumber $SN -CPUUtilization -LookbackDays 7The cmdlet also offers several important metrics:
-
MemoryBusUtilization
-
IOBusUtilization
-
CPUInterconnectUtilization
These measurements give a broad view of your server’s resource usage, allowing you to make smart choices that boost performance and efficiency.
-
Step 2 - Server sustainability insights
The Server Sustainability Insights feature is essential for enhancing data center efficiency and promoting environmentally responsible operations. In today’s landscape, where sustainability is increasingly prioritized, it’s critical to monitor and optimize energy usage across server infrastructure. Compute Ops Management (COM) offers comprehensive sustainability insights by providing detailed reports on energy consumption, carbon dioxide (CO2) emissions, and associated energy costs.
These three report types—covering energy consumption, CO2 emissions, and cost savings—empower organizations to assess, track, and manage the environmental impact of their servers. With these insights, IT teams can make data-driven decisions to reduce their carbon footprint and operational expenses.
-
To access in-depth energy consumption data for a specific server, use the following command:
Get-HPECOMSustainabilityInsights -Region $Region -SerialNumber $SN -EnergyConsumptionBy default, similar to the server utilization insights, this cmdlet provides the total estimated figures for the previous 90 days. Specifying your server’s serial number ensures that the results are focused on the server of interest.
⚠️ Note
Please be advised that sustainability insight data will not be available at this time. Since your server was only recently added to the COM instance, a minimum of one day is required for sufficient data collection. The screenshots are included to illustrate the anticipated output of the cmdlets after several days of data collection.
-
If you want to view aggregate sustainability metrics for all servers managed by your COM instance, use the following command:
Get-HPECOMSustainabilityInsights -Region $Region -EnergyConsumptionThis screenshot illustrates the output generated by a COM instance operating with multiple servers:

The report provides the total estimated energy consumption (in kilowatt-hours, kWh) for all servers in the specified region. The data includes collected values from the past 90 days (3 months), as well as projected consumption for the next 180 days (6 months) helping with planning and decision-making.
-
To retrieve this summary specifically for the region, use:
Get-HPECOMSustainabilityInsights -Region $Region -EnergyConsumptionTotal -
Additionally, you can explore other sustainability insights by modifying the parameters:
-
-EnergyCost: Displays energy cost data for your servers. -
-Co2Emissions: Provides information about carbon emissions.
-
-
To extend your historical data analysis, you can look back up to 180 days by using the
-LookBackDaysparameter. For example, to estimate future CO2 emissions based on trends from the past 3 months, run:Get-HPECOMSustainabilityInsights -Region $Region -Co2Emissions -LookBackDays 180This command returns projected CO2 emissions, allowing you to better assess and manage the environmental impact of your server operations.
Step 3 - Interacting with iLOs using Compute Ops Management SSO
Direct interaction with iLOs from this library is a key capability that enhances server management efficiency. Starting in January 2025, Compute Ops Management introduced support for single sign-on (SSO) access to iLO, significantly streamlining the authentication process. This advancement enables seamless integration with iLOs, allowing administrators to perform a range of tasks—from executing native iLO API RedFish commands to leveraging the HPEiLOCmdlets module for various iLO operations. The following section outlines how to generate an iLO access token and demonstrates several ways to interact with an iLO, making day-to-day management tasks more intuitive and secure.
To authenticate to your server’s iLO using single sign-on (SSO), follow these 4 steps for clarity and precision:
-
Generate an iLO SSO Session Object
Run the following command to obtain a session object for SSO authentication. Replace with your server’s serial number and ensure
$Regionis set appropriately.$SSOObject = Get-HPECOMServer -Region $Region -Name $SN | Get-HPECOMServeriLOSSO -GenerateXAuthToken -SkipCertificateValidationThis command generates an SSO session object, which you’ll use to authenticate with HPEiLOCmdlets.
-
To view the details of the session object, enter:
$SSOObject⚠️ Note
SSO is currently not supported by servers managed through HPE OneView via HPE Compute Ops Management - OneView Edition (COM-OVE).
-
Install and import the HPEiLOCmdlets module, a separate PowerShell module for managing iLO directly:
Install-Module HPEiLOCmdlets Import-Module HPEiLOCmdletsType
Yif prompted to install from an untrusted repository, and press Enter to continue. Then pressYto accept the license terms. -
Connect to iLO Using the SSO Token
Use the following command to establish a connection to your iLO, substituting with the appropriate IP address. The SSO token will be passed from the session object.
$connection = Connect-HPEiLO -Address $iLO_IP -XAuthToken $SSOObject."X-Auth-Token" -DisableCertificateAuthenticationIf the connection is successful, no error message will be returned.
-
To verify the connection, inspect the $connection object:
$connection -
Perform iLO Operations
With the established connection, you can now execute various iLO management tasks. For example, to retrieve the iLO event log, use:
(Get-HPEiLOEventLog -Connection $connection).EventlogThese steps streamline authenticating to iLO with Compute Ops Management SSO and let you manage your servers more efficiently with PowerShell cmdlets. This method requires no iLO credentials: the iLO permissions granted by your Compute Ops Management role are applied automatically in iLO.
Step 4 - Testing ILO settings configuration
In this task, you will verify that the iLO settings you configured in your group (Step6 – Task 1) have been correctly applied to your server. Specifically, you will check the AcceptThirdPartyFirmwareUpdates parameter, then change it and observe how COM detects the configuration drift and re-applies the correct settings.
-
Verify the current iLO firmware policy setting
Begin by querying the iLO directly with the HPEiLOCmdlets and your connection object to check the current firmware update policy. Use the following command to retrieve the firmware policy from your iLO:
$FirmwareUpdatePolicy = Get-HPEiLOFirmwarePolicy -Connection $connection $FirmwareUpdatePolicy.Accept3rdPartyFirmware $FirmwareUpdatePolicyThis command should return false, indicating that the AcceptThirdPartyFirmwareUpdates option is set to Disabled as per your group’s iLO policy. With this setting, installation of third-party firmware on your server is blocked, aligning with recommended security best practices.
-
Simulate a configuration drift by changing the setting in COM
Now you will change the iLO setting in COM from Disabled to Enabled to simulate a configuration change. This will cause your server to become non-compliant with the group’s iLO policy. Run this command to update the iLO setting:
Set-HPECOMSettingiLOSettings -Region $Region -Name $iLOSettingName -Description "iLO Settings for AI Servers" -VirtualMedia Enabled -AccountServicePasswordComplexity Enabled -WebServerSSL Enabled -AcceptThirdPartyFirmwareUpdates EnabledSettings that are not specified in the command, such as hardware verification, keep their current value.
-
Check the compliance status
After changing the setting, check the group’s compliance status. You should see that the iLO settings are now marked as not compliant because the group policy expects Disabled but the setting now says Enabled:
Get-HPECOMGroup -Region $Region -Name $GroupName -ShowComplianceThe compliance check will show that your server’s iLO configuration no longer matches the group’s iLO policy.
-
Re-apply the correct iLO configuration
Now you will use COM to re-apply the correct iLO configuration to your server. This will change the AcceptThirdPartyFirmwareUpdates parameter back to Enabled on the iLO itself. Run the following command using the Async parameter so you don’t have to wait for the job to complete:
$task = Invoke-HPECOMGroupServeriLOConfiguration -Region $Region -GroupName $GroupName -ServerSerialNumber $SN -Async -
Check the job status
$taskThe
$taskvariable contains the job object returned by the-Asyncparameter, showing the job is currently in a Running state. -
Monitor the job progress
While the iLO configuration is being applied, you can check the job status using these commands:
Get-HPECOMJob -Region $Region -Category Group -ShowRunningGet-HPECOMJob -Region $Region -Category Group -JobResourceUri $task.resourceUriGet-HPECOMJob -Region $Region -Category GroupThe job will take approximately 1 to 2 minutes to complete.
-
Verify the setting has been applied
Once the job is completed, query the iLO again to verify that AcceptThirdPartyFirmwareUpdates has been changed back to Enabled on your iLO:
$FirmwareUpdatePolicy = Get-HPEiLOFirmwarePolicy -Connection $connection $FirmwareUpdatePolicy.Accept3rdPartyFirmware $FirmwareUpdatePolicyThis should now return “true” confirming that COM successfully applied the new iLO configuration to your server.
Key Learnings:
-
Methods for connecting to an iLO via SSO without the requirement of a dedicated iLO account.
-
Techniques for directly querying iLO settings using HPEiLOCmdlets to verify current hardware configurations.
-
Processes by which COM identifies configuration drift when group policies differ from server configurations.
-
Use of Invoke-HPECOMGroupServeriLOConfiguration to re-apply relevant group policies to designated servers.
-
Approaches for monitoring COM jobs in order to track the progress of configuration changes.
These points illustrate the effectiveness of COM’s policy-based management approach, enabling administrators to specify desired states within group settings and allowing COM to automatically detect and remediate configuration drift across servers.
Step 5 - Checking server security and hardware verification
In Task 6, you enabled hardware verification in the iLO settings of your group. When your server joined the group, Compute Ops Management recorded a trusted baseline of its hardware. From now on, any component that is added, removed or modified (memory, drives, processors, power supplies, chassis, storage controllers, network adapters) is detected, and the server is flagged as at risk until an administrator reviews and accepts the change. This protects against unauthorized hardware changes, such as a swapped drive or an added device.
-
To review the security status of your server, enter:
Get-HPECOMServer -Region $Region -Name $SN -ShowSecurityParametersThe output shows the overall security status, the iLO security status, and the hardware verification status of your server. A hardware verification status of OK means that the hardware matches the trusted baseline.
-
To get the same view for the whole group, with the number of servers per status, run:
Get-HPECOMGroup -Region $Region -Name $GroupName -ShowSecurityStatus💡 Note
Without
-Name, this command returns the security status of all your groups, which is a quick way to find the groups that contain servers at risk. -
To display the hardware verification details of the servers in your group, run:
Get-HPECOMGroupServerHardwareVerification -Region $Region -GroupName $GroupNameYour server should show Verified, with the date the baseline was recorded. When a hardware change is detected, the status becomes Failed and the ComponentsChanged column lists the categories of the changed components.
📝 Note: What happens when the hardware changes
Changing hardware is not possible in this lab, so the following example illustrates the process on a server where an embedded storage controller was removed. The
-Status RISKfilter lists the servers with hardware changes, and-ShowChangesdetails each change with its category, type (Added, Removed, Modified), component name, location, model and serial number:Get-HPECOMGroupServerHardwareVerification -Region $Region -GroupName $GroupName -Status RISK Get-HPECOMGroupServerHardwareVerification -Region $Region -GroupName $GroupName -ShowChanges
Once the change is confirmed as legitimate, the administrator accepts it. The current hardware becomes the new trusted baseline and the status returns to Verified:
Get-HPECOMGroupServerHardwareVerification -Region $Region -GroupName $GroupName -Status RISK | Approve-HPECOMGroupServerHardwareChange
-
Since your server has no hardware change, there is nothing to accept. You can check how the cmdlet validates the request before sending anything by running it with
-WhatIf:Approve-HPECOMGroupServerHardwareChange -Region $Region -GroupName $GroupName -ServerName $SN -WhatIfThe cmdlet reports that there are no hardware changes to accept and does not send the request. Like all cmdlets of the library, it checks every condition first (the group exists, the server is a member, hardware verification is enabled, a change is pending), so your automation scripts get a clear status instead of an API error.
Task 11 - Clean up your workspace
Before running the zero-touch script in Task 12, release your server and subscription key so the script can reuse them. Run the following commands in order to delete everything you created in your workspace. The lab is reset automatically for the next participant, so no other cleanup is needed.
-
Remove your server from the workspace:
Get-HPEGLDevice | Remove-HPEGLDevice -Force -
Remove the subscription key:
Get-HPEGLSubscription | Remove-HPEGLSubscription -
Remove the COM service instance:
Get-HPEGLService -ShowProvisioned | Remove-HPEGLService -Force -
Delete the workspace:
Remove-HPEGLWorkspace -ForceThis permanently deletes the workspace and ends your session in it.
Task 12 - Explore Zero Touch Automation with the Sample Script (Optional)
To see the full value of this library, run the Zero Touch Automation script from GitHub. It automates everything you did manually in this lab, from workspace provisioning and server configuration to policy management and scheduling a firmware update, in a single run. It reports a result message for each step, so you can easily follow its progress.
-
Open Chrome in the lab virtual machine. Copy the address below with the Copy button, then paste it into the Chrome address bar with Ctrl+V:
https://github.com/jullienl/HPE-COM-PowerShell-Library/blob/main/Examples/COM-Zero-Touch-Automation.ps1⚠️ Note
Do not click the script links in this guide. A link opens in the browser of the PC you are reading the guide on, not in the Omnissa virtual machine, so the script would be downloaded to the wrong computer.
-
Click Download raw file.
-
Chrome saves the script to the Downloads folder automatically. Click Show in folder:
-
Right-click the script and select Open with Code.
-
In the script, update the following 5 variables. Your own details (email, subscription key, iLO IP and iLO password) are in Station-Info.ps1. The other two values are given below:
-
For
$MyEmail, at line 512, replace the value with the email you used earlier to connect to HPE GreenLake: -
For
$AdditionalUser, at line 546, enter:com.demoad@gmail.comreplacing the existing value:
-
For
$OrganizationName, at line 566, enter:HOL06-HPETechEnablement-Orgreplacing the existing value:
-
For
$SubscriptionKeys, at line 587, delete the second key and add your subscription key from Station-Info.ps1. Make sure you remove the comma at the end of the line: -
For
$Servers, at lines 591+, replace the values with your server’s iLO IP and iLO password from Station-Info.ps1, and remove the other server entries. Make sure you remove the comma at the end of line 578:
-
-
Save the file with Ctrl+S.
-
Switch back to the PowerShell terminal and navigate to the Downloads folder:
cd Downloads -
Set the execution policy:
Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope Process -
Run the script:
.\COM-Zero-Touch-Automation.ps1 -
Enter your password when prompted.
-
When provisioning finishes, check how long it took.
-
Press
Ywhen prompted with “Do you want to clean up the environment now? (Y/N)”. Deprovisioning then removes everything, including the newly created workspace.The environment is now provisioned and cleaned up again, leaving no residual resources.
By combining this script with the HPECOMCmdlets library, tasks that normally require manual work, such as provisioning, configuration, and deprovisioning, run in a fraction of the time. This reduces human error and operational delays, and it lets administrators scale operations, keep configurations consistent, and respond quickly to changing business needs.
With this final step complete, you have successfully concluded the hands-on lab.
Summary
Throughout this lab, you explored how to automate server lifecycle management using the HPE Compute Ops Management PowerShell module. You:
-
Installed the HPECOMCmdlets library and authenticated to HPE GreenLake.
-
Created a workspace, added a user, provisioned a COM instance, configured a location, and installed a subscription key.
-
Onboarded a server to COM using an activation key, assigned location and tags, and verified device status.
-
Created configuration policies for BIOS, storage, firmware, and iLO, then applied them through a server group.
-
Checked and enforced compliance, monitored jobs, and retrieved detailed inventory, health, alerts, support, and warranty data.
-
Used COM SSO to access iLO, detected configuration drift, and automatically re‑applied policy.
-
Reviewed the security and hardware verification status of your server and learned how hardware changes are detected and accepted.
-
Reviewed the firmware analysis report to identify the security bulletins and advisories resolved by an update, then explored firmware compliance, scheduled updates, utilization insights, and sustainability metrics.
-
Cleaned up your workspace by removing the server, the subscription key, the COM service instance, and the workspace itself.
-
Finally, executed the COM-Zero-Touch-Automation PowerShell script to automate and streamline the entire configuration workflow—from provisioning and policy application to deprovisioning—enabling consistent, efficient, and error-free server management within the HPE GreenLake platform.
Completing this lab provides you with a practical, end‑to‑end understanding of automated server management, enabling faster deployments, consistent configuration at scale, reduced manual effort, and improved operational reliability. It equips you with skills to streamline onboarding, enforce policy‑driven governance, automate compliance, and leverage sustainability and utilization insights for smarter infrastructure decisions.
Want more?
🧪 Try the GitHub Copilot and HPECOMCmdlets hands-on lab to build a Compute Ops Management automation script with AI-assisted prompts.
📖 Explore the PowerShell Library for HPE Compute Ops Management article for installation, authentication, session management, onboarding examples, best practices, and troubleshooting. For the most complete and up-to-date library reference, consult the HPECOMCmdlets README.
🚀 Explore the Zero-Touch Automation example used in this lab. It demonstrates the lifecycle from workspace provisioning and server onboarding through configuration, firmware updates, and optional cleanup.
🚀 To prepare and onboard multiple servers from a CSV file, see Prepare-and-Connect-iLOs-to-COM-v2.ps1. It can configure iLO connectivity, update firmware when needed, and connect devices directly, through a proxy, or through a Secure Gateway.
🚀 To discover and onboard servers through a Secure Gateway, see Discover-and-Onboard-iLOs-via-SecureGateway.ps1. The gateway discovers iLOs on its network and handles firmware updates; the script also offers a preflight check and CSV status report.
🔔 Explore a variety of sample scripts designed for the Compute Ops Management API, including Ansible playbooks, PowerShell, and Python scripts. These resources offer practical examples to help automate and streamline server management tasks. Visit the GitHub project.
🛠️ Interested in using Ansible with COM? Visit this open source GitHub project dedicated to server provisioning. Originally developed to support ESXi, RHEL, and Windows Server platforms, the project demonstrates extensive COM API capabilities—from initial setup (Day 0 operations), through activation and configuration (Day 1), to ongoing management and maintenance (Day 2), such as automated firmware updates.
🖥️ When you’re ready to dive deeper, schedule a personalized session on the HPE Demonstration Portal.
✨ You can also request a 90-day evaluation of Compute Ops Management to experience its full capabilities.


















































































































