First bits of client code from the monolith refactor
This commit is contained in:
1
Lifecycle-Virtual/VmWare-LifeCycle-PowerMgmt/README.md
Normal file
1
Lifecycle-Virtual/VmWare-LifeCycle-PowerMgmt/README.md
Normal file
@@ -0,0 +1 @@
|
||||
Power management for kvm/vmware guests at RackRental/TSYS
|
@@ -0,0 +1,12 @@
|
||||
param(
|
||||
[string]$vcenter,
|
||||
[string]$vm,
|
||||
[string]$un,
|
||||
[string]$pw
|
||||
)
|
||||
|
||||
Get-Module -ListAvailable PowerCLI* | Import-Module -Verbose:$false > /dev/null
|
||||
Set-PowerCLIConfiguration -InvalidCertificateAction Ignore -Confirm:$false > /dev/null
|
||||
Connect-ViServer -Server $vcenter -User "$un" -Password "$pw" -Verbose:$false > /dev/null
|
||||
Stop-VM -RunAsync -VM "$vm" -Confirm:$false -Verbose:$false > /dev/null
|
||||
Start-VM -RunAsync -VM "$vm" -Confirm:$false -Verbose:$false > /dev/null
|
@@ -0,0 +1,11 @@
|
||||
param(
|
||||
[string]$vcenter,
|
||||
[string]$vm,
|
||||
[string]$un,
|
||||
[string]$pw
|
||||
)
|
||||
|
||||
Get-Module -ListAvailable PowerCLI* | Import-Module -Verbose:$false > /dev/null
|
||||
Set-PowerCLIConfiguration -InvalidCertificateAction Ignore -Confirm:$false > /dev/null
|
||||
Connect-ViServer -Server $vcenter -User "$un" -Password "$pw" -Verbose:$false > /dev/null
|
||||
Stop-VM -RunAsync -VM "$vm" -Confirm:$false -Verbose:$false > /dev/null
|
@@ -0,0 +1,11 @@
|
||||
param(
|
||||
[string]$vcenter,
|
||||
[string]$vm,
|
||||
[string]$un,
|
||||
[string]$pw
|
||||
)
|
||||
|
||||
Get-Module -ListAvailable PowerCLI* | Import-Module -Verbose:$false > /dev/null
|
||||
Set-PowerCLIConfiguration -InvalidCertificateAction Ignore -Confirm:$false > /dev/null
|
||||
Connect-ViServer -Server $vcenter -User "$un" -Password "$pw" -Verbose:$false > /dev/null
|
||||
Start-VM -RunAsync -VM "$vm" -Confirm:$false -Verbose:$false > /dev/null
|
Reference in New Issue
Block a user