Get-OVServer retrieves server hardware objects. With no parameters it returns everything.
# All serversGet-OVServer# A specific server by iLO hostname or bay locationGet-OVServer -Name "Encl1, bay 3"# By serial numberGet-OVServer -SerialNumber "MXQ12345AB"# By OS hostname reported by the iLO host dataGet-OVServer -ServerName "esxi-host-01.example.com"# Servers without a profile assignedGet-OVServer -NoProfile# Servers with a warning or critical health statusGet-OVServer -Status Warning, Critical
Retrieve a hardware type object first, then filter servers against it:
$SY480Gen10SHT = Get-OVServerHardwareType -Name "SY 480 Gen10 1" -ErrorAction Stop# All servers of that type with no profileGet-OVServer -InputObject $SY480Gen10SHT -NoProfile# Servers with at least 4 CPU cores and 512 GB RAMGet-OVServer -InputObject $SY480Gen10SHT -NoProfile | Where-Object { ($_.processorCount * $_.processorCoreCount) -ge 4 -and $_.memoryMb -ge (512 * 1024) }
The AddServers_Monitored_Sample.ps1 sample script demonstrates importing a large fleet from a CSV file. The CSV must contain the columns hostname, account, and password.
The appliance limits concurrent asynchronous tasks to 64. The sample script above pauses processing once that limit is reached. For very large fleets, consider batching into groups and waiting for each batch to complete with Wait-OVTaskComplete.
Get-OVIloSso retrieves a Single Sign-On token that opens an authenticated iLO web session without requiring separate iLO credentials.
# Open iLO web UI via SSO (returns a URL)$Server = Get-OVServer -Name "Encl1, bay 3"$SsoToken = Get-OVIloSso -InputObject $Server# Start-Process to open in browserStart-Process $SsoToken.IloSsoUrl
Hardware types describe the physical capabilities of a server model. They are used as constraints when creating server profile templates.
# List all hardware typesGet-OVServerHardwareType# Get a specific type$SHT = Get-OVServerHardwareType -Name "BL460c Gen10" -ErrorAction Stop# See what network adapters and slots the type exposes$SHT.adapters$SHT.storageCapabilities
When you add a server to OneView, the appliance auto-discovers the hardware type. You do not need to create hardware types manually.
# Remove a specific server (prompts for confirmation)Get-OVServer -Name "Encl1, bay 3" | Remove-OVServer# Remove without promptingGet-OVServer -Name "Encl1, bay 3" | Remove-OVServer -Confirm:$false
Removing a managed server also removes any server profile assigned to it. Unassign the profile first if you need to preserve it.