Library Version 1.10

Library Version 1.06


HP OneView 1.10 Library

NAME

New-HPOVProfile

SYNOPSIS

Create or Import a Server Profile

SYNTAX

New-HPOVProfile [-name] <String> [[-server] <Object>] [[-description] <String>] [[-connections] <Array>] [[-enclosureGroup] <Object>] [[-serverHardwareType] <Object>] [[-firmware] <SwitchParameter>] [[-baseline] <Object>] [[-bios] <SwitchParameter>] [[-biosSettings] <Array>] [[-boot] <SwitchParameter>] [[-bootOrder] <Array>] [[-localstorage] <SwitchParameter>] [[-Initialize] <SwitchParameter>] [[-Bootable] <SwitchParameter>] [[-RaidLevel] <String>] [[-Affinity] <String>] [[-macAssignment] <String>] [[-wwnAssignment] <String>] [[-snAssignment] <String>] [<CommonParameters>]

New-HPOVProfile [-name] <String> [[-server] <Object>] [[-description] <String>] [[-connections] <Array>] [[-enclosureGroup] <Object>] [[-serverHardwareType] <Object>] [[-firmware] <SwitchParameter>] [[-baseline] <Object>] [[-bios] <SwitchParameter>] [[-biosSettings] <Array>] [[-boot] <SwitchParameter>] [[-bootOrder] <Array>] [[-localstorage] <SwitchParameter>] [[-Initialize] <SwitchParameter>] [[-Bootable] <SwitchParameter>] [[-RaidLevel] <String>] [-SANStorage] <SwitchParameter> [-HostOStype] <String> [-StorageVolume] <Object> [[-EvenPathDisabled] <SwitchParameter>] [[-OddPathDisabled] <SwitchParameter>] [[-Affinity] <String>] [[-macAssignment] <String>] [[-wwnAssignment] <String>] [[-snAssignment] <String>] [<CommonParameters>]

New-HPOVProfile [-Import] <SwitchParameter> [-ProfileObj] <Object> [<CommonParameters>]

DESCRIPTION

This cmdlet is used to create or import an HP OneView Server Profile. A server profile is the configuration for a server instance. Server profiles capture the entire server configuration in one place, enabling you to consistently replicate new server profiles and to rapidly modify them to reflect changes in your data center. A server profile includes: ? Basic server identification information ? Connectivity settings for Ethernet networks, network sets, and Fibre Channel networks ? Firmware versions ? Local storage settings ? SAN storage settings ? BIOS settings ? Boot order ? Physical or virtual UUIDs, MAC addresses, and WWN addresses You can create an unassigned server profile that serves as a template. Typically, you capture best-practice configurations in a server profile template, and then copy and deploy instances as individual server profiles. Similar to virtual machine (VM) templates, profiles enable you to create a provisioning baseline for server hardware types in an enclosure. When you create a server profile, it is designated for a server hardware type and enclosure group (for server blades), whether the profile is assigned or unassigned.

PARAMETERS

-name <String>

The name of the server profile resource to be created.

Aliases None
Required? true
Position? 1
Default value <none>
Accept pipeline input? false
Accept wildcard characters?    false
-server [<Object>]

The server hardware resource where the new profile is to be applied. This is normally retrieved with a 'Get-HPOVServer' call, and the Server state property should be "NoProfileApplied". Can also be the Server Hardware name or URI.

Aliases None
Required? false
Position? 2
Default value unassigned
Accept pipeline input? true (ByValue)
Accept wildcard characters?    false
-description [<String>]

Optional description for this server profile.

Aliases None
Required? false
Position? 3
Default value <none>
Accept pipeline input? false
Accept wildcard characters?    false
-connections [<Array>]

The network connections that are to be part of this new server profile. This an array of profile conneciton objects which may be created with 'New-HPOVProfileConnection'.

 

Expected Connection Format:

 

[System.Array] @(

[PsCustomObject]@{

[System.Int]id - Connection ID. Valid 1-64. A 0 value is allowed, but means Auto Connection ID assignment.

[System.String]function - Ethernet or FibreChannel.

[System.String]networkUri - URI to the Network resource.

[System.String]portId - Auto or the specific Port ID. For FlexLOMs, the valid portId prefix will be "Flb", and Mezzanine would be "Mezz".

Ex. FlexNIC 1a interface would be "Flb 1:1a"

Ex. Mezzanine 2, FlexNIC 2c interface would be "Mezz 2:2c"

[System.Int32]requestedMpbs - Requested bandwidth in Mbps.

[System.Collections.Hashtable]boot - Nested Hashtable

@{

[System.String]priority - Boot priority for this connection. Can be used with Ethernet or FC connections. Allowed values:

NotBootable

Primary

Secondary

[System.Array]targets - Array of FC boot targets (only 1 entry is allowed)

@(

[System.String]arrayWwpn - Target WWPN of storage array.

[System.String]lun - Boot LUN ID

 

)

}

[System.String]macType - Allowed values:

Physical

UserDefined

Virtual

[System.String]mac - UserDefined MAC Address. Required for custom MAC and FCoE WWPN addresses.

[System.String]wwpnType - Allowed values:

Physical

UserDefined

Virtual

[System.String]wwpn - UserDefined WWPN Address

[System.String]wwnn - UserDefined WWNN Address

}

)

 

Default: No connections

Aliases None
Required? false
Position? 4
Default value @()
Accept pipeline input? false
Accept wildcard characters?    false
-enclosureGroup [<Object>]

Aliases [-eg]

The Enclosure Group resource the Server Profile will be bound to. Only required when Server value is "Unassigned".

Aliases None
Required? false
Position? 5
Default value <none>
Accept pipeline input? false
Accept wildcard characters?    false
-serverHardwareType [<Object>]

Aliases [-sht]

The Server Hardware Type reource the Server Profile will be bound to. Only required when Server value is "Unassigned".

Aliases None
Required? false
Position? 6
Default value <none>
Accept pipeline input? false
Accept wildcard characters?    false
-firmware [<SwitchParameter>]

Enable Firmware Management. Cannot be enabled with Server Hardware Type does not support Firmware Management (i.e. BL G7 servers.)

Aliases None
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters?    false
-baseline [<Object>]

Firmware baseline to assign. Can be either Baseline Name or URI.

Aliases None
Required? false
Position? named
Default value <none>
Accept pipeline input? false
Accept wildcard characters?    false
-bios [<SwitchParameter>]

Enable BIOS Settings Management. Cannot be enabled with Server Hardware Type does not support BIOS Management (i.e. BL G7 servers.)

Aliases None
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters?    false
-biosSettings [<Array>]

BIOS Settings that are to be managed. You can get the BIOS settings available from Get-HPOVServerHarwareType and the returned biosSettings property.

Aliases None
Required? false
Position? named
Default value @()
Accept pipeline input? false
Accept wildcard characters?    false
-boot [<SwitchParameter>]

Enable Boot Order Management. Also required for Connection boot enablement. If this is disabled, then PXE or FC BfS settings are disabled within the entire Server Profile.

Aliases None
Required? false
Position? named
Default value True
Accept pipeline input? false
Accept wildcard characters?    false
-bootOrder [<Array>]

Boot Order settings to be managed. Must be an array with the following values:

 

? PXE

? HardDisk

? CD

? Floppy

? USB

Aliases None
Required? false
Position? named
Default value @(?CD?,?Floppy?,?USB?,?HardDisk?,?PXE?)
Accept pipeline input? false
Accept wildcard characters?    false
-localstorage [<SwitchParameter>]

Enable local storage settings to be managed on the server. Will only enable embedded Smart Array controller management.

Aliases None
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters?    false
-Initialize [<SwitchParameter>]

Indicates whether the local storage controller should be reset to factory defaults before applying the local storage settings from the server profile.

 

************* *************

***WARNING*** Setting this will overwrite an existing logical disk if present, and without further warning. ***WARNING***

************* *************

Aliases None
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters?    false
-Bootable [<SwitchParameter>]

Indicates if the logical drive is bootable or not.

Aliases None
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters?    false
-RaidLevel [<String>]

RAID level of the logical drive. Local Smart Array controller must support the required RAID level with the appropriate amount of drives.

 

Allowed parameter values:

 

? None

? Raid0

? Raid1

Aliases None
Required? false
Position? named
Default value <none>
Accept pipeline input? false
Accept wildcard characters?    false
-SANStorage <SwitchParameter>

Optional. Enable SAN Storage Management within the Server Profile.

Aliases None
Required? true
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters?    false
-HostOStype <String>

Aliases [-OS]

 

Optional. Specify the Host OS type, which will set the Host OS value when HP OneView created the Host object on the Storage System. Accepted values:

 

? CitrixXen = "Citrix Xen Server 5.x/6.x"

? AIX = "AIX"

? IBMVIO = "IBM VIO Server";

? RHEL4 = "RHE Linux (Pre RHEL 5)"

? RHEL3 = "RHE Linux (Pre RHEL 5)"

? RHEL = "RHE Linux (5.x, 6.x)"

? RHEV = "RHE Virtualization (5.x, 6.x)"

? VMware = "ESX 4.x/5.x"

? Win2k3 = "Windows 2003"

? Win2k8 = "Windows 2008/2008 R2"

? Win2k12 = "Windows 2012 / WS2012 R2"

? OpenVMS = "OpenVMS"

? Egenera = "Egenera"

? Exanet = "Exanet"

? Solaris9 = "Solaris 9/10"

? Solaris10 = "Solaris 9/10"

? Solaris11 = "Solaris 11"

? ONTAP = "NetApp/ONTAP"

? OEL = "OE Linux UEK (5.x, 6.x)"

? HPUX11iv1 = "HP-UX (11i v1, 11i v2)"

? HPUX11iv2 = "HP-UX (11i v1, 11i v2)"

? HPUX11iv3 = "HP-UX (11i v3)"

? SUSE = "SuSE (10.x, 11.x)"

? SUSE9 = "SuSE Linux (Pre SLES 10)"

? Inform = "InForm"

Aliases None
Required? true
Position? named
Default value <none>
Accept pipeline input? false
Accept wildcard characters?    false
-StorageVolume <Object>

Optional. Array of Storage Volume resources to attach. Can be created by using the New-HPOVProfileAttachVolume cmdlet. This parameter does not accept a Storage Volume resource from the Get-HPOVStorageVolume cmdlet.

 

The format of the Storage Volume resource should be a PsCustomObject PowerShell resource with the following keys and values:

 

[PsCustomObject]@{

[System.Int]id - Valid Host LUN ID 0-254

[System.String]lunType - Auto or Manual

[System.String]volumeUri - URI to Storage Volume that has been created and not assigned to another

Server Profile if it is a Private Volume.

[System.String]volumeStoragePoolUri - URI to HP OneView managed Storage Pool

[System.String]volumeStorageSystemUri - URI to HP OneView managed Storage System

[System.Array]storagePaths - Array specifying the Profile FC Connection ID associated with the path

to the attached volume, and if the path is enabled or disabled.

@(

[System.Int]connectionId - FC Connection ID. If using New-HPOVProfileAttachVolume helper cmdlet,

New-HPOVProfile will automatically determine the FC connection ID.

[System.Boolean]isEnabled - Enable or disable the path

)

}

Aliases None
Required? true
Position? named
Default value <none>
Accept pipeline input? false
Accept wildcard characters?    false
-EvenPathDisabled [<SwitchParameter>]

Aliases [-even]

 

Enable to disable even paths in the attached storage volume(s).

Aliases None
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters?    false
-OddPathDisabled [<SwitchParameter>]

Aliases [-odd]

 

Enable to disable odd paths in the attached storage volume(s).

Aliases None
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters?    false
-Affinity [<String>]

In a server profile, the Affinity control sets the remove-and-replace behavior for blade servers. If you apply a server profile to a blade server and the server is subsequently removed from the device bay, the Affinity setting controls whether the server profile is reapplied when you insert a server blade into the empty bay. Server profiles for rack servers do not have affinity.

 

Accepted values are either 'DeviceBay' or 'DeviceBay+SH'. Default is 'DeviceBay'.

Aliases None
Required? false
Position? named
Default value DeviceBay
Accept pipeline input? false
Accept wildcard characters?    false
-macAssignment [<String>]

Optional setting for MAC address assignment. May be Virtual or Physical.

Aliases None
Required? false
Position? named
Default value Virtual
Accept pipeline input? false
Accept wildcard characters?    false
-wwnAssignment [<String>]

Optional setting for WWN assignment. May be Virtual or Physical.

Aliases None
Required? false
Position? named
Default value Virtual
Accept pipeline input? false
Accept wildcard characters?    false
-snAssignment [<String>]

Optional setting for serial number and UUID assignment. May be Virtual or Physical.

 

Default: Virtual serial number and UUID assignment

