To delete all messages in a mail queue running Postfix run the following command: # postsuper -d ALL deferred
Month: February 2016
PowerCLI Script to Get Number of CPUs, RAM and Provisioned HDD Size
The following script looks at particular folder (finance) on a vCenter Server then for each VM gets the number of CPUs, memory in GB and calculates the combined size of all HDDs. This is then exported to a csv file. Connect-VIServer -Server {hostname} -User {username} -Password {password} Get-Folder 'Finance' | Get-VM | Sort Name -descending| Select-Object Read More…