blob: 570f84947d8f68b0e7bd4700aa21cb2b509f27d4 [file] [log] [blame]
Dixsie Wolmers97d86b32019-12-02 05:07:57 -06001<template>
2 <b-container fluid>
Yoshie Muranaka8d129102019-12-19 09:51:55 -08003 <PageTitle />
Dixsie Wolmers97d86b32019-12-02 05:07:57 -06004 <b-row>
5 <b-col lg="8" sm="12">
Dixsie Wolmersf65ee342020-01-22 19:47:56 -06006 <PageSection sectionTitle="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>
Yoshie Muranaka8d129102019-12-19 09:51:55 -080033 </PageSection>
34 <PageSection sectionTitle="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>
51 <dd v-for="ip in ipAddress" v-bind: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>
Yoshie Muranaka8d129102019-12-19 09:51:55 -080061 </PageSection>
62 <PageSection sectionTitle="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>
Yoshie Muranaka8d129102019-12-19 09:51:55 -080077 </PageSection>
Dixsie Wolmers97d86b32019-12-02 05:07:57 -060078 </b-col>
79 <b-col lg="4" sm="12">
Dixsie Wolmersf65ee342020-01-22 19:47:56 -060080 <OverviewQuickLinks />
Dixsie Wolmers97d86b32019-12-02 05:07:57 -060081 </b-col>
82 </b-row>
Yoshie Muranaka8d129102019-12-19 09:51:55 -080083 <PageSection sectionTitle="High priority events">
Dixsie Wolmersf65ee342020-01-22 19:47:56 -060084 <OverviewEvents />
Yoshie Muranaka8d129102019-12-19 09:51:55 -080085 </PageSection>
Dixsie Wolmers97d86b32019-12-02 05:07:57 -060086 </b-container>
87</template>
88
89<script>
90import OverviewQuickLinks from "./OverviewQuickLinks";
Derick Montague186ce2e2019-12-05 08:14:14 -060091import OverviewEvents from "./OverviewEvents";
Yoshie Muranaka8d129102019-12-19 09:51:55 -080092import PageTitle from "../../components/Global/PageTitle";
93import PageSection from "../../components/Global/PageSection";
Dixsie Wolmersf65ee342020-01-22 19:47:56 -060094import { mapState } from "vuex";
Dixsie Wolmers97d86b32019-12-02 05:07:57 -060095export default {
96 name: "Overview",
97 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 created() {
104 this.getOverviewInfo();
105 },
106 computed: mapState({
107 serverModel: state => state.overview.serverModel,
108 serverManufacturer: state => state.overview.serverManufacturer,
109 serverSerialNumber: state => state.overview.serverSerialNumber,
110 hostName: state => state.global.hostName,
111 hostActiveVersion: state => state.firmware.hostActiveVersion,
112 bmcActiveVersion: state => state.firmware.bmcActiveVersion,
113 powerConsumption: state => state.powerConsumption.powerConsumption,
114 powerCapValue: state => state.powerCap.powerCapValue,
115 ipAddress: state => state.networkSettings.ipAddress,
116 macAddress: state => state.networkSettings.macAddress
117 }),
118 methods: {
119 getOverviewInfo() {
120 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");
126 }
Dixsie Wolmers97d86b32019-12-02 05:07:57 -0600127 }
128};
129</script>