Aliases None
Required? false
Position? named
Default value Virtual
Accept pipeline input? false
Accept wildcard characters?    false
-Import <SwitchParameter>

Switch to import Server Profile JSON object or file.

Aliases None
Required? true
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters?    false
-ProfileObj <Object>

Aliases [-location, -file]

Source Server Profile JSON object or file.

Aliases None
Required? true
Position? named
Default value <none>
Accept pipeline input? true (ByValue)
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).

INPUTS

System.String

 

The full path to the Server Profile JSON export file.

 

System.Management.Automation.PSCustomObject

 

Server Profile resource object from Get-Content by reading from a JSON file.

 

OUTPUTS

System.Management.Automation.PSCustomObject

 

If successful returns a task resource which may be polled to follow the progress of the profile creation. Otherwise, a request validation error will be returned.
 

 

RELATED LINKS

EXAMPLES

-------------------------- EXAMPLE 1 --------------------------
        
PS C:\> $svr = Get-HPOVServer "ServerA"
PS C:\> New-HPOVProfile -name "Profile 1" -server $svr | Wait-HPOVTaskComplete

Create a simple profile for 'ServerA', and wait for it to be applied.
-------------------------- EXAMPLE 2 --------------------------
        
PS C:\> $net41 = Get-HPOVNetwork "Net-41"
PS C:\> $con41 = New-HPOVProfileConnection -network $net41 -connectionType Ethernet -connectionId 1
PS C:\> $net42 = Get-HPOVNetwork "Net-42"
PS C:\> $con42 = New-HPOVProfileConnection -network $net42 -connectionType Ethernet -connectionId 2
PS C:\> $conList = @($con41, $con42)
PS C:\> $task = New-HPOVProfile -name $profileName -server "unassigned" -serverHardwareType "bl460 Gen8 1" -enclosureGroup "Production Encl Grp1" -connections $conList
PS C:\> Wait-HPOVTaskComplete -taskUri $task.uri

Create a profile which includes networks 'Net-41' and 'Net-42'.
-------------------------- EXAMPLE 3 --------------------------
        
PS C:\> $bl460SHT = Get-HPOVServerHardwareTypes -name "BL460 Gen8 1"
PS C:\> $enclosuregroup = Get-HPOVEnclosureGroup "Production EG1"
PS C:\> $net41 = Get-HPOVNetwork "Net-41"
PS C:\> $con41 = New-HPOVProfileConnection -id 1 -type Ethernet -network $net41
PS C:\> $net42 = Get-HPOVNetwork "Net-42"
PS C:\> $con42 = New-HPOVProfileConnection -id 2 -type Ethernet -network $net42
PS C:\> $fcneta = Get-HPOVNetwork "fabric a"
PS C:\> $con3 = New-HPOVProfileConnection -id 3 -type FibreChannel -network $fcneta -bootable -priority Primary -arrayWWPn "21:11:00:02:AC:00:72:03" -LUN 0
PS C:\> $fcnetb = Get-HPOVNetwork "fabric b"
PS C:\> $con4 = New-HPOVProfileConnection -id 4 -type FibreChannel -network $fcnetb -bootable -priority Secondary -arrayWWPn "22:12:00:02:AC:00:72:03" -LUN 0
PS C:\> $conList = @($con41, $con42, $fcneta, $fcnetb)

Create a profile which includes networks 'Net-41' and 'Net-42', adds FC Connections for BfS.
-------------------------- EXAMPLE 4 --------------------------
        
PS C:\> $bl460SHT = Get-HPOVServerHardwareType -name "BL460c Gen8 1"
PS C:\> $enclosuregroup = Get-HPOVEnclosureGroup "Production EG1"
PS C:\> $net41 = Get-HPOVNetwork "Net-41"
PS C:\> $con41 = New-HPOVProfileConnection 1 Ethernet $net41
PS C:\> $net42 = Get-HPOVNetwork "Net-42"
PS C:\> $con42 = New-HPOVProfileConnection -connectionID 2 -connectionType Ethernet -network $net42
PS C:\> $conList = @($con41, $con42)
PS C:\> $volume1 = Get-HPOVStorageVolume Volume1 | New-HPOVProfileAttachVolume -volumeid 1
PS C:\> $volume2 = Get-HPOVStorageVolume SharedVolume1 | New-HPOVProfileAttachVolume -volumeid 2
PS C:\> $attachVolumes = @($volume1,$volume2)
PS C:\> $task = New-HPOVProfile -name $profileName -server 'unassigned' -connections $conList -SANStorage -ostype VMware -StorageVolume $attachVolumes -sht $sht -eg $enclosuregroup

Create a profile which includes networks 'Net-41' and 'Net-42', and attaches two storage volumes.
-------------------------- EXAMPLE 5 --------------------------
        
PS C:\> $bl460SHT = Get-HPOVServerHardwareType -name "BL460 Gen8 1"
PS C:\> #display the BL460 Gen8 BIOS Settings
PS C:\> $bl460SHT.biosSettings
PS C:\> #Set HP Power Profile (ID 210) to Maximum Performance and HP Power Regulator (ID 140) to HP Static High Performance Mode.
PS C:\> $bl460bios = @(@{id=210;value=3},@{id=140;value=3})
PS C:\> $net41 = Get-HPOVNetwork "Net-41"
PS C:\> $con41 = New-HPOVProfileConnection 1 Ethernet $net41
PS C:\> $net42 = Get-HPOVNetwork "Net-42"
PS C:\> $con42 = New-HPOVProfileConnection -connectionID 2 -connectionType Ethernet -network $net42
PS C:\> $conList = @($con41, $con42)
PS C:\> $task = New-HPOVProfile -name $profileName -server $server -connections $conList -boot -bootorder @("PXE","HardDisk","CD","Floppy","USB") -bios -biossettings $bl460bios
PS C:\> Wait-HPOVTaskComplete -taskUri $task.uri

Create a profile which includes networks 'Net-41' and 'Net-42', sets the boot order, and sets the BIOS.
-------------------------- EXAMPLE 6 --------------------------
        
PS C:\> New-HPOVProfile -import -file C:\profiles\ServerProfile1.json

Basic Server Profile import.
-------------------------- EXAMPLE 7 --------------------------
        
PS C:\> (Get-Content C:\profiles\ServerProfile1.json) -join "`n" | New-HPOVProfile -import

Read the contents from ServerProfile1.json, join each line into a single object, and pipe to New-HPOVProfile to import.
-------------------------- EXAMPLE 8 --------------------------
        
PS C:\> $jsonProfiles = Get-ChildItem C:\profiles\*.json
PS C:\> $jsonProfiles | foreach-object { New-HPOVProfile -import -file $_.fullname }

Retrieve list of all JSON files in C:\profiles, then pass each file and its full path to New-HPOVProfile.

 


HP OneView 1.06 Library

NAME

New-HPOVProfile

SYNOPSIS

Create or Import a Server Profile

SYNTAX

New-HPOVProfile [-name] <String> [[-server] <Object>] [[-description] <String>] [[-connections] <Array>] [[-enclosureGroup] <Object>] [[-serverHardwareType] <Object>] [[-firmware] <SwitchParameter>] [[-baseline] <Object>] [[-bios] <SwitchParameter>] [[-biosSettings] <Array>] [[-boot] <SwitchParameter>] [[-bootOrder] <Array>] [[-localstorage] <SwitchParameter>] [[-Initialize] <SwitchParameter>] [[-Bootable] <SwitchParameter>] [[-RaidLevel] <String>] [[-macAssignment] <String>] [[-wwnAssignment] <String>] [[-snAssignment] <String>] [<CommonParameters>]

New-HPOVProfile [-Import] <SwitchParameter> [-ProfileObj] <Object> [<CommonParameters>]

DESCRIPTION

This cmdlet is used to create or import an HP OneView Server Profile.

PARAMETERS

-name <String>
The name of the server profile resource to be created.
Aliases None
Required? true
Position? named
Default value <none>
Accept pipeline input? false
Accept wildcard characters?    false
-server [<Object>]
The server hardware resource where the new profile is to be applied. This is normally retrieved with a 'Get-HPOVServer' call, and the Server state property should be "NoProfileApplied". Can also be the Server Hardware name or URI. Default: Unassigned
Aliases None
Required? false
Position? named
Default value unassigned
Accept pipeline input? false
Accept wildcard characters?    false
-description [<String>]
Optional description for this server profile.
Aliases None
Required? false
Position? named
Default value <none>
Accept pipeline input? false
Accept wildcard characters?    false
-connections [<Array>]
The network connections that are to be part of this new server profile. This an array of profile conneciton objects which may be created with 'New-HPOVProfileConnection'. Default: No connections
Aliases None
Required? false
Position? named
Default value @()
Accept pipeline input? false
Accept wildcard characters?    false
-enclosureGroup [<Object>]
Alias [-eg] The Enclosure Group resource the Server Profile will be bound to. Only required when Server value is "Unassigned".
Aliases None
Required? false
Position? named
Default value <none>
Accept pipeline input? false
Accept wildcard characters?    false
-serverHardwareType [<Object>]
Alias [-sht] The Server Hardware Type reource the Server Profile will be bound to. Only required when Server value is "Unassigned".
Aliases None
Required? false
Position? named
Default value <none>
Accept pipeline input? false
Accept wildcard characters?    false
-firmware [<SwitchParameter>]
Boolean value to enable Firmware Management. Default: False
Aliases None
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters?    false
-baseline [<Object>]
Firmware baseline to assign. Can be either Baseline Name or URI.
Aliases None
Required? false
Position? named
Default value <none>
Accept pipeline input? false
Accept wildcard characters?    false
-bios [<SwitchParameter>]
Boolean value to enable BIOS Settings Management. Default: False
Aliases None
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters?    false
-biosSettings [<Array>]
BIOS Settings that are to be managed. You can get the BIOS settings available from Get-HPOVServerHarwareType and the returned biosSettings property.
Aliases None
Required? false
Position? named
Default value @()
Accept pipeline input? false
Accept wildcard characters?    false
-boot [<SwitchParameter>]
Boolean value to enable Boot Order Management. Also required for connection boot enablement. If this is disabled, then PXE or FC BfS settings are disabled within the entire Server Profile. Default: True
Aliases None
Required? false
Position? named
Default value True
Accept pipeline input? false
Accept wildcard characters?    false
-bootOrder [<Array>]
Boot Order settings to be managed. Must be an array with the following values: PXE HardDisk CD Floppy USB
Aliases None
Required? false
Position? named
Default value @(?CD?,?Floppy?,?USB?,?HardDisk?,?PXE?)
Accept pipeline input? false
Accept wildcard characters?    false
-localstorage [<SwitchParameter>]
Local storage settings to be configured on the server. *** REQUIRES APPLIANCE VERSION 1.05 or newer ***
Aliases None
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters?    false
-Initialize [<SwitchParameter>]
Indicates whether the local storage controller should be reset to factory defaults before applying the local storage settings from the server profile. *** REQUIRES APPLIANCE VERSION 1.05 or newer *** ***WARNING*** Setting this will overwrite an existing logical disk if present, and without further warning. ***WARNING***
Aliases None
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters?    false
-Bootable [<SwitchParameter>]
Indicates if the logical drive is bootable or not. *** REQUIRES APPLIANCE VERSION 1.05 or newer ***
Aliases None
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters?    false
-RaidLevel [<String>]
RAID level of the logical drive. Local Smart Array controller must support the required RAID level with the appropriate amount of drives. *** REQUIRES APPLIANCE VERSION 1.05 or newer ***
Aliases None
Required? false
Position? named
Default value <none>
Accept pipeline input? false
Accept wildcard characters?    false
-macAssignment [<String>]
Optional setting for MAC address assignment. May be Virtual or Physical. Default: Virtual MAC address assignment
Aliases None
Required? false
Position? named
Default value Virtual
Accept pipeline input? false
Accept wildcard characters?    false
-wwnAssignment [<String>]
Optional setting for WWN assignment. May be Virtual or Physical. Default: Virtual WWN assignment
Aliases None
Required? false
Position? named
Default value Virtual
Accept pipeline input? false
Accept wildcard characters?    false
-snAssignment [<String>]
Optional setting for serial number & UUID assignment. May be Virtual or Physical. Default: Virtual serial number & UUID assignment
Aliases None
Required? false
Position? named
Default value Virtual
Accept pipeline input? false
Accept wildcard characters?    false
-Import <SwitchParameter>
Switch to import Server Profile JSON object or file.
Aliases None
Required? true
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters?    false
-ProfileObj <Object>
Aliases [-location, -file] Source Server Profile JSON object or file.
Aliases None
Required? true
Position? named
Default value <none>
Accept pipeline input? true (ByValue)
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).

INPUTS

System.String

System.Management.Automation.PSCustomObject

OUTPUTS

System.Management.Automation.PSCustomObject

If successful returns a task resource which may be polled to follow the progress of the profile creation. Otherwise, a request validation error will be returned.

RELATED LINKS

EXAMPLES

-------------------------- EXAMPLE 1 --------------------------
        
PS C:\> $svr = Get-HPOVServer "ServerA"
PS C:\> New-HPOVProfile -name "Profile 1" -server $svr | Wait-HPOVTaskComplete

Create a simple profile for 'ServerA', and wait for it to be applied.
-------------------------- EXAMPLE 2 --------------------------
        
PS C:\> $net41 = Get-HPOVNetwork "Net-41"
PS C:\> $con41 = New-HPOVProfileConnection -network $net41 -connectionId 1
PS C:\> $net42 = Get-HPOVNetwork "Net-42"
PS C:\> $con42 = New-HPOVProfileConnection -network $net42 -connectionId 2
PS C:\> $conList = @($con41, $con42)
PS C:\> $task = New-HPOVProfile -name $profileName -server "unassigned" -serverHardwareType "bl460 Gen8 1" -enclosureGroup "Production Encl Grp1" -connections $conList
PS C:\> Wait-HPOVTaskComplete -taskUri $task.uri

Create a profile which includes networks 'Net-41' and 'Net-42'.
-------------------------- EXAMPLE 3 --------------------------
        
PS C:\> $bl460SHT = Get-HPOVServerHardwareTypes -name "BL460c Gen8 1"
PS C:\> $enclosuregroup = Get-HPOVEnclosureGroup "Production EG1"
PS C:\> $net41 = Get-HPOVNetwork "Net-41"
PS C:\> $con41 = New-HPOVProfileConnection 1 Ethernet $net41
PS C:\> $net42 = Get-HPOVNetwork "Net-42"
PS C:\> $con42 = New-HPOVProfileConnection -connectionID 2 -connectionType Ethernet -network $net42
PS C:\> $conList = @($con41, $con42)
PS C:\> $task = New-HPOVProfile -name $profileName -server 'unassigned' -connections $conList -sht $sht -eg $enclosuregroup
PS C:\> Wait-HPOVTaskComplete -taskUri $task.uri

Create a profile which includes networks 'Net-41' and 'Net-42'.
-------------------------- EXAMPLE 4 --------------------------
        
PS C:\> $bl460SHT = Get-HPOVServerHardwareTypes -name "BL460 Gen8 1"
PS C:\> #display the BL460 Gen8 BIOS Settings
PS C:\> $bl460SHT.biosSettings
PS C:\> #Set HP Power Profile (ID 210) to Maximum Performance and HP Power Regulator (ID 140) to HP Static High Performance Mode.
PS C:\> $bl460bios = @(@{id=210;value=3},@{id=140;value=3})
PS C:\> $net41 = Get-HPOVNetwork "Net-41"
PS C:\> $con41 = New-HPOVProfileConnection 1 Ethernet $net41
PS C:\> $net42 = Get-HPOVNetwork "Net-42"
PS C:\> $con42 = New-HPOVProfileConnection -connectionID 2 -connectionType Ethernet -network $net42
PS C:\> $conList = @($con41, $con42)
PS C:\> $task = New-HPOVProfile -name $profileName -server $server -connections $conList -boot -bootorder @("PXE","HardDisk","CD","Floppy","USB") -bios -biossettings $bl460bios
PS C:\> Wait-HPOVTaskComplete -taskUri $task.uri

Create a profile which includes networks 'Net-41' and 'Net-42', sets the boot order, and sets the BIOS.
-------------------------- EXAMPLE 5 --------------------------
        
PS C:\> New-HPOVProfile -import -file C:\profiles\ServerProfile1.json

Basic Server Profile import.
-------------------------- EXAMPLE 6 --------------------------
        
PS C:\> (Get-Content C:\profiles\ServerProfile1.json) -join "`n" | New-HPOVProfile -import

Read the contents from ServerProfile1.json, join each line into a single object, and pipe to New-HPOVProfile to import.
-------------------------- EXAMPLE 7 --------------------------
        
PS C:\> $jsonProfiles = Get-ChildItem C:\profiles\*.json
PS C:\> $jsonProfiles | foreach-object { New-HPOVProfile -import -file $_.fullname }

Retrieve list of all JSON files in C:\profiles, then pass each file and its full path to New-HPOVProfile.

 


Last edited Oct 1, 2014 at 4:31 PM by ChrisLynchHP, version 2