The POSH-HPEOneView library ships with a set of sample scripts that cover the most common day-zero and day-two operations for HPE OneView and HPE Synergy environments. Each script is self-contained and designed to be run against a real appliance after substituting environment-specific values. All samples are located in theDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/HewlettPackard/POSH-HPEOneView/llms.txt
Use this file to discover all available pages before exploring further.
Samples/ directory of the module repository.
Available samples
Appliance Configuration
Configure a freshly deployed HPE OneView or Synergy Composer appliance end-to-end: EULA acceptance, networking, NTP, certificates, LDAP/AD authentication, local users, SAN managers, and baselines.Scripts:
ApplianceConfig_Sample.ps1, ComposerApplianceConfig_Sample.ps1Server Profiles
Create Server Profile Templates for blade and rack servers, then deploy Server Profiles from those templates. Covers UEFI boot, firmware management, local storage RAID, and multi-connection networking.Scripts:
Server_Profile_Template_Multiconnection_Sample.ps1, Server_Profile_Template_Rack_Server_Sample.ps1, Server_Multiconnection_Sample.ps1Networking
Define Ethernet and Fibre Channel networks, create network sets, and build Logical Interconnect Groups with uplink sets. Includes both single Virtual Connect and Active/Active configurations.Scripts:
DefineNetworks_Sample.ps1, DefineNetworks_AA_VC_Sample.ps1, DefineLogicalInterconnectGroup_Sample.ps1Storage
Add HPE Primera / 3PAR storage systems, create storage pools and volumes, and attach SAN volumes to Server Profiles with full zoning managed by OneView.Scripts:
AddStorageSystem_Sample.ps1, Server_Multiconnection_SAN_Storage_Sample.ps1Add Monitored Servers
Bulk-import rack servers into HPE OneView in monitored mode by reading a CSV file of iLO addresses and credentials. Handles the 64-concurrent-task limit automatically.Script:
AddServers_Monitored_Sample.ps1Enclosure Group
Create a Logical Interconnect Group with Ethernet and Fibre Channel uplink sets, then wrap it in an Enclosure Group ready for enclosure import.Script:
CreateEnclosureGroup_Sample.ps1Prerequisites
Before running any sample:- Install the HPEOneView PowerShell module:
- Ensure your workstation can reach the appliance management IP.
- Review and update all placeholder values (IP addresses, passwords, hostnames, VLAN IDs, etc.).
- Run PowerShell 5.1 or PowerShell 7+ as appropriate for your environment.
Running the samples
Most samples either prompt for connection details or connect automatically if$ConnectedSessions is already populated: