|
| 1 | +# MIT License |
| 2 | +# (C) Copyright 2022 Hewlett Packard Enterprise Development LP. |
| 3 | +# |
| 4 | +# systemInfo : System Information |
| 5 | + |
| 6 | + |
| 7 | +def get_appliance_system_info( |
| 8 | + self, |
| 9 | +) -> dict: |
| 10 | + """Get system information on the appliance. |
| 11 | +
|
| 12 | + .. list-table:: |
| 13 | + :header-rows: 1 |
| 14 | +
|
| 15 | + * - Swagger Section |
| 16 | + - Method |
| 17 | + - Endpoint |
| 18 | + * - systemInfo |
| 19 | + - GET |
| 20 | + - /systemInfo |
| 21 | +
|
| 22 | + :return: Returns dictionary of appliance system information \n |
| 23 | + * keyword **hostName** (`str`): Appliance hostname |
| 24 | + * keyword **applianceid** (`int`): Appliance integer ID |
| 25 | + * keyword **model** (`str`): Appliance Model (longform) |
| 26 | + * keyword **modelShort** (`str`): Appliance Model (shortform) |
| 27 | + * keyword **status** (`str`): Appliance Status |
| 28 | + * keyword **uptime** (`int`): Appliance uptime in milliseconds |
| 29 | + * keyword **uptimeString** (`str`): Appliance uptime as string, |
| 30 | + e.g., ``56d 13h 15m 29s`` |
| 31 | + * keyword **datetime** (`str`): Current datetime on appliance, |
| 32 | + e.g., ``2022/09/28 13:04:47 Etc/UTC`` |
| 33 | + * keyword **timezone** (`str`): Timezone, e.g., ``Etc/UTC`` |
| 34 | + * keyword **gmtOffset** (`int`): GMT offset value |
| 35 | + * keyword **release** (`str`): Software release with ECOS, |
| 36 | + e.g., ``ECOS 9.1.1.3_91760`` |
| 37 | + * keyword **releaseWithoutPrefix** (`str`): Software release, |
| 38 | + numbers only, e.g., ``9.1.1.3_91760`` |
| 39 | + * keyword **serial** (`str`): Appliance serial number |
| 40 | + * keyword **uuid** (`str`): Appliance uuid |
| 41 | + * keyword **deploymentMode** (`str`): Appliance deployment mode, |
| 42 | + e.g., ``router`` |
| 43 | + * keyword **inlineRouter** (`bool`): ``True`` if appliance is in |
| 44 | + inline-router mode |
| 45 | + * keyword **licenseRequired** (`bool`): Legacy license |
| 46 | + requirement check |
| 47 | + * keyword **isLicenseInstalled** (`bool`): Legacy license |
| 48 | + install check |
| 49 | + * keyword **licenseExpiryDate** (`str`): Legacy license expire |
| 50 | + date |
| 51 | + * keyword **licenseExpirationDaysLeft** (`int`): Legacy license |
| 52 | + expire days left |
| 53 | + * keyword **hasUnsavedChanges** (`bool`): ``True`` if appliance |
| 54 | + has unsaved configuration changes |
| 55 | + * keyword **rebootRequired** (`bool`): ``True`` if appliance |
| 56 | + requires reboot |
| 57 | + * keyword **biosVersion** (`str`): BIOS version on appliance |
| 58 | + * keyword **alarmSummary** (`dict`): Alarm summary \n |
| 59 | + * keyword **num_cleared** (`int`): Number of alarms cleared |
| 60 | + * keyword **num_critical** (`int`): Number of critical |
| 61 | + alarms |
| 62 | + * keyword **num_equipment_outstanding** (`int`): Number of |
| 63 | + hardware alarms outstanding |
| 64 | + * keyword **num_major** (`int`): Number of major alarms |
| 65 | + * keyword **num_minor** (`int`): Number of minor alarms |
| 66 | + * keyword **num_outstanding** (`int`): Number of |
| 67 | + outstanding alarms |
| 68 | + * keyword **num_raise_ignore** (`int`): Number of raise |
| 69 | + ignore |
| 70 | + * keyword **num_software_outstanding** (`int`): Number of |
| 71 | + software alarms outstanding |
| 72 | + * keyword **num_tca_outstanding** (`int`): Number of TCA |
| 73 | + alarms outstanding |
| 74 | + * keyword **num_traffic_class_outstanding** (`int`): Number |
| 75 | + of traffic class alarms outstanding |
| 76 | + * keyword **num_tunnel_outstanding** (`int`): Number of |
| 77 | + tunnel alarms outstanding |
| 78 | + * keyword **num_warning** (`int`): Number of warning alarms |
| 79 | + :rtype: dict |
| 80 | + """ |
| 81 | + return self._get("/systemInfo") |
0 commit comments