1<loader loading="loading"></loader> 2<div class="overview"> 3 <div class="row column"> 4 <h1 class="inline">{{dataService.hostname}}</h1> 5 <button class="link" ng-click="edit_hostname = !edit_hostname">Edit</button> 6 </div> 7 <section class="row"> 8 <div class="column large-8"> 9 <!-- Server Metadata --> 10 <div class="row overview__server-metadata"> 11 <div class="column large-4"> 12 <h2 class="h3">Server information</h2> 13 </div> 14 <div class="column large-8"> 15 <ul class="overview__metadata-wrapper"> 16 <li class="overview__metadata-block"> 17 <dl> 18 <dt class="content-label">Model</dt> 19 <dd class="courier-bold">{{server_info.Model}}</dd> 20 </dl> 21 </li> 22 <li class="overview__metadata-block"> 23 <dl> 24 <dt class="content-label">Manufacturer</dt> 25 <dd class="courier-bold">{{server_info.Manufacturer}}</dd> 26 </dl> 27 </li> 28 <li class="overview__metadata-block"> 29 <dl> 30 <dt class="content-label">Firmware version</dt> 31 <dd class="courier-bold">{{server_firmware}}</dd> 32 </dl> 33 </li> 34 <li class="overview__metadata-block"> 35 <dl> 36 <dt class="content-label">Serial number</dt> 37 <dd class="courier-bold">{{server_info.SerialNumber}}</dd> 38 </dl> 39 </li> 40 </ul> 41 </div> 42 </div> 43 <!-- BMC Metadata --> 44 <div class="row overview__server-metadata"> 45 <div class="column large-4"> 46 <h2 class="h3">BMC information</h2> 47 </div> 48 <div class="column large-8"> 49 <ul class="overview__metadata-wrapper"> 50 <li class="overview__metadata-block"> 51 <dl> 52 <dt class="content-label">Hostname</dt> 53 <dd class="courier-bold overview__hostname">{{dataService.hostname}}</dd> 54 </dl> 55 </li> 56 <li class="overview__metadata-block"> 57 <dl> 58 <dt class="content-label">IP addresses</dt> 59 <dd class="courier-bold" ng-repeat="ip_address in bmc_ip_addresses">{{ip_address}}</dd> 60 </dl> 61 </li> 62 <li class="overview__metadata-block"> 63 <dl> 64 <dt class="content-label">Firmware Version</dt> 65 <dd class="courier-bold">{{bmc_firmware}}</dd> 66 </dl> 67 </li> 68 <li class="overview__metadata-block"> 69 <dl> 70 <dt class="content-label">Mac address</dt> 71 <dd class="courier-bold">{{dataService.mac_address}}</dd> 72 </dl> 73 </li> 74 </ul> 75 </div> 76 </div> 77 <!-- Power metadata --> 78 <div class="row overview__server-metadata"> 79 <div class="column large-4"> 80 <h2 class="h3">Power information</h2> 81 </div> 82 <div class="column large-8"> 83 <ul class="overview__metadata-wrapper"> 84 <li class="overview__metadata-block"> 85 <dl> 86 <dt class="content-label">Power Consumption</dt> 87 <dd class="courier-bold">{{power_consumption}}</dd> 88 </dl> 89 </li> 90 <li class="overview__metadata-block"> 91 <dl> 92 <dt class="content-label">Power Cap</dt> 93 <dd class="courier-bold">{{power_cap}}</dd> 94 </dl> 95 </li> 96 </ul> 97 </div> 98 </div> 99 <!-- Power metadata --> 100 </div> 101 <div class="column large-4 no-padding"> 102 <div class="quick-links"> 103 <a href="#/server-health/event-log/high" class="quick-links__item quick-links__events event-log__events" 104 ng-show="logs.length"> 105 <!-- link to event log filtered to the high priority events --> 106 <p class="inline quick-links__event-copy">View {{logs.length}} high priority events</p> 107 </a> 108 <dl class="quick-links__item no-icon"> 109 <dt class="inline quick-links__label">BMC time</dt> 110 <dd class="inline courier-bold float-right bmc-time">{{ bmc_time | localeDate }}</dd> 111 </dl> 112 <div class="quick-links__item no-icon"> 113 <p class="inline quick-links__label">Turn <span ng-if="dataService.LED_state == 'off'">on</span><span 114 ng-if="dataService.LED_state == 'on'">off</span> server LED</p> 115 <div class="toggle inline float-right"> 116 <input id="toggle__switch-round" class="toggle-switch toggle-switch__round-flat" type="checkbox" 117 tabindex="0" ng-click="toggleLED()" ng-checked="dataService.LED_state == 'on'" 118 ng-disabled="dataService.server_unreachable"> 119 <label for="toggle__switch-round" tabindex="0">Server LED is <span 120 class="led-switch__status">{{dataService.LED_state}}</span></label> 121 </div> 122 </div> 123 <a href="#/server-control/remote-console" class="no-icon quick-links__item"> 124 <p class="inline quick-links__label">Serial over LAN console</p> 125 <span class="btn-pop-out inline float-right"></span> 126 </a> 127 <a href="#/configuration/network" class="quick-links__item"> 128 <p class="inline quick-links__label">Edit network settings</p> 129 </a> 130 </d> 131 </div> 132 </section> 133 <section class="row"> 134 <div class="column large-12 overview__event-log event-log__events" ng-show="logs.length"> 135 <div class="page-header"> 136 <h2 class="h3">High priority events ({{logs.length}})</h2> 137 <a href="#/server-health/event-log/" class="inline float-right">View all event logs</a> 138 </div> 139 140 <!-- single event --> 141 <a href="#/server-health/event-log/high" ng-repeat="event in logs|orderBy:'-Id'|limitTo : 5"> 142 <div class="row column event-log__single-event"> 143 <div class="row"> 144 <!-- click will go to specific event in event log page--> 145 <div class="column small-9 large-10 event-log__event-info" ng-click=""> 146 <p class="inline event__id">#{{event.Id}}</p> 147 <p class="inline event__priority high-priority">High</p> 148 <p class="inline event__severity high-priority">{{event.severity_code}}</p> 149 <p class="inline event__timestamp">{{ event.Timestamp | localeDate }}</p> 150 <div> 151 <p class="inline event__description">{{getEventLogTitle(event)}}</p> 152 </div> 153 </div> 154 <div class="column small-1 large-1"> 155 <button class="accord-trigger" aria-hidden="true"></button> 156 </div> 157 </div> 158 </div> 159 </a> 160 </div> 161 162 <div class="row column overview__event-log event-log__events" ng-show="!logs.length"> 163 <div class="page-header"> 164 <h2 class="h3">High priority events (0)</h2> 165 </div> 166 <p>There are no high priority events to display at this time.</p> 167 </div> 168 </section> 169</div> 170<!-- edit server name modal --> 171<section class="modal" aria-hidden="true" aria-labelledby="modalTitle" aria-describedby="modalDescription" role="dialog" 172 ng-class="{'active': edit_hostname}"> 173 <div class="modal__upload" role="document"> 174 <!-- accessibility only; used for screen readers --> 175 <div class="screen-reader-offscreen modal-description">Edit hostname</div> 176 <div class="page-header "> 177 <h2 class="modal-title"><span class="icon icon__info"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"> 178 <path d="M18 14h-6v2h1v6h-2v2h8v-2h-2z" /> 179 <circle cx="16" cy="10" r="2" /> 180 <path 181 d="M16 2C8.269 2 2 8.269 2 16s6.269 14 14 14 14-6.269 14-14S23.731 2 16 2zm0 26C9.383 28 4 22.617 4 16S9.383 4 16 4s12 5.383 12 12-5.383 12-12 12z" /> 182 </svg></span> 183 Edit hostname 184 </h2> 185 </div> 186 <div class="modal__content"> 187 188 <form name="edit_hostname_text"> 189 <label for="editServerName">Hostname</label> 190 <p>Hostname must be less than 64 characters and must not contain spaces.</p> 191 <input id="editServerName" class="modal__edit-server-name" type="text" ng-model="newHostname" ng-trim="false" 192 name="hostname" ng-pattern="/^\S{0,64}$/" required autofocus /> 193 <span class="modal__error" ng-show="edit_hostname_text.hostname.$error.pattern">Invalid format. 194 Remove spaces.</span> 195 <span class="modal__char-count" 196 ng-hide="edit_hostname_text.hostname.$error.pattern">{{0 + newHostname.length}}/64</span> 197 </form> 198 </div> 199 <div class="modal__button-wrapper"> 200 <button class="inline btn-secondary" 201 ng-click="edit_hostname= false; newHostname = dataService.hostname">Cancel</button> 202 <button class="inline btn-primary" ng-click="saveHostname(newHostname);" ng-disabled="edit_hostname_text.$invalid" 203 ng-class="{'disabled' : edit_hostname_text.$invalid}">Save</button> 204 </div> 205 </div> 206</section> 207<div class="modal-overlay" tabindex="-1" ng-class="{'active': edit_hostname}"></div>