blob: 6ff9f4a27e921fc3b33fa8c88bb130c58378cefd [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 Wolmers97d86b32019-12-02 05:07:57 -06004 <b-row>
Gunnar Millsf70db212020-01-28 20:21:37 -06005 <b-col lg="8" sm="12">
Derick Montague09e45cd2020-01-23 15:45:57 -06006 <page-section section-title="Server information">
Dixsie Wolmers97d86b32019-12-02 05:07:57 -06007 <b-row>
8 <b-col sm="6">
9 <dl>
Dixsie Wolmersf65ee342020-01-22 19:47:56 -060010 <dt>Model</dt>
11 <dd>{{ serverModel }}</dd>
Dixsie Wolmers97d86b32019-12-02 05:07:57 -060012 </dl>
13 </b-col>
14 <b-col sm="6">
15 <dl>
Dixsie Wolmersf65ee342020-01-22 19:47:56 -060016 <dt>Manufacturer</dt>
17 <dd>{{ serverManufacturer }}</dd>
Dixsie Wolmers97d86b32019-12-02 05:07:57 -060018 </dl>
19 </b-col>
20 <b-col sm="6">
21 <dl>
Dixsie Wolmersf65ee342020-01-22 19:47:56 -060022 <dt>Serial number</dt>
23 <dd>{{ serverSerialNumber }}</dd>
Dixsie Wolmers97d86b32019-12-02 05:07:57 -060024 </dl>
25 </b-col>
26 <b-col sm="6">
27 <dl>
Dixsie Wolmersf65ee342020-01-22 19:47:56 -060028 <dt>Firmware version</dt>
29 <dd>{{ hostActiveVersion }}</dd>
Dixsie Wolmers97d86b32019-12-02 05:07:57 -060030 </dl>
31 </b-col>
32 </b-row>
Derick Montague09e45cd2020-01-23 15:45:57 -060033 </page-section>
34 <page-section section-title="BMC information">
Dixsie Wolmers97d86b32019-12-02 05:07:57 -060035 <b-row>
36 <b-col sm="6">
37 <dl>
Dixsie Wolmersf65ee342020-01-22 19:47:56 -060038 <dt>Hostname</dt>
39 <dd>{{ hostName }}</dd>
Dixsie Wolmers97d86b32019-12-02 05:07:57 -060040 </dl>
41 </b-col>
42 <b-col sm="6">
43 <dl>
Dixsie Wolmersf65ee342020-01-22 19:47:56 -060044 <dt>MAC address</dt>
45 <dd>{{ macAddress }}</dd>
Dixsie Wolmers97d86b32019-12-02 05:07:57 -060046 </dl>
47 </b-col>
48 <b-col sm="6">
49 <dl>
Dixsie Wolmersf65ee342020-01-22 19:47:56 -060050 <dt>IP address</dt>
Derick Montague09e45cd2020-01-23 15:45:57 -060051 <dd v-for="ip in ipAddress" :key="ip.id">{{ ip }}</dd>
Dixsie Wolmers97d86b32019-12-02 05:07:57 -060052 </dl>
53 </b-col>
54 <b-col sm="6">
55 <dl>
Dixsie Wolmersf65ee342020-01-22 19:47:56 -060056 <dt>Firmware version</dt>
57 <dd>{{ bmcActiveVersion }}</dd>
Dixsie Wolmers97d86b32019-12-02 05:07:57 -060058 </dl>
59 </b-col>
60 </b-row>
Derick Montague09e45cd2020-01-23 15:45:57 -060061 </page-section>
62 <page-section section-title="Power consumption">
Dixsie Wolmers97d86b32019-12-02 05:07:57 -060063 <b-row>
64 <b-col sm="6">
65 <dl>
Dixsie Wolmersf65ee342020-01-22 19:47:56 -060066 <dt>Power consumption</dt>
67 <dd>{{ powerConsumption }}</dd>
Dixsie Wolmers97d86b32019-12-02 05:07:57 -060068 </dl>
69 </b-col>
70 <b-col sm="6">
71 <dl>
Dixsie Wolmersf65ee342020-01-22 19:47:56 -060072 <dt>Power cap</dt>
73 <dd>{{ powerCapValue }}</dd>
Dixsie Wolmers97d86b32019-12-02 05:07:57 -060074 </dl>
75 </b-col>
76 </b-row>
Derick Montague09e45cd2020-01-23 15:45:57 -060077 </page-section>
Dixsie Wolmers97d86b32019-12-02 05:07:57 -060078 </b-col>
Gunnar Millsf70db212020-01-28 20:21:37 -060079 <b-col lg="4" sm="12">
Derick Montague09e45cd2020-01-23 15:45:57 -060080 <overview-quick-links />
Gunnar Millsf70db212020-01-28 20:21:37 -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>