blob: 245fea6b3b9006c40c99e4f16d7c5f9523b839a8 [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 Wolmers537c6cb2020-01-06 17:22:25 -05008 <b-col>
Derick Montague09e45cd2020-01-23 15:45:57 -06009 <page-section section-title="Server information">
Dixsie Wolmers97d86b32019-12-02 05:07:57 -060010 <b-row>
11 <b-col sm="6">
12 <dl>
Dixsie Wolmersf65ee342020-01-22 19:47:56 -060013 <dt>Model</dt>
14 <dd>{{ serverModel }}</dd>
Dixsie Wolmers97d86b32019-12-02 05:07:57 -060015 </dl>
16 </b-col>
17 <b-col sm="6">
18 <dl>
Dixsie Wolmersf65ee342020-01-22 19:47:56 -060019 <dt>Manufacturer</dt>
20 <dd>{{ serverManufacturer }}</dd>
Dixsie Wolmers97d86b32019-12-02 05:07:57 -060021 </dl>
22 </b-col>
23 <b-col sm="6">
24 <dl>
Dixsie Wolmersf65ee342020-01-22 19:47:56 -060025 <dt>Serial number</dt>
26 <dd>{{ serverSerialNumber }}</dd>
Dixsie Wolmers97d86b32019-12-02 05:07:57 -060027 </dl>
28 </b-col>
29 <b-col sm="6">
30 <dl>
Dixsie Wolmersf65ee342020-01-22 19:47:56 -060031 <dt>Firmware version</dt>
32 <dd>{{ hostActiveVersion }}</dd>
Dixsie Wolmers97d86b32019-12-02 05:07:57 -060033 </dl>
34 </b-col>
35 </b-row>
Derick Montague09e45cd2020-01-23 15:45:57 -060036 </page-section>
37 <page-section section-title="BMC information">
Dixsie Wolmers97d86b32019-12-02 05:07:57 -060038 <b-row>
39 <b-col sm="6">
40 <dl>
Dixsie Wolmersf65ee342020-01-22 19:47:56 -060041 <dt>Hostname</dt>
42 <dd>{{ hostName }}</dd>
Dixsie Wolmers97d86b32019-12-02 05:07:57 -060043 </dl>
44 </b-col>
45 <b-col sm="6">
46 <dl>
Dixsie Wolmersf65ee342020-01-22 19:47:56 -060047 <dt>MAC address</dt>
48 <dd>{{ macAddress }}</dd>
Dixsie Wolmers97d86b32019-12-02 05:07:57 -060049 </dl>
50 </b-col>
51 <b-col sm="6">
52 <dl>
Dixsie Wolmersf65ee342020-01-22 19:47:56 -060053 <dt>IP address</dt>
Derick Montague09e45cd2020-01-23 15:45:57 -060054 <dd v-for="ip in ipAddress" :key="ip.id">{{ ip }}</dd>
Dixsie Wolmers97d86b32019-12-02 05:07:57 -060055 </dl>
56 </b-col>
57 <b-col sm="6">
58 <dl>
Dixsie Wolmersf65ee342020-01-22 19:47:56 -060059 <dt>Firmware version</dt>
60 <dd>{{ bmcActiveVersion }}</dd>
Dixsie Wolmers97d86b32019-12-02 05:07:57 -060061 </dl>
62 </b-col>
63 </b-row>
Derick Montague09e45cd2020-01-23 15:45:57 -060064 </page-section>
65 <page-section section-title="Power consumption">
Dixsie Wolmers97d86b32019-12-02 05:07:57 -060066 <b-row>
67 <b-col sm="6">
68 <dl>
Dixsie Wolmersf65ee342020-01-22 19:47:56 -060069 <dt>Power consumption</dt>
70 <dd>{{ powerConsumption }}</dd>
Dixsie Wolmers97d86b32019-12-02 05:07:57 -060071 </dl>
72 </b-col>
73 <b-col sm="6">
74 <dl>
Dixsie Wolmersf65ee342020-01-22 19:47:56 -060075 <dt>Power cap</dt>
76 <dd>{{ powerCapValue }}</dd>
Dixsie Wolmers97d86b32019-12-02 05:07:57 -060077 </dl>
78 </b-col>
79 </b-row>
Derick Montague09e45cd2020-01-23 15:45:57 -060080 </page-section>
Dixsie Wolmers97d86b32019-12-02 05:07:57 -060081 </b-col>
Dixsie Wolmers97d86b32019-12-02 05:07:57 -060082 </b-row>
Derick Montague09e45cd2020-01-23 15:45:57 -060083 <page-section section-title="High priority events">
84 <overview-events />
85 </page-section>
Dixsie Wolmers97d86b32019-12-02 05:07:57 -060086 </b-container>
87</template>
88
89<script>
Derick Montaguee2fd1562019-12-20 13:26:53 -060090import OverviewQuickLinks from './OverviewQuickLinks';
91import OverviewEvents from './OverviewEvents';
92import PageTitle from '../../components/Global/PageTitle';
93import PageSection from '../../components/Global/PageSection';
94import { mapState } from 'vuex';
Dixsie Wolmers97d86b32019-12-02 05:07:57 -060095export default {
Derick Montaguee2fd1562019-12-20 13:26:53 -060096 name: 'Overview',
Dixsie Wolmers97d86b32019-12-02 05:07:57 -060097 components: {
Dixsie Wolmersf65ee342020-01-22 19:47:56 -060098 OverviewQuickLinks,
99 OverviewEvents,
Yoshie Muranaka8d129102019-12-19 09:51:55 -0800100 PageTitle,
101 PageSection
Dixsie Wolmers97d86b32019-12-02 05:07:57 -0600102 },
Dixsie Wolmersf65ee342020-01-22 19:47:56 -0600103 computed: mapState({
104 serverModel: state => state.overview.serverModel,
105 serverManufacturer: state => state.overview.serverManufacturer,
106 serverSerialNumber: state => state.overview.serverSerialNumber,
107 hostName: state => state.global.hostName,
108 hostActiveVersion: state => state.firmware.hostActiveVersion,
109 bmcActiveVersion: state => state.firmware.bmcActiveVersion,
110 powerConsumption: state => state.powerConsumption.powerConsumption,
111 powerCapValue: state => state.powerCap.powerCapValue,
112 ipAddress: state => state.networkSettings.ipAddress,
113 macAddress: state => state.networkSettings.macAddress
114 }),
Derick Montague09e45cd2020-01-23 15:45:57 -0600115 created() {
116 this.getOverviewInfo();
117 },
Dixsie Wolmersf65ee342020-01-22 19:47:56 -0600118 methods: {
119 getOverviewInfo() {
Derick Montaguee2fd1562019-12-20 13:26:53 -0600120 this.$store.dispatch('overview/getServerInfo');
121 this.$store.dispatch('global/getHostName');
122 this.$store.dispatch('firmware/getFirmwareInfo');
123 this.$store.dispatch('powerConsumption/getPowerData');
124 this.$store.dispatch('powerCap/getPowerCapData');
125 this.$store.dispatch('networkSettings/getNetworkData');
Dixsie Wolmersf65ee342020-01-22 19:47:56 -0600126 }
Dixsie Wolmers97d86b32019-12-02 05:07:57 -0600127 }
128};
129</script>
Dixsie Wolmers537c6cb2020-01-06 17:22:25 -0500130
131<style lang="scss" scoped>
132.quicklinks-section {
133 margin-bottom: $spacer * 2;
134 margin-left: -1rem;
135}
136</style>