Skip to content

Get HPOVProfile

Chris Lynch edited this page Dec 9, 2019 · 29 revisions

ℹ️ Note: This Wiki is going through a major change, and will be migrated to a new location. If you want to preview this new documentation, please go here.

HPE OneView 1.20 Library

Get-HPOVProfile

Retrieve Server Profile resource(s).

SYNTAX

Get-HPOVProfile[ [-name] <name>][ [-Unassigned] <Unassigned>] [<CommonParameters>]
Get-HPOVProfile[ [-name] <name>][ [-Unassigned] <Unassigned>] [-export] <export> [-location] <location> [<CommonParameters>]
Get-HPOVProfile[ [-name] <name>] [-List] <List>[ [-Unassigned] <Unassigned>] [<CommonParameters>]

Detailed Description

This cmdlet will obtain a collection of Server Profile resources, or a specific Server Profile the specified name. It returns all aspects of the Server Profile.

This will also provide the ability to export Server Profile objects to their own JSON encoded file. All appliance unique properties (minus the Server Hardware Type, Enclosure Group, and Connection Network assignment) are removed. Connection layout, assigned addresses, networks, bandwidth, BIOS, Boot Order, Firmware settings will all be retained. Assigned Address types will change from Virtual to UserDefined in order to retain their assignment.

Parameters

-name <name>

The name of the server profile resource to be returned. All server profile resources will be returned if omitted. Supports * wildcard character.

Aliases None.
Required? false
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters?    false

-List <List>

Aliases [-report] Display report list of Server Profiles

Aliases None.
Required? true
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters?    false

-Unassigned <Unassigned>

Optional parameter that can be included with the List switch parameter to only display unassigned Server Profiles. Can also be combined with the name parameter for Server Profile wildcard name search.

Aliases None.
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters?    false

-export <export>

Aliases [-x] Switch used to export Server Profile object to JSON encoded file.

Aliases None.
Required? true
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters?    false

-location <location>

Aliases [-save] Location where to save the Server Profile

Aliases None.
Required? true
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters?    false

<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer, PipelineVariable, and OutVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216)

Input Types

None. You cannot pipe objects to this cmdlet.

Return Values

System.Management.Automation.PSCustomObject

Single Server Profile

System.Array

Multiple Server Profiles

The matching server profile resources.

The matching server profile resources.

Examples

 -------------------------- EXAMPLE 1 --------------------------

PS C:\> $profiles = Get-HPOVProfile

Return all the server profiles managed by the appliance.

 -------------------------- EXAMPLE 2 --------------------------

PS C:\> $profile = Get-HPOVProfile "SA"

Return the server profile resource with name "SA".

 -------------------------- EXAMPLE 3 --------------------------

PS C:\> $profiles = Get-HPOVProfile profile*

Return server profile resources that match 'profile*'.

 -------------------------- EXAMPLE 4 --------------------------

PS C:\> Get-HPOVProfile -list Profile Name Managing BIOS Managing Firmware Assigned State ------------ ------------- ----------------- -------- ----- Copy of test 2 False False Unassigned Normal Profile 11 True True Encl1, bay 11 Normal Profile 12 False False Encl1, bay 12 Normal Profile 13 False False Encl1, bay 13 Normal Profile 14 False False Encl1, bay 14 Normal Profile 15 False False Encl1, bay 15 Normal Profile 16 False False Encl1, bay 16 Normal Test 1 False False Unassigned Normal test 2 False False Encl1, bay 3 Normal test 3 False False Unassigned Normal

Generate a list of all server profiles.

 -------------------------- EXAMPLE 5 --------------------------

PS C:\> get-hpovprofile -name 'test 1' -list Profile Name Managing BIOS Managing Firmware Assigned State ------------ ------------- ----------------- -------- ----- Test 1 False False Unassigned Normal

Generate a report of a specific server profile.

 -------------------------- EXAMPLE 6 --------------------------

PS C:\> Get-HPOVProfile -list -unassigned Profile Name Managing BIOS Managing Firmware Assigned State ------------ ------------- ----------------- -------- ----- Copy of test 2 False False Unassigned Normal Test 1 False False Unassigned Normal test 3 False False Unassigned Normal

Generate a list of all Unassigned server profiles.

 -------------------------- EXAMPLE 7 --------------------------

PS C:\> Get-HPOVProfile -export -location c:\profiles

Save all Server Profile objects to their own backup file to C:\profiles.

 -------------------------- EXAMPLE 8 --------------------------

PS C:\> Get-HPOVProfile -name Profile1 -export -location c:\profiles

Save Profile1 Server Profile object to its own backup file in C:\profiles.

Related Links


Wiki Table of Contents

Clone this wiki locally