blob: 13d907c464e70438592157fabc05b4121c8e461c [file] [log] [blame]
Michael Davis428375e2017-08-01 15:48:34 -05001<loader loading="loading"></loader>
Derick Montague30d7c632019-07-31 22:35:48 -05002<div class="page overview">
3 <h1 class="page-title inline">{{ dataService.hostname }}</h1>
4 <button class="btn btn-tertiary" ng-click="edit_hostname = !edit_hostname" aria-label="edit host name">
5 <icon class="nav-icon" aria-hidden="true" file="icon-edit.svg"></icon>
6 </button>
7 <div class="row">
8 <div class="small-12 large-8">
9 <section class="section">
10 <div class="section-header">
11 <h2 class="section-title h3">Server information</h2>
Gunnar Mills5f0b7762018-09-25 14:10:45 -050012 </div>
Derick Montague30d7c632019-07-31 22:35:48 -050013 <div class="section-content row">
14 <div class="column large-6">
15 <dl class="list-pair">
16 <dt>Model</dt>
17 <dd>{{ server_info.Model || "N/A" }}</dd>
18 </dl>
19 <dl class="list-pair">
20 <dt>Serial number</dt>
21 <dd>{{ server_info.SerialNumber || "N/A" }}</dd>
22 </dl>
23 </div>
24 <div class="column large-6">
25 <dl class="list-pair">
26 <dt>Manufacturer</dt>
27 <dd>{{ server_info.Manufacturer || "N/A" }}</dd>
28 </dl>
29 <dl class="list-pair">
30 <dt>Firmware version</dt>
31 <dd>{{ server_firmware }}</dd>
32 </dl>
33 </div>
Gunnar Mills5f0b7762018-09-25 14:10:45 -050034 </div>
Derick Montague30d7c632019-07-31 22:35:48 -050035 </section>
36
37 <section class="section">
38 <div class="section-header">
39 <h2 class="section-title h3">BMC information</h2>
Gunnar Mills5f0b7762018-09-25 14:10:45 -050040 </div>
Derick Montague30d7c632019-07-31 22:35:48 -050041 <div class="section-content row">
42 <div class="column large-6">
43 <dl class="list-pair">
44 <dt>Hostname</dt>
45 <dd class="overview__hostname">
46 {{ dataService.hostname }}
47 </dd>
48 </dl>
Igor Kononenkod10511f2020-09-12 16:36:35 +030049 <dl class="list-pair" ng-repeat="(ifaceName,iface) in dataService.network_interfaces">
50 <dt>{{ifaceName | uppercase}} IP addresses</dt>
51 <dd class="courier-bold" ng-repeat="ipv4 in iface.ipv4.values">
52 IPv4: <span>{{ ipv4.Address }}</span>
53 </dd>
54 <dd class="courier-bold" ng-repeat="ipv6 in iface.ipv6.values">
55 IPv6: <span>{{ ipv6.Address | uppercase }}</span>
Derick Montague30d7c632019-07-31 22:35:48 -050056 </dd>
57 </dl>
58 </div>
59 <div class="column large-6">
Igor Kononenkod10511f2020-09-12 16:36:35 +030060 <dl class="list-pair" ng-repeat="(ifaceName,iface) in dataService.network_interfaces">
61 <dt>{{ifaceName | uppercase}} Mac address</dt>
62 <dd>
63 <span>{{iface.MACAddress | uppercase}}</span>
64 </dd>
Derick Montague30d7c632019-07-31 22:35:48 -050065 </dl>
66 <dl class="list-pair">
67 <dt>Firmware Version</dt>
68 <dd class="courier-bold">{{ bmc_firmware }}</dd>
69 </dl>
70 </div>
Gunnar Mills5f0b7762018-09-25 14:10:45 -050071 </div>
Derick Montague30d7c632019-07-31 22:35:48 -050072 </section>
73
74 <section class="section">
75 <div class="section-header">
76 <h2 class="section-title h3">Power Consumption</h2>
Gunnar Mills5f0b7762018-09-25 14:10:45 -050077 </div>
Derick Montague30d7c632019-07-31 22:35:48 -050078 <div class="section-content row">
79 <div class="column large-6">
80 <dl class="list-pair">
81 <dt>Power Consumption</dt>
82 <dd class="courier-bold">{{ power_consumption }}</dd>
83 </dl>
84 </div>
85 <div class="column large-6">
86 <dl class="list-pair">
87 <dt>Power Cap</dt>
88 <dd class="courier-bold">{{ power_cap }}</dd>
89 </dl>
90 </div>
Gunnar Mills5f0b7762018-09-25 14:10:45 -050091 </div>
Derick Montague30d7c632019-07-31 22:35:48 -050092 </section>
Gunnar Mills5f0b7762018-09-25 14:10:45 -050093 </div>
Derick Montague30d7c632019-07-31 22:35:48 -050094 <div class="small-12 large-4">
Gunnar Mills5f0b7762018-09-25 14:10:45 -050095 <div class="quick-links">
dixsie565efda2019-04-16 13:30:30 -050096 <a href="#/server-health/event-log/high" class="quick-links__item quick-links__events event-log__events"
97 ng-show="logs.length">
98 <!-- link to event log filtered to the high priority events -->
Derick Montague30d7c632019-07-31 22:35:48 -050099 <span class="inline quick-links__event-copy">
100 View {{ logs.length }} high priority events
101 </span>
Gunnar Mills5f0b7762018-09-25 14:10:45 -0500102 </a>
Derick Montague1ffa2092019-04-01 17:57:27 -0500103 <dl class="quick-links__item no-icon">
104 <dt class="inline quick-links__label">BMC time</dt>
Derick Montague30d7c632019-07-31 22:35:48 -0500105 <dd class="bmc-time">{{ bmc_time | localeDate }}</dd>
Derick Montague1ffa2092019-04-01 17:57:27 -0500106 </dl>
Gunnar Mills5f0b7762018-09-25 14:10:45 -0500107 <div class="quick-links__item no-icon">
Derick Montague30d7c632019-07-31 22:35:48 -0500108 <p class="inline quick-links__label">
109 Turn <span ng-if="dataService.LED_state == 'off'">on</span>
110 <span ng-if="dataService.LED_state == 'on'">off</span> server LED
111 </p>
Dixsie Wolmersc652ed12019-07-19 13:03:28 -0500112 <div class="toggle-container">
113 <div class="toggle">
114 <input id="toggle__switch-round" class="toggle-switch toggle-switch__round-flat" type="checkbox"
115 tabindex="0" ng-click="toggleLED()" ng-checked="dataService.LED_state == 'on'"
Derick Montague30d7c632019-07-31 22:35:48 -0500116 ng-disabled="dataService.server_unreachable" />
117 <label for="toggle__switch-round" tabindex="0">Server LED is
118 <span class="uid-switch__status">{{
119 dataService.LED_state
120 }}</span></label>
Dixsie Wolmersc652ed12019-07-19 13:03:28 -0500121 </div>
Derick Montague30d7c632019-07-31 22:35:48 -0500122 <span>
123 {{ dataService.LED_state == "on" ? "On" : "Off" }}
124 </span>
125 </div>
Gunnar Mills5f0b7762018-09-25 14:10:45 -0500126 </div>
Dixsie Wolmers50c1aa12019-10-14 13:22:36 -0500127 <a href="#/server-control/remote-console" class="quick-links__item">
Derick Montague30d7c632019-07-31 22:35:48 -0500128 <span class="inline quick-links__label">Serial over LAN console</span>
129 <icon aria-hidden="true" file="icon-chevron-right.svg"></icon>
Gunnar Mills5f0b7762018-09-25 14:10:45 -0500130 </a>
131 <a href="#/configuration/network" class="quick-links__item">
Derick Montague30d7c632019-07-31 22:35:48 -0500132 <span class="inline quick-links__label">Edit network settings</span>
133 <icon aria-hidden="true" file="icon-chevron-right.svg"></icon>
Gunnar Mills5f0b7762018-09-25 14:10:45 -0500134 </a>
dixsie565efda2019-04-16 13:30:30 -0500135 </div>
Derick Montague30d7c632019-07-31 22:35:48 -0500136 </div>
137 </div>
Michael Davis706b75b2017-08-18 16:40:03 -0500138
Derick Montague30d7c632019-07-31 22:35:48 -0500139 <div class="section overview__event-log event-log__events" ng-show="logs.length">
140 <div class="section-header">
141 <h2 class="section-title h3">High priority events ({{ logs.length }})</h2>
142 <a href="#/server-health/event-log/">
143 View all event logs
Gunnar Mills5f0b7762018-09-25 14:10:45 -0500144 </a>
145 </div>
Michael Davis706b75b2017-08-18 16:40:03 -0500146
Derick Montague30d7c632019-07-31 22:35:48 -0500147 <!-- single event -->
148 <a href="#/server-health/event-log/high" ng-repeat="event in logs|orderBy:'-Id'|limitTo : 5">
149 <div class="row column event-log__single-event">
150 <div class="row">
151 <!-- click will go to specific event in event log page-->
152 <div class="column small-10 large-11 event-log__event-info" ng-click="">
153 <div class="row">
154 <div class="column large-1 small-1">
155 <p class="inline event__id">#{{ event.Id }}</p>
156 </div>
157 <div class="column large-4 small-11">
158 <p class="inline event__priority high-priority">High</p>
159 <p class="inline event__severity high-priority">
160 {{ event.severity_code }}
161 </p>
162 </div>
163 <div class="column large-7 large-offset-0 small-11 small-offset-1">
164 <p class="inline event__timestamp">
165 {{ event.Timestamp | localeDate }}
166 </p>
167 </div>
168 </div>
169
170 <div class="row">
171 <div class="column large-12 small-11 small-offset-1">
172 <p class="inline event__description">
173 {{ getEventLogTitle(event) }}
174 </p>
175 </div>
176 </div>
177 </div>
178 <div class="column small-2 large-1">
179 <span class="accord-trigger" aria-hidden="true"></span>
180 </div>
181 </div>
Gunnar Mills5f0b7762018-09-25 14:10:45 -0500182 </div>
Derick Montague30d7c632019-07-31 22:35:48 -0500183 </a>
184 </div>
185
186 <div class="section overview__event-log event-log__events" ng-show="!logs.length">
187 <div class="section-header">
188 <h2 class="section-title h3">High priority events</h2>
Gunnar Mills5f0b7762018-09-25 14:10:45 -0500189 </div>
Derick Montague30d7c632019-07-31 22:35:48 -0500190 <p class="section-content">
191 There are no high priority events to display at this time.
192 </p>
193 </div>
Michael Davis80a6a372017-07-27 14:44:04 -0500194</div>
Iftekharul Islamdb28a382017-11-02 13:16:17 -0500195<!-- edit server name modal -->
dixsie565efda2019-04-16 13:30:30 -0500196<section class="modal" aria-hidden="true" aria-labelledby="modalTitle" aria-describedby="modalDescription" role="dialog"
197 ng-class="{'active': edit_hostname}">
Gunnar Mills5f0b7762018-09-25 14:10:45 -0500198 <div class="modal__upload" role="document">
dixsie565efda2019-04-16 13:30:30 -0500199 <!-- accessibility only; used for screen readers -->
200 <div class="screen-reader-offscreen modal-description">Edit hostname</div>
Gunnar Mills5f0b7762018-09-25 14:10:45 -0500201 <div class="page-header ">
Yoshie Muranakac86ce3c2019-06-05 12:30:30 -0500202 <h2 class="modal-title">
Derick Montague30d7c632019-07-31 22:35:48 -0500203 <icon class="icon__info" file="icon-information.svg"></icon>Edit
204 hostname
Derick Montague1ffa2092019-04-01 17:57:27 -0500205 </h2>
Gunnar Mills5f0b7762018-09-25 14:10:45 -0500206 </div>
207 <div class="modal__content">
dixsie565efda2019-04-16 13:30:30 -0500208 <form name="edit_hostname_text">
209 <label for="editServerName">Hostname</label>
Derick Montague30d7c632019-07-31 22:35:48 -0500210 <p class="label__helper-text">
211 Hostname must be less than 64 characters and must not contain spaces.
212 </p>
dixsie565efda2019-04-16 13:30:30 -0500213 <input id="editServerName" class="modal__edit-server-name" type="text" ng-model="newHostname" ng-trim="false"
214 name="hostname" ng-pattern="/^\S{0,64}$/" required autofocus />
Derick Montague30d7c632019-07-31 22:35:48 -0500215 <span class="modal__error" ng-show="edit_hostname_text.hostname.$error.pattern">Invalid format. Remove
216 spaces.</span>
dixsie565efda2019-04-16 13:30:30 -0500217 <span class="modal__char-count"
Derick Montague30d7c632019-07-31 22:35:48 -0500218 ng-hide="edit_hostname_text.hostname.$error.pattern">{{ 0 + newHostname.length }}/64</span>
Gunnar Mills5f0b7762018-09-25 14:10:45 -0500219 </form>
220 </div>
221 <div class="modal__button-wrapper">
Derick Montague30d7c632019-07-31 22:35:48 -0500222 <button class="btn btn-secondary" ng-click="edit_hostname= false; newHostname = dataService.hostname">
223 Cancel
224 </button>
Yoshie Muranakac86ce3c2019-06-05 12:30:30 -0500225 <button class="btn btn-primary" ng-click="saveHostname(newHostname);" ng-disabled="edit_hostname_text.$invalid"
Derick Montague30d7c632019-07-31 22:35:48 -0500226 ng-class="{'disabled' : edit_hostname_text.$invalid}">
227 Save
228 </button>
Gunnar Mills5f0b7762018-09-25 14:10:45 -0500229 </div>
230 </div>
Iftekharul Islamdb28a382017-11-02 13:16:17 -0500231</section>
Igor Kononenkod10511f2020-09-12 16:36:35 +0300232<div class="modal-overlay" tabindex="-1" ng-class="{'active': edit_hostname}"></div>