1cd789508SIftekharul Islam<div id="power-operations"> 2cd789508SIftekharul Islam 3cd789508SIftekharul Islam <div class="row column"> 4e126be7aSMichael Davis <h1>Server power operations</h1> 5cd789508SIftekharul Islam </div> 6cd789508SIftekharul Islam 7cd789508SIftekharul Islam <!-- Current status and bar display the state of the server. Class 'power__state-off' is applied to bar and 'power__state' text switches to say "off"--> 8cd789508SIftekharul Islam <div class="row column"> 9cd789508SIftekharul Islam <div class="power__current-status "> 10cd789508SIftekharul Islam <h2 class="inline h4">Current status</h2> 1168f929d1SMichael Davis <div class="power__status-log inline float-right">Server last reboot at <span class="courier-bold">{{dataService.last_updated |date:'h:mm:ss on MMM dd yyyy'}}</span></div> 12cd789508SIftekharul Islam </div> 13cd789508SIftekharul Islam </div> 14cd789508SIftekharul Islam <div class="row column"> 15cd789508SIftekharul Islam <div id="power-indicator-bar" class="power__indicator-bar" ng-class="{'power__state-on': dataService.server_state == 'Running', 'power__state-off': dataService.server_state == 'Off', 'power__state-indet': dataService.server_state == 'Quiesced'}"> 16cd789508SIftekharul Islam <p class="inline">{{dataService.server_id}}</p> 17*7f89fad6SMichael Davis <h3 class="power__state inline no-margin h3"><span>{{dataService.server_state}}</span></h3> 18cd789508SIftekharul Islam </div> 19cd789508SIftekharul Islam </div> 20cd789508SIftekharul Islam <div class="row column"> 21cd789508SIftekharul Islam <div class="row column"> 2246f0a1f8SMichael Davis <h3 class="h4 subhead">Select a power operation</h3> 23cd789508SIftekharul Islam </div> 24cd789508SIftekharul Islam 25cd789508SIftekharul Islam <!-- Power on displays only when server is shutdown --> 26cd789508SIftekharul Islam <div class="row column power-option" ng-hide="dataService.server_state == 'Running' || dataService.server_state == 'Quiesced'" ng-class="{disabled: dataService.server_unreachable || (confirm && !power_confirm) || dataService.loading, transitionAll: confirm && power_confirm}"> 2768f929d1SMichael Davis <button id="power__power-on" class="btn-secondary inline" ng-click="togglePower()" role="button" ng-disabled="dataService.server_unreachable"><img src="assets/images/icon-power.svg" alt="power on">Power on</button> 2846f0a1f8SMichael Davis <p class="inline">Attempts to power on the server</p> 29cd789508SIftekharul Islam 30cd789508SIftekharul Islam <!---<confirm title="power off" message="Power off the server" confirm="power_confirm" ng-show="power_confirm" callback="togglePower"></confirm>--> 31cd789508SIftekharul Islam </div> 32cd789508SIftekharul Islam 33cd789508SIftekharul Islam <!-- Power reboot/shutdown options : when server is off all of these are hidden. When one option is selected, the others are disabled. --> 34cd789508SIftekharul Islam <div class="row column power-option" ng-hide="dataService.server_state == 'Off'" ng-class="{disabled: dataService.server_unreachable || (confirm && !warmboot_confirm) || dataService.loading, transitionAll: confirm && warmboot_confirm}"> 3546f0a1f8SMichael Davis <button id="power__warm-boot" class="btn-secondary inline" ng-click="warmRebootConfirm()" role="button" ng-disabled="dataService.server_unreachable"><i>↻</i> Warm reboot</button> 3646f0a1f8SMichael Davis <p class="inline">Attempts to perform an orderly shutdown before restarting the server</p> 3768f929d1SMichael Davis <confirm title="Warm Reboot" confirm="warmboot_confirm" ng-show="warmboot_confirm" callback="warmReboot"></confirm> 38cd789508SIftekharul Islam </div> 39cd789508SIftekharul Islam <div class="row column power-option" ng-hide="dataService.server_state == 'Off'" ng-class="{disabled: dataService.server_unreachable || (confirm && !coldboot_confirm) || dataService.loading, transitionAll: confirm && coldboot_confirm}"> 4046f0a1f8SMichael Davis <button id="power__cold-boot" class="btn-secondary inline" ng-click="coldRebootConfirm()" role="button" ng-disabled="dataService.server_unreachable"><i>↻</i> Cold reboot</button> 4146f0a1f8SMichael Davis <p class="inline">Shuts down the server immediately, then restarts it</p> 4268f929d1SMichael Davis <confirm title="Cold Reboot" confirm="coldboot_confirm" ng-show="coldboot_confirm" cancel="coldbootCancel" callback="coldReboot"></confirm> 43cd789508SIftekharul Islam </div> 44cd789508SIftekharul Islam <div class="row column power-option" ng-hide="dataService.server_state == 'Off'" ng-class="{disabled: dataService.server_unreachable || (confirm && !orderly_confirm) || dataService.loading, transitionAll: confirm && orderly_confirm}"> 4546f0a1f8SMichael Davis <button id="power__soft-shutdown" class="btn-secondary inline" ng-click="orderlyShutdownConfirm()" role="button" ng-disabled="dataService.server_unreachable"><img src="assets/images/icon-power.svg" />Orderly shutdown</button> 4646f0a1f8SMichael Davis <p class="inline">Attempts to stop all software on the server before removing power</p> 4768f929d1SMichael Davis <confirm title="Orderly shutdown" confirm="orderly_confirm" ng-show="orderly_confirm" cancel="orderlyShutdownCancel" callback="orderlyShutdown"></confirm> 48cd789508SIftekharul Islam </div> 49cd789508SIftekharul Islam <div class="row column power-option" ng-hide="dataService.server_state == 'Off'" ng-class="{disabled: dataService.server_unreachable || (confirm && !immediately_confirm) || dataService.loading, transitionAll: confirm && immediately_confirm}"> 5046f0a1f8SMichael Davis <button id="power__hard-shutdown" class="btn-secondary inline" ng-click="immediateShutdownConfirm()" role="button" ng-disabled="dataService.server_unreachable"><img src="assets/images/icon-power.svg" />Immediate shutdown</button> 5146f0a1f8SMichael Davis <p class="inline">Removes power from the server without waiting for software to stop</p> 5268f929d1SMichael Davis <confirm title="Immediate shutdown" confirm="immediately_confirm" ng-show="immediately_confirm" cancel="immediatelyShutdownCancel" callback="immediateShutdown"></confirm> 53cd789508SIftekharul Islam </div> 54cd789508SIftekharul Islam </div> 55cd789508SIftekharul Islam</div>