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 one or more server hardware resources from an HPE OneView appliance.Syntax
Description
Get-OVServer returns server hardware objects from the connected HPE OneView appliance. You can filter results by server name, serial number, OS hostname reported by the iLO, health status, label, profile assignment, or hardware type. When called without parameters, all server hardware resources visible within the caller’s active scopes are returned.
The cmdlet accepts server hardware type objects or server profile template objects via the pipeline to return only servers that match that hardware type or template.
Parameters
Filter servers by the name assigned in HPE OneView. Supports wildcard patterns (e.g.,
"Encl1*").Filter servers by physical serial number.
Filter servers by the OS hostname or server name as reported by the iLO.
Filter servers by health status. Valid values:
Critical, Warning, OK, Unknown, Disabled. Accepts multiple values.Return only servers that do not have a server profile assigned.
A server hardware type or server profile template object (accepted from the pipeline via the
ServerHardwareType or ServerProfileTemplate aliases). Returns only servers matching that type or template.Filter servers by maintenance mode state. Use
$true to return only servers currently in maintenance mode.Filter servers by an assigned resource label.
Limit the number of results returned.
Limit results to resources in the specified scope. Defaults to
AllResourcesInScope, which respects the active session permissions.The appliance connection object or name. Defaults to the default connected session (
${Global:ConnectedSessions}).Examples
Get all server hardware
Get a server by name
Encl1, bay 1.
Filter by name using a wildcard
Encl1.
Get unassigned servers only
Filter by health status
Critical or Warning health state.
Get servers matching a hardware type
SY 480 Gen10 1 hardware type.
Output
HPEOneView.ServerHardware
Each returned object includes properties such as name, serialNumber, serverName, powerState, status, model, processorType, memoryMb, serverProfileUri, and ApplianceConnection.