blob: 9fbc0dd55d969f95b697cf76e5e8d839c49a1c5b [file] [log] [blame]
Dixsie Wolmers97d86b32019-12-02 05:07:57 -06001<template>
2 <b-container fluid>
Derick Montague09e45cd2020-01-23 15:45:57 -06003 <page-title />
Dixsie Wolmers537c6cb2020-01-06 17:22:25 -05004 <div class="quicklinks-section">
5 <overview-quick-links />
6 </div>
Dixsie Wolmers97d86b32019-12-02 05:07:57 -06007 <b-row>
Dixsie Wolmers75d3fb72020-02-10 21:58:55 -06008 <b-col lg="8" sm="12">
9 <page-section
10 :section-title="$t('overview.sectionTitle.serverInformation')"
11 >
Dixsie Wolmers97d86b32019-12-02 05:07:57 -060012 <b-row>
13 <b-col sm="6">
14 <dl>
Dixsie Wolmers75d3fb72020-02-10 21:58:55 -060015 <dt>{{ $t('overview.model') }}</dt>
Dixsie Wolmersf65ee342020-01-22 19:47:56 -060016 <dd>{{ serverModel }}</dd>
Dixsie Wolmers97d86b32019-12-02 05:07:57 -060017 </dl>
18 </b-col>
19 <b-col sm="6">
20 <dl>
Dixsie Wolmers75d3fb72020-02-10 21:58:55 -060021 <dt>{{ $t('overview.manufacturer') }}</dt>
Dixsie Wolmersf65ee342020-01-22 19:47:56 -060022 <dd>{{ serverManufacturer }}</dd>
Dixsie Wolmers97d86b32019-12-02 05:07:57 -060023 </dl>
24 </b-col>
25 <b-col sm="6">
26 <dl>
Dixsie Wolmers75d3fb72020-02-10 21:58:55 -060027 <dt>{{ $t('overview.serialNumber') }}</dt>
Dixsie Wolmersf65ee342020-01-22 19:47:56 -060028 <dd>{{ serverSerialNumber }}</dd>
Dixsie Wolmers97d86b32019-12-02 05:07:57 -060029 </dl>
30 </b-col>
31 <b-col sm="6">
32 <dl>
Dixsie Wolmers75d3fb72020-02-10 21:58:55 -060033 <dt>{{ $t('overview.firmwareVersion') }}</dt>
Dixsie Wolmersf65ee342020-01-22 19:47:56 -060034 <dd>{{ hostActiveVersion }}</dd>
Dixsie Wolmers97d86b32019-12-02 05:07:57 -060035 </dl>
36 </b-col>
37 </b-row>
Derick Montague09e45cd2020-01-23 15:45:57 -060038 </page-section>
Dixsie Wolmers75d3fb72020-02-10 21:58:55 -060039 <page-section
40 :section-title="$t('overview.sectionTitle.bmcInformation')"
41 >
Dixsie Wolmers97d86b32019-12-02 05:07:57 -060042 <b-row>
43 <b-col sm="6">
44 <dl>
Dixsie Wolmers75d3fb72020-02-10 21:58:55 -060045 <dt>{{ $t('overview.hostname') }}</dt>
Dixsie Wolmersf65ee342020-01-22 19:47:56 -060046 <dd>{{ hostName }}</dd>
Dixsie Wolmers97d86b32019-12-02 05:07:57 -060047 </dl>
48 </b-col>
49 <b-col sm="6">
50 <dl>
Dixsie Wolmers75d3fb72020-02-10 21:58:55 -060051 <dt>{{ $t('overview.macAddress') }}</dt>
Dixsie Wolmersf65ee342020-01-22 19:47:56 -060052 <dd>{{ macAddress }}</dd>
Dixsie Wolmers97d86b32019-12-02 05:07:57 -060053 </dl>
54 </b-col>
55 <b-col sm="6">
56 <dl>
Dixsie Wolmers75d3fb72020-02-10 21:58:55 -060057 <dt>{{ $t('overview.ipAddress') }}</dt>
Derick Montague09e45cd2020-01-23 15:45:57 -060058 <dd v-for="ip in ipAddress" :key="ip.id">{{ ip }}</dd>
Dixsie Wolmers97d86b32019-12-02 05:07:57 -060059 </dl>
60 </b-col>
61 <b-col sm="6">
62 <dl>
Dixsie Wolmers75d3fb72020-02-10 21:58:55 -060063 <dt>{{ $t('overview.firmwareVersion') }}</dt>
Dixsie Wolmersf65ee342020-01-22 19:47:56 -060064 <dd>{{ bmcActiveVersion }}</dd>
Dixsie Wolmers97d86b32019-12-02 05:07:57 -060065 </dl>
66 </b-col>
67 </b-row>
Derick Montague09e45cd2020-01-23 15:45:57 -060068 </page-section>
Dixsie Wolmers75d3fb72020-02-10 21:58:55 -060069 <page-section
70 :section-title="$t('overview.sectionTitle.powerConsumption')"
71 >
Dixsie Wolmers97d86b32019-12-02 05:07:57 -060072 <b-row>
73 <b-col sm="6">
74 <dl>
Dixsie Wolmers75d3fb72020-02-10 21:58:55 -060075 <dt>{{ $t('overview.powerConsumption') }}</dt>
76 <dd v-if="!powerConsumption">
77 {{ $t('overview.state.notAvailable') }}
78 </dd>
79 <dd v-else>{{ powerConsumption }} W</dd>
Dixsie Wolmers97d86b32019-12-02 05:07:57 -060080 </dl>
81 </b-col>
82 <b-col sm="6">
83 <dl>
Dixsie Wolmers75d3fb72020-02-10 21:58:55 -060084 <dt>{{ $t('overview.powerCap') }}</dt>
85 <dd v-if="powerCapData">{{ powerCapData }} W</dd>
86 <dd v-else>{{ $t('overview.state.notEnabled') }}</dd>
Dixsie Wolmers97d86b32019-12-02 05:07:57 -060087 </dl>
88 </b-col>
89 </b-row>
Derick Montague09e45cd2020-01-23 15:45:57 -060090 </page-section>
Dixsie Wolmers97d86b32019-12-02 05:07:57 -060091 </b-col>
Dixsie Wolmers97d86b32019-12-02 05:07:57 -060092 </b-row>
Dixsie Wolmers75d3fb72020-02-10 21:58:55 -060093 <page-section
94 :section-title="$t('overview.sectionTitle.highPriorityEvents')"
95 >
Derick Montague09e45cd2020-01-23 15:45:57 -060096 <overview-events />
97 </page-section>
Dixsie Wolmers97d86b32019-12-02 05:07:57 -060098 </b-container>
99</template>
100
101<script>
Derick Montaguee2fd1562019-12-20 13:26:53 -0600102import OverviewQuickLinks from './OverviewQuickLinks';
103import OverviewEvents from './OverviewEvents';
104import PageTitle from '../../components/Global/PageTitle';
105import PageSection from '../../components/Global/PageSection';
106import { mapState } from 'vuex';
Dixsie Wolmers97d86b32019-12-02 05:07:57 -0600107export default {
Derick Montaguee2fd1562019-12-20 13:26:53 -0600108 name: 'Overview',
Dixsie Wolmers97d86b32019-12-02 05:07:57 -0600109 components: {
Dixsie Wolmersf65ee342020-01-22 19:47:56 -0600110 OverviewQuickLinks,
111 OverviewEvents,
Yoshie Muranaka8d129102019-12-19 09:51:55 -0800112 PageTitle,
113 PageSection
Dixsie Wolmers97d86b32019-12-02 05:07:57 -0600114 },
Dixsie Wolmersf65ee342020-01-22 19:47:56 -0600115 computed: mapState({
116 serverModel: state => state.overview.serverModel,
117 serverManufacturer: state => state.overview.serverManufacturer,
118 serverSerialNumber: state => state.overview.serverSerialNumber,
119 hostName: state => state.global.hostName,
120 hostActiveVersion: state => state.firmware.hostActiveVersion,
121 bmcActiveVersion: state => state.firmware.bmcActiveVersion,
122 powerConsumption: state => state.powerConsumption.powerConsumption,
Dixsie Wolmers75d3fb72020-02-10 21:58:55 -0600123 powerCapData: state => state.powerCap.powerCapData,
Dixsie Wolmersf65ee342020-01-22 19:47:56 -0600124 ipAddress: state => state.networkSettings.ipAddress,
125 macAddress: state => state.networkSettings.macAddress
126 }),
Derick Montague09e45cd2020-01-23 15:45:57 -0600127 created() {
128 this.getOverviewInfo();
129 },
Dixsie Wolmersf65ee342020-01-22 19:47:56 -0600130 methods: {
131 getOverviewInfo() {
Derick Montaguee2fd1562019-12-20 13:26:53 -0600132 this.$store.dispatch('overview/getServerInfo');
133 this.$store.dispatch('global/getHostName');
134 this.$store.dispatch('firmware/getFirmwareInfo');
135 this.$store.dispatch('powerConsumption/getPowerData');
136 this.$store.dispatch('powerCap/getPowerCapData');
137 this.$store.dispatch('networkSettings/getNetworkData');
Dixsie Wolmersf65ee342020-01-22 19:47:56 -0600138 }
Dixsie Wolmers97d86b32019-12-02 05:07:57 -0600139 }
140};
141</script>
Dixsie Wolmers537c6cb2020-01-06 17:22:25 -0500142
143<style lang="scss" scoped>
144.quicklinks-section {
145 margin-bottom: $spacer * 2;
146 margin-left: -1rem;
147}
148</style>