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.
- Graphite
- Salt
- VMware 5.0 or later
- PowerShell 5.0 (beta for now)
- Any method of getting CPU
usertimeand networkkboutstats into Graphite. We recommend collectl - Scripts to get login information from Linux and Windows to Graphite
- Spot-Cloud PowerShell module (will be open sourced soon)
- Spot-Graphite PowerShell module
- Spot-Salt PowerShell module
- AWS PowerShell module
- AWS account
- Salt Cache (soon to be opened sourced)
- Apache Zookeeper
- Netflix Exhibitor
- Spot Trading Zoom
- Jira
- Spot-Jira PowerShell module
- Determine PowerShell modules directory you want to use (type
$env:PSModulePathand chose one, for examplec:\Windows\system32\WindowsPowerShell\v1.0\Modules). - Download repo and place all files under Modules directory you chose in the first step into
UnusedServersfolder (c:\Windows\system32\WindowsPowerShell\v1.0\Modules\UnusedServers). - Make sure the files are not blocked. Right click on the files and un-block them by going into properties.
- Rename UnusedServers-config-example.xml configuration file to UnusedServers-config.xml.
- Make sure to set your PowerShell Execution Policy to
RemoteSigned, for exampleSet-ExecutionPolicy RemoteSigned -Force. - Type
Get-Module -ListAvailableand make sure you see UnusedServers module in the list - Type
help Get-UnusedServers -Detailedto get detailed information about how to use the module