- Community Home
- >
- Software
- >
- HPE OneView
- >
- HPOnewView.500 module New-HPOVServerProfileConnect...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2019 03:39 AM
10-25-2019 03:39 AM
Hi,
Brand new to OneView powershell so apologies if this have been reported and resolved before but Google hadn't been as helpful as it has been previously.
Current P.O.C of Synergy 3 Frame Image Streamer solution returning errors for MAC settings when setting FC connection. The following works manually on the GUI but struggling with scripts.
Scenario: Trying to set connection parameters from the fly for a SAN boot profile (unassigned: so no MAC) with profile template decalred. Profile template had empty LUN IDs and TargetWwpn to allow for multiple storage controller not managed within Synergy.
Environment: Powershell core 6 on RHEL7, OneView version: 5.0.2152.1665
=====================================================================
$profileName = "profile-test22"
$EG = Get-HPOVEnclosureGroup -name <EG Name>
$HWType = Get-HPOVServerHardwareTypes -name "SY 480 Gen10 1"
$svr = Get-HPOVServer -ServerHardwareType $HWType -ErrorAction Stop | Select-Object -First 1
$con3 = Get-HPOVNetworkSet -Name "NetworkSet1" | New-HPOVServerProfileConnection -id 3 -type Ethernet -Name NetworkSet1-data-2
$con4 = Get-HPOVNetworkSet -Name "NetworkSet1" | New-HPOVServerProfileConnection -id 4 -type Ethernet
$con5 = Get-HPOVNetworkSet -Name "NetworkSet2" | New-HPOVServerProfileConnection -id 5 -type Ethernet
$con6 = Get-HPOVNetworkSet -Name "NetworkSet2" | New-HPOVServerProfileConnection -id 6 -type Ethernet
$con1 = Get-HPOVNetwork -Name "SAN-A" | New-HPOVServerProfileConnection -id 1 -type FibreChannel -bootable -priority Primary -TargetWWPn <Controller Wwpn> -LUN 1
$con2 = Get-HPOVNetwork -Name "SAN-B" | New-HPOVServerProfileConnection -id 2 -type FibreChannel -bootable -priority Secondary -TargetWWPn <Controller Wwpn> -LUN 1
$conList = $con1, $con2, $con3, $con4, $con5, $con6
$task = New-HPOVServerProfile -name $profileName -assignmentType "unassigned" -ServerProfileTemplate <Template Name> -sht $HWType -EnclosureGroup $EG -connections $conList -ManageBoot | Wait-HPOVTaskComplete
===========================================================================
When populating
$con1 = Get-HPOVNetwork -Name "SAN-A" | New-HPOVServerProfileConnection -id 1 -type FibreChannel -bootable -priority Primary -TargetWWPn <Target WWN> -LUN 1 -mac
Returns:
New-HPOVServerProfileConnection : Missing an argument for parameter 'MAC'. Specify a parameter of type 'System.String' and try again.
===========================================================================
I thought (Wrongly) that this defaults to auto or user-defined?
Any help and direction much appreciated. Or if RTFM please forward links to previous resolution or the POSH wiki page?
Min Aung
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2019 08:12 AM
10-25-2019 08:12 AM
SolutionThe `-MAC` parameter expects an address, not "Auto" or "UserDefined", as defined in the Cmdlet help. That is specified in the call to New-HPOVServerProfile or New-HPOVServerProfileTemplate using the -MacAssignment, -WwnAssignment and/or -SnAssignment parameters.
Remember, PowerShell "manpages" are built-in and are called with Get-Help [CmdletName]. You can also get to the online help version of the Cmdlet by append -Online to the Get-Help call.
I am an HPE employee