Skip to content

spottradingllc/unused-servers

Repository files navigation

Unused Servers

UnusedServers module is used to automatically discover unused physical or virtual servers (VMware or AWS) in the infrastructure.

Module will deprecate virtual machines but shutting them down and renaming to <original name>-<Year><Month><Day> so another script can delete them in two weeks.

Physical servers will only be displayed so it is easy to re-claim them if need to.

Module can send output to console as well as send HTML email reports for further analysis.

Find more information about this in our blog!

Please visit our wiki pages for usage details.

Hard Requirements

  1. Graphite
  2. Salt
  3. VMware 5.0 or later
  4. PowerShell 5.0 (beta for now)
  5. Any method of getting CPU usertime and network kbout stats into Graphite. We recommend collectl
  6. Scripts to get login information from Linux and Windows to Graphite
  7. Spot-Cloud PowerShell module (will be open sourced soon)
  8. Spot-Graphite PowerShell module
  9. Spot-Salt PowerShell module
  10. AWS PowerShell module

Soft Requirements

  1. AWS account
  2. Salt Cache (soon to be opened sourced)
  3. Apache Zookeeper
  4. Netflix Exhibitor
  5. Spot Trading Zoom
  6. Jira
  7. Spot-Jira PowerShell module

Installation

  1. Determine PowerShell modules directory you want to use (type $env:PSModulePath and chose one, for example c:\Windows\system32\WindowsPowerShell\v1.0\Modules).
  2. Download repo and place all files under Modules directory you chose in the first step into UnusedServers folder (c:\Windows\system32\WindowsPowerShell\v1.0\Modules\UnusedServers).
  3. Make sure the files are not blocked. Right click on the files and un-block them by going into properties.
  4. Rename UnusedServers-config-example.xml configuration file to UnusedServers-config.xml.
  5. Make sure to set your PowerShell Execution Policy to RemoteSigned, for example Set-ExecutionPolicy RemoteSigned -Force.
  6. Type Get-Module -ListAvailable and make sure you see UnusedServers module in the list
  7. Type help Get-UnusedServers -Detailed to get detailed information about how to use the module

Releases

No releases published

Packages

 
 
 

Contributors