Documentation Index
Fetch the complete documentation index at: https://mintlify.com/HewlettPackard/POSH-HPEOneView/llms.txt
Use this file to discover all available pages before exploring further.
Synopsis
Retrieves server profiles managed by an HPE OneView appliance. Supports filtering by name, label, or associated server hardware, and can surface non-compliant profiles.Syntax
Description
Get-OVServerProfile queries the HPE OneView appliance for server profile resources. When called with no parameters, it returns all server profiles visible within the caller’s current scope. Use -Name to filter by profile name, -InputObject to filter by the server hardware or server hardware type the profile is assigned to, or -NonCompliant to return only profiles that are out of compliance with their template.
The -Detailed switch returns extended compliance and consistency details for each profile. The -Export switch serialises each profile to a JSON file in the directory specified by -Location.
Parameters
Name of the server profile to retrieve. Accepts wildcard characters (
*). Alias: profile.Return only server profiles that are not compliant with their associated server profile template.
Return only server profiles that are not assigned to any server hardware.
A server hardware or server hardware type object returned by
Get-OVServer or Get-OVServerHardwareType. When provided, only profiles associated with that resource are returned. Accepts pipeline input.Filter results to profiles that have been assigned the specified label.
Limits results to resources belonging to the specified HPE OneView scope. Defaults to
AllResourcesInScope.Return extended detail, including per-category compliance state, for each matching profile. Mutually exclusive with
-NonCompliant and -Export.Export each matching profile to a JSON file. Requires
-Location. Alias: x.Directory path where exported JSON files will be written. The directory is created if it does not exist. Requires
-Export. Alias: save.Specifies the HPE OneView appliance connection to query. Defaults to the default connected session. Alias:
Appliance.Examples
Get all server profiles
Get a profile by name
Hyp-Clus-01.
Get profiles assigned to a specific server hardware type
SY 480 Gen10 1.
Get all non-compliant profiles
Export profiles to disk
C:\Backup\Profiles.
Output
HPEOneView.ServerProfile — One or more server profile objects. When -Detailed is specified the objects include extended compliance metadata.