Dixsie Wolmers | 97d86b3 | 2019-12-02 05:07:57 -0600 | [diff] [blame] | 1 | <template> |
| 2 | <b-container fluid> |
Derick Montague | 09e45cd | 2020-01-23 15:45:57 -0600 | [diff] [blame] | 3 | <page-title /> |
Dixsie Wolmers | 537c6cb | 2020-01-06 17:22:25 -0500 | [diff] [blame^] | 4 | <div class="quicklinks-section"> |
| 5 | <overview-quick-links /> |
| 6 | </div> |
Dixsie Wolmers | 97d86b3 | 2019-12-02 05:07:57 -0600 | [diff] [blame] | 7 | <b-row> |
Dixsie Wolmers | 537c6cb | 2020-01-06 17:22:25 -0500 | [diff] [blame^] | 8 | <b-col> |
Derick Montague | 09e45cd | 2020-01-23 15:45:57 -0600 | [diff] [blame] | 9 | <page-section section-title="Server information"> |
Dixsie Wolmers | 97d86b3 | 2019-12-02 05:07:57 -0600 | [diff] [blame] | 10 | <b-row> |
| 11 | <b-col sm="6"> |
| 12 | <dl> |
Dixsie Wolmers | f65ee34 | 2020-01-22 19:47:56 -0600 | [diff] [blame] | 13 | <dt>Model</dt> |
| 14 | <dd>{{ serverModel }}</dd> |
Dixsie Wolmers | 97d86b3 | 2019-12-02 05:07:57 -0600 | [diff] [blame] | 15 | </dl> |
| 16 | </b-col> |
| 17 | <b-col sm="6"> |
| 18 | <dl> |
Dixsie Wolmers | f65ee34 | 2020-01-22 19:47:56 -0600 | [diff] [blame] | 19 | <dt>Manufacturer</dt> |
| 20 | <dd>{{ serverManufacturer }}</dd> |
Dixsie Wolmers | 97d86b3 | 2019-12-02 05:07:57 -0600 | [diff] [blame] | 21 | </dl> |
| 22 | </b-col> |
| 23 | <b-col sm="6"> |
| 24 | <dl> |
Dixsie Wolmers | f65ee34 | 2020-01-22 19:47:56 -0600 | [diff] [blame] | 25 | <dt>Serial number</dt> |
| 26 | <dd>{{ serverSerialNumber }}</dd> |
Dixsie Wolmers | 97d86b3 | 2019-12-02 05:07:57 -0600 | [diff] [blame] | 27 | </dl> |
| 28 | </b-col> |
| 29 | <b-col sm="6"> |
| 30 | <dl> |
Dixsie Wolmers | f65ee34 | 2020-01-22 19:47:56 -0600 | [diff] [blame] | 31 | <dt>Firmware version</dt> |
| 32 | <dd>{{ hostActiveVersion }}</dd> |
Dixsie Wolmers | 97d86b3 | 2019-12-02 05:07:57 -0600 | [diff] [blame] | 33 | </dl> |
| 34 | </b-col> |
| 35 | </b-row> |
Derick Montague | 09e45cd | 2020-01-23 15:45:57 -0600 | [diff] [blame] | 36 | </page-section> |
| 37 | <page-section section-title="BMC information"> |
Dixsie Wolmers | 97d86b3 | 2019-12-02 05:07:57 -0600 | [diff] [blame] | 38 | <b-row> |
| 39 | <b-col sm="6"> |
| 40 | <dl> |
Dixsie Wolmers | f65ee34 | 2020-01-22 19:47:56 -0600 | [diff] [blame] | 41 | <dt>Hostname</dt> |
| 42 | <dd>{{ hostName }}</dd> |
Dixsie Wolmers | 97d86b3 | 2019-12-02 05:07:57 -0600 | [diff] [blame] | 43 | </dl> |
| 44 | </b-col> |
| 45 | <b-col sm="6"> |
| 46 | <dl> |
Dixsie Wolmers | f65ee34 | 2020-01-22 19:47:56 -0600 | [diff] [blame] | 47 | <dt>MAC address</dt> |
| 48 | <dd>{{ macAddress }}</dd> |
Dixsie Wolmers | 97d86b3 | 2019-12-02 05:07:57 -0600 | [diff] [blame] | 49 | </dl> |
| 50 | </b-col> |
| 51 | <b-col sm="6"> |
| 52 | <dl> |
Dixsie Wolmers | f65ee34 | 2020-01-22 19:47:56 -0600 | [diff] [blame] | 53 | <dt>IP address</dt> |
Derick Montague | 09e45cd | 2020-01-23 15:45:57 -0600 | [diff] [blame] | 54 | <dd v-for="ip in ipAddress" :key="ip.id">{{ ip }}</dd> |
Dixsie Wolmers | 97d86b3 | 2019-12-02 05:07:57 -0600 | [diff] [blame] | 55 | </dl> |
| 56 | </b-col> |
| 57 | <b-col sm="6"> |
| 58 | <dl> |
Dixsie Wolmers | f65ee34 | 2020-01-22 19:47:56 -0600 | [diff] [blame] | 59 | <dt>Firmware version</dt> |
| 60 | <dd>{{ bmcActiveVersion }}</dd> |
Dixsie Wolmers | 97d86b3 | 2019-12-02 05:07:57 -0600 | [diff] [blame] | 61 | </dl> |
| 62 | </b-col> |
| 63 | </b-row> |
Derick Montague | 09e45cd | 2020-01-23 15:45:57 -0600 | [diff] [blame] | 64 | </page-section> |
| 65 | <page-section section-title="Power consumption"> |
Dixsie Wolmers | 97d86b3 | 2019-12-02 05:07:57 -0600 | [diff] [blame] | 66 | <b-row> |
| 67 | <b-col sm="6"> |
| 68 | <dl> |
Dixsie Wolmers | f65ee34 | 2020-01-22 19:47:56 -0600 | [diff] [blame] | 69 | <dt>Power consumption</dt> |
| 70 | <dd>{{ powerConsumption }}</dd> |
Dixsie Wolmers | 97d86b3 | 2019-12-02 05:07:57 -0600 | [diff] [blame] | 71 | </dl> |
| 72 | </b-col> |
| 73 | <b-col sm="6"> |
| 74 | <dl> |
Dixsie Wolmers | f65ee34 | 2020-01-22 19:47:56 -0600 | [diff] [blame] | 75 | <dt>Power cap</dt> |
| 76 | <dd>{{ powerCapValue }}</dd> |
Dixsie Wolmers | 97d86b3 | 2019-12-02 05:07:57 -0600 | [diff] [blame] | 77 | </dl> |
| 78 | </b-col> |
| 79 | </b-row> |
Derick Montague | 09e45cd | 2020-01-23 15:45:57 -0600 | [diff] [blame] | 80 | </page-section> |
Dixsie Wolmers | 97d86b3 | 2019-12-02 05:07:57 -0600 | [diff] [blame] | 81 | </b-col> |
Dixsie Wolmers | 97d86b3 | 2019-12-02 05:07:57 -0600 | [diff] [blame] | 82 | </b-row> |
Derick Montague | 09e45cd | 2020-01-23 15:45:57 -0600 | [diff] [blame] | 83 | <page-section section-title="High priority events"> |
| 84 | <overview-events /> |
| 85 | </page-section> |
Dixsie Wolmers | 97d86b3 | 2019-12-02 05:07:57 -0600 | [diff] [blame] | 86 | </b-container> |
| 87 | </template> |
| 88 | |
| 89 | <script> |
Derick Montague | e2fd156 | 2019-12-20 13:26:53 -0600 | [diff] [blame] | 90 | import OverviewQuickLinks from './OverviewQuickLinks'; |
| 91 | import OverviewEvents from './OverviewEvents'; |
| 92 | import PageTitle from '../../components/Global/PageTitle'; |
| 93 | import PageSection from '../../components/Global/PageSection'; |
| 94 | import { mapState } from 'vuex'; |
Dixsie Wolmers | 97d86b3 | 2019-12-02 05:07:57 -0600 | [diff] [blame] | 95 | export default { |
Derick Montague | e2fd156 | 2019-12-20 13:26:53 -0600 | [diff] [blame] | 96 | name: 'Overview', |
Dixsie Wolmers | 97d86b3 | 2019-12-02 05:07:57 -0600 | [diff] [blame] | 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 | 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 Montague | 09e45cd | 2020-01-23 15:45:57 -0600 | [diff] [blame] | 115 | created() { |
| 116 | this.getOverviewInfo(); |
| 117 | }, |
Dixsie Wolmers | f65ee34 | 2020-01-22 19:47:56 -0600 | [diff] [blame] | 118 | methods: { |
| 119 | getOverviewInfo() { |
Derick Montague | e2fd156 | 2019-12-20 13:26:53 -0600 | [diff] [blame] | 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'); |
Dixsie Wolmers | f65ee34 | 2020-01-22 19:47:56 -0600 | [diff] [blame] | 126 | } |
Dixsie Wolmers | 97d86b3 | 2019-12-02 05:07:57 -0600 | [diff] [blame] | 127 | } |
| 128 | }; |
| 129 | </script> |
Dixsie Wolmers | 537c6cb | 2020-01-06 17:22:25 -0500 | [diff] [blame^] | 130 | |
| 131 | <style lang="scss" scoped> |
| 132 | .quicklinks-section { |
| 133 | margin-bottom: $spacer * 2; |
| 134 | margin-left: -1rem; |
| 135 | } |
| 136 | </style> |