Skip to content

daveolker/Synergy-Replace-Server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Synergy Replace Server

Monitor the Synergy Composer for critical server alerts. If a critical alert is detected, look for an available server of the same hardware type and replace the failing server with an available server of the same type.

Synergy_Replace_Server.ps1

The Synergy_Replace_Server script does the following:

  • Connects to an HPE Synergy Composer (or HPE OneView instance)
  • Every 10 seconds the tool will check for any new Critical alerts
  • Identifies the compute module generating the alert
  • Verifies the compute module has a Server Profile assigned
  • Checks the Synergy frame for an available Compute Module of the same Hardware Type
  • Powers off the original Compute Module and the replacement Compute Module
  • Un-assigns the existing Server Profile from the original Compute Module
  • Assigns the Server Profile to the available Compute Module of the same Hardware Type
  • Powers on the replacement Compute Module

The required parameters on the command-line are:

Appliance              IPv4 Address of the Synergy Composer or OneView Instance
Username               Administrative User (Administrator)

The script will prompt for the Administrator's Password (not displayed in clear text)

How to use the scripts

This PowerShell script requires the HPE OneView PowerShell library found here: https://github.com/HewlettPackard/POSH-HPOneView.

Sample Command Syntax

Synergy_Replace_Server.ps1 -Appliance IP_ADDR -Username Administrator

About

Detect critical errors on HPE Synergy Compute Modules and automatically move the server profile to an available blade.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors