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 | 97d86b3 | 2019-12-02 05:07:57 -0600 | [diff] [blame] | 4 | <b-row> |
Gunnar Mills | f70db21 | 2020-01-28 20:21:37 -0600 | [diff] [blame] | 5 | <b-col lg="8" sm="12"> |
Derick Montague | 09e45cd | 2020-01-23 15:45:57 -0600 | [diff] [blame^] | 6 | <page-section section-title="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> |
Derick Montague | 09e45cd | 2020-01-23 15:45:57 -0600 | [diff] [blame^] | 33 | </page-section> |
| 34 | <page-section section-title="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> |
Derick Montague | 09e45cd | 2020-01-23 15:45:57 -0600 | [diff] [blame^] | 51 | <dd v-for="ip in ipAddress" :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> |
Derick Montague | 09e45cd | 2020-01-23 15:45:57 -0600 | [diff] [blame^] | 61 | </page-section> |
| 62 | <page-section section-title="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> |
Derick Montague | 09e45cd | 2020-01-23 15:45:57 -0600 | [diff] [blame^] | 77 | </page-section> |
Dixsie Wolmers | 97d86b3 | 2019-12-02 05:07:57 -0600 | [diff] [blame] | 78 | </b-col> |
Gunnar Mills | f70db21 | 2020-01-28 20:21:37 -0600 | [diff] [blame] | 79 | <b-col lg="4" sm="12"> |
Derick Montague | 09e45cd | 2020-01-23 15:45:57 -0600 | [diff] [blame^] | 80 | <overview-quick-links /> |
Gunnar Mills | f70db21 | 2020-01-28 20:21:37 -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> |