- Community Home
- >
- Software
- >
- HPE OneView
- >
- HPOnewView.500 module New-HPOVServerProfileConnect...
-
-
Forums
- Products
- Servers and Operating Systems
- Storage
- Software
- Services
- HPE GreenLake
- Company
- Events
- Webinars
- Partner Solutions and Certifications
- Local Language
- China - 简体中文
- Japan - 日本語
- Korea - 한국어
- Taiwan - 繁體中文
-
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
- HPE Blog, Austria, Germany & Switzerland
- Blog HPE, France
- HPE Blog, Italy
- HPE Blog, Japan
- HPE Blog, Middle East
- HPE Blog, Latin America
- HPE Blog, Russia
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
- HPE Blog, Poland
-
Blogs
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Blog, Latin America
- HPE Blog, Middle East
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
-
Information
- Community
- Welcome
- Getting Started
- FAQ
- Ranking Overview
- Rules of Participation
- Tips and Tricks
- Resources
- Announcements
- Email us
- Feedback
- Information Libraries
- Integrated Systems
- Networking
- Servers
- Storage
- Other HPE Sites
- Support Center
- Aruba Airheads Community
- Enterprise.nxt
- HPE Dev Community
- Cloud28+ Community
- Marketplace
-
Forums
-
Forums
-
Blogs
-
Information
-
English
- 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
Hewlett Packard Enterprise International
- Communities
- HPE Blogs and Forum
© Copyright 2022 Hewlett Packard Enterprise Development LP