Dixsie Wolmers | 97d86b3 | 2019-12-02 05:07:57 -0600 | [diff] [blame] | 1 | <template> |
| 2 | <b-container fluid> |
Yoshie Muranaka | 8d12910 | 2019-12-19 09:51:55 -0800 | [diff] [blame] | 3 | <PageTitle /> |
Dixsie Wolmers | 97d86b3 | 2019-12-02 05:07:57 -0600 | [diff] [blame] | 4 | <b-row> |
| 5 | <b-col lg="8" sm="12"> |
Dixsie Wolmers | f65ee34 | 2020-01-22 19:47:56 -0600 | [diff] [blame^] | 6 | <PageSection sectionTitle="Server information"> |
Dixsie Wolmers | 97d86b3 | 2019-12-02 05:07:57 -0600 | [diff] [blame] | 7 | <b-row> |
| 8 | <b-col sm="6"> |
| 9 | <dl> |
Dixsie Wolmers | f65ee34 | 2020-01-22 19:47:56 -0600 | [diff] [blame^] | 10 | <dt>Model</dt> |
| 11 | <dd>{{ serverModel }}</dd> |
Dixsie Wolmers | 97d86b3 | 2019-12-02 05:07:57 -0600 | [diff] [blame] | 12 | </dl> |
| 13 | </b-col> |
| 14 | <b-col sm="6"> |
| 15 | <dl> |
Dixsie Wolmers | f65ee34 | 2020-01-22 19:47:56 -0600 | [diff] [blame^] | 16 | <dt>Manufacturer</dt> |
| 17 | <dd>{{ serverManufacturer }}</dd> |
Dixsie Wolmers | 97d86b3 | 2019-12-02 05:07:57 -0600 | [diff] [blame] | 18 | </dl> |
| 19 | </b-col> |
| 20 | <b-col sm="6"> |
| 21 | <dl> |
Dixsie Wolmers | f65ee34 | 2020-01-22 19:47:56 -0600 | [diff] [blame^] | 22 | <dt>Serial number</dt> |
| 23 | <dd>{{ serverSerialNumber }}</dd> |
Dixsie Wolmers | 97d86b3 | 2019-12-02 05:07:57 -0600 | [diff] [blame] | 24 | </dl> |
| 25 | </b-col> |
| 26 | <b-col sm="6"> |
| 27 | <dl> |
Dixsie Wolmers | f65ee34 | 2020-01-22 19:47:56 -0600 | [diff] [blame^] | 28 | <dt>Firmware version</dt> |
| 29 | <dd>{{ hostActiveVersion }}</dd> |
Dixsie Wolmers | 97d86b3 | 2019-12-02 05:07:57 -0600 | [diff] [blame] | 30 | </dl> |
| 31 | </b-col> |
| 32 | </b-row> |
Yoshie Muranaka | 8d12910 | 2019-12-19 09:51:55 -0800 | [diff] [blame] | 33 | </PageSection> |
| 34 | <PageSection sectionTitle="BMC information"> |
Dixsie Wolmers | 97d86b3 | 2019-12-02 05:07:57 -0600 | [diff] [blame] | 35 | <b-row> |
| 36 | <b-col sm="6"> |
| 37 | <dl> |
Dixsie Wolmers | f65ee34 | 2020-01-22 19:47:56 -0600 | [diff] [blame^] | 38 | <dt>Hostname</dt> |
| 39 | <dd>{{ hostName }}</dd> |
Dixsie Wolmers | 97d86b3 | 2019-12-02 05:07:57 -0600 | [diff] [blame] | 40 | </dl> |
| 41 | </b-col> |
| 42 | <b-col sm="6"> |
| 43 | <dl> |
Dixsie Wolmers | f65ee34 | 2020-01-22 19:47:56 -0600 | [diff] [blame^] | 44 | <dt>MAC address</dt> |
| 45 | <dd>{{ macAddress }}</dd> |
Dixsie Wolmers | 97d86b3 | 2019-12-02 05:07:57 -0600 | [diff] [blame] | 46 | </dl> |
| 47 | </b-col> |
| 48 | <b-col sm="6"> |
| 49 | <dl> |
Dixsie Wolmers | f65ee34 | 2020-01-22 19:47:56 -0600 | [diff] [blame^] | 50 | <dt>IP address</dt> |
| 51 | <dd v-for="ip in ipAddress" v-bind:key="ip.id">{{ ip }}</dd> |
Dixsie Wolmers | 97d86b3 | 2019-12-02 05:07:57 -0600 | [diff] [blame] | 52 | </dl> |
| 53 | </b-col> |
| 54 | <b-col sm="6"> |
| 55 | <dl> |
Dixsie Wolmers | f65ee34 | 2020-01-22 19:47:56 -0600 | [diff] [blame^] | 56 | <dt>Firmware version</dt> |
| 57 | <dd>{{ bmcActiveVersion }}</dd> |
Dixsie Wolmers | 97d86b3 | 2019-12-02 05:07:57 -0600 | [diff] [blame] | 58 | </dl> |
| 59 | </b-col> |
| 60 | </b-row> |
Yoshie Muranaka | 8d12910 | 2019-12-19 09:51:55 -0800 | [diff] [blame] | 61 | </PageSection> |
| 62 | <PageSection sectionTitle="Power consumption"> |
Dixsie Wolmers | 97d86b3 | 2019-12-02 05:07:57 -0600 | [diff] [blame] | 63 | <b-row> |
| 64 | <b-col sm="6"> |
| 65 | <dl> |
Dixsie Wolmers | f65ee34 | 2020-01-22 19:47:56 -0600 | [diff] [blame^] | 66 | <dt>Power consumption</dt> |
| 67 | <dd>{{ powerConsumption }}</dd> |
Dixsie Wolmers | 97d86b3 | 2019-12-02 05:07:57 -0600 | [diff] [blame] | 68 | </dl> |
| 69 | </b-col> |
| 70 | <b-col sm="6"> |
| 71 | <dl> |
Dixsie Wolmers | f65ee34 | 2020-01-22 19:47:56 -0600 | [diff] [blame^] | 72 | <dt>Power cap</dt> |
| 73 | <dd>{{ powerCapValue }}</dd> |
Dixsie Wolmers | 97d86b3 | 2019-12-02 05:07:57 -0600 | [diff] [blame] | 74 | </dl> |
| 75 | </b-col> |
| 76 | </b-row> |
Yoshie Muranaka | 8d12910 | 2019-12-19 09:51:55 -0800 | [diff] [blame] | 77 | </PageSection> |
Dixsie Wolmers | 97d86b3 | 2019-12-02 05:07:57 -0600 | [diff] [blame] | 78 | </b-col> |
| 79 | <b-col lg="4" sm="12"> |
Dixsie Wolmers | f65ee34 | 2020-01-22 19:47:56 -0600 | [diff] [blame^] | 80 | <OverviewQuickLinks /> |
Dixsie Wolmers | 97d86b3 | 2019-12-02 05:07:57 -0600 | [diff] [blame] | 81 | </b-col> |
| 82 | </b-row> |
Yoshie Muranaka | 8d12910 | 2019-12-19 09:51:55 -0800 | [diff] [blame] | 83 | <PageSection sectionTitle="High priority events"> |
Dixsie Wolmers | f65ee34 | 2020-01-22 19:47:56 -0600 | [diff] [blame^] | 84 | <OverviewEvents /> |
Yoshie Muranaka | 8d12910 | 2019-12-19 09:51:55 -0800 | [diff] [blame] | 85 | </PageSection> |
Dixsie Wolmers | 97d86b3 | 2019-12-02 05:07:57 -0600 | [diff] [blame] | 86 | </b-container> |
| 87 | </template> |
| 88 | |
| 89 | <script> |
| 90 | import OverviewQuickLinks from "./OverviewQuickLinks"; |
Derick Montague | 186ce2e | 2019-12-05 08:14:14 -0600 | [diff] [blame] | 91 | import OverviewEvents from "./OverviewEvents"; |
Yoshie Muranaka | 8d12910 | 2019-12-19 09:51:55 -0800 | [diff] [blame] | 92 | import PageTitle from "../../components/Global/PageTitle"; |
| 93 | import PageSection from "../../components/Global/PageSection"; |
Dixsie Wolmers | f65ee34 | 2020-01-22 19:47:56 -0600 | [diff] [blame^] | 94 | import { mapState } from "vuex"; |
Dixsie Wolmers | 97d86b3 | 2019-12-02 05:07:57 -0600 | [diff] [blame] | 95 | export default { |
| 96 | name: "Overview", |
| 97 | components: { |
Dixsie Wolmers | f65ee34 | 2020-01-22 19:47:56 -0600 | [diff] [blame^] | 98 | OverviewQuickLinks, |
| 99 | OverviewEvents, |
Yoshie Muranaka | 8d12910 | 2019-12-19 09:51:55 -0800 | [diff] [blame] | 100 | PageTitle, |
| 101 | PageSection |
Dixsie Wolmers | 97d86b3 | 2019-12-02 05:07:57 -0600 | [diff] [blame] | 102 | }, |
Dixsie Wolmers | f65ee34 | 2020-01-22 19:47:56 -0600 | [diff] [blame^] | 103 | 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 Wolmers | 97d86b3 | 2019-12-02 05:07:57 -0600 | [diff] [blame] | 127 | } |
| 128 | }; |
| 129 | </script> |