This removes some files which are not needed any longer.
Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
+++ /dev/null
-
-system_1 = {
-
- 'metadata': {
- 'name': 'xx',
- 'manufacturer': 'Dell',
- 'model': 'HP PowerEdge',
- 'chassis': 'xxx',
- 'xxx': '',
- },
-
- 'status': {
- 'State': 'Enabled',
- 'Health': 'OK'
- },
-
- 'processors': [{
- 'description': '',
- 'cores': '',
- 'threads': '',
- 'type': '',
- 'model': '',
- 'temperature': '',
- 'status': {
- 'State': 'Enabled',
- 'Health': 'OK'
- }
- }],
-
- 'memory': {
- 'description': '',
- 'total': 'xx',
- 'status': {
- 'State': 'Enabled',
- 'Health': 'OK'
- },
- },
-
- 'network': {
- 'interfaces': [
- {
- 'type': 'ethernet',
- 'description': 'my ethertnet interface',
- 'name': 'name of the interface',
- 'description': 'description of the interface',
- 'speed_mbps': 'xxx',
- 'status': {
- 'State': 'Enabled',
- 'Health': 'OK'
- },
- }
- ]
- },
-
- 'storage': {
- 'drives': [
- {
- 'device': 'devc',
- 'description': 'Milk, Cheese, Bread, Fruit, Vegetables',
- 'serial_number': 'xxxxx',
- 'location': '1I:x:y',
- 'interface_type': 'SATA',
- 'model': 'Buy groceries',
- 'type': 'ssd|rotate|nvme',
- 'capacity_bytes': '',
- 'usage_bytes': '',
- 'status': {
- 'State': 'Enabled',
- 'Health': 'OK'
- },
- }
- ]
- },
-
- 'power':
- [{
- 'type': 'xx',
- 'manufacturer': 'xxx',
- 'model': 'xx',
- 'properties': {},
- 'power_control': 'xx',
- 'status': {
- 'State': 'Enabled',
- 'Health': 'OK'
- }
- }],
-
- 'thermal': {
- 'fans': [
- {
- 'id': 1,
- 'status': {
- 'State': 'Enabled',
- 'Health': 'OK'
- }
- }
- ]
- },
-}
+++ /dev/null
-#!/usr/bin/env python3
-"""
-License: MIT License
-Copyright (c) 2023 Miel Donkers
-
-Very simple HTTP server in python for logging requests
-Usage::
- ./server.py [<port>]
-"""
-from http.server import BaseHTTPRequestHandler, HTTPServer
-import logging
-
-class S(BaseHTTPRequestHandler):
- def _set_response(self):
- self.send_response(200)
- self.send_header('Content-type', 'text/html')
- self.end_headers()
-
- def do_GET(self):
- logging.info("GET request,\nPath: %s\nHeaders:\n%s\n", str(self.path), str(self.headers))
- self._set_response()
- self.wfile.write("GET request for {}".format(self.path).encode('utf-8'))
-
- def do_POST(self):
- content_length = int(self.headers['Content-Length']) # <--- Gets the size of data
- post_data = self.rfile.read(content_length) # <--- Gets the data itself
- logging.info("POST request,\nPath: %s\nHeaders:\n%s\n\nBody:\n%s\n",
- str(self.path), str(self.headers), post_data.decode('utf-8'))
-
- self._set_response()
- self.wfile.write("POST request for {}".format(self.path).encode('utf-8'))
-
-def run(server_class=HTTPServer, handler_class=S, port=8000):
- logging.basicConfig(level=logging.INFO)
- server_address = ('', port)
- httpd = server_class(server_address, handler_class)
- logging.info(f'Starting httpd on port {port}...\n')
- try:
- httpd.serve_forever()
- except KeyboardInterrupt:
- pass
- httpd.server_close()
- logging.info('Stopping httpd...\n')
-
-if __name__ == '__main__':
- from sys import argv
-
- if len(argv) == 2:
- run(port=int(argv[1]))
- else:
- run()
+++ /dev/null
-{
- '@odata.context': '/redfish/v1/$metadata#Systems/Members/1/EthernetInterfaces/Members/$entity',
- '@odata.id': '/redfish/v1/Systems/1/EthernetInterfaces/1/',
- '@odata.type': '#EthernetInterface.1.0.0.EthernetInterface',
- 'Id': '1',
- 'Name': 'System Ethernet Interface',
- 'Oem': {
- 'Hp': {
- '@odata.type': '#HpiLOEthernetNetworkInterface.1.0.0.HpiLOEthernetNetworkInterface',
- 'DHCPv4': None,
- 'DHCPv6': None,
- 'IPv4': None,
- 'IPv6': None,
- 'SharedNetworkPortOptions': None
- }
- },
- 'SettingsResult': None,
- 'Status': None
-}
+++ /dev/null
-{
- '@odata.context': '/redfish/v1/$metadata#Systems/Members/1/EthernetInterfaces',
- '@odata.id': '/redfish/v1/Systems/1/EthernetInterfaces/',
- '@odata.type': '#EthernetInterfaceCollection.EthernetInterfaceCollection',
- 'Description': 'Collection of System Network Interfaces',
- 'Members': [{
- '@odata.id': '/redfish/v1/Systems/1/EthernetInterfaces/1/'
- }, {
- '@odata.id': '/redfish/v1/Systems/1/EthernetInterfaces/2/'
- }, {
- '@odata.id': '/redfish/v1/Systems/1/EthernetInterfaces/3/'
- }, {
- '@odata.id': '/redfish/v1/Systems/1/EthernetInterfaces/4/'
- }, {
- '@odata.id': '/redfish/v1/Systems/1/EthernetInterfaces/5/'
- }, {
- '@odata.id': '/redfish/v1/Systems/1/EthernetInterfaces/6/'
- }],
- 'Members@odata.count': 6,
- 'Name': 'System Network Interfaces'
-}
+++ /dev/null
-{
- '@odata.context': '/redfish/v1/$metadata#Systems/Members/1/Memory',
- '@odata.id': '/redfish/v1/Systems/1/Memory/',
- '@odata.type': '#HpMemoryCollection.HpMemoryCollection',
- 'Description': 'Memory DIMM Collection',
- 'Members': [{
- '@odata.id': '/redfish/v1/Systems/1/Memory/proc1dimm1/'
- }, {
- '@odata.id': '/redfish/v1/Systems/1/Memory/proc1dimm2/'
- }, {
- '@odata.id': '/redfish/v1/Systems/1/Memory/proc1dimm3/'
- }, {
- '@odata.id': '/redfish/v1/Systems/1/Memory/proc1dimm4/'
- }, {
- '@odata.id': '/redfish/v1/Systems/1/Memory/proc1dimm5/'
- }, {
- '@odata.id': '/redfish/v1/Systems/1/Memory/proc1dimm6/'
- }, {
- '@odata.id': '/redfish/v1/Systems/1/Memory/proc1dimm7/'
- }, {
- '@odata.id': '/redfish/v1/Systems/1/Memory/proc1dimm8/'
- }, {
- '@odata.id': '/redfish/v1/Systems/1/Memory/proc1dimm9/'
- }, {
- '@odata.id': '/redfish/v1/Systems/1/Memory/proc1dimm10/'
- }, {
- '@odata.id': '/redfish/v1/Systems/1/Memory/proc1dimm11/'
- }, {
- '@odata.id': '/redfish/v1/Systems/1/Memory/proc1dimm12/'
- }, {
- '@odata.id': '/redfish/v1/Systems/1/Memory/proc2dimm1/'
- }, {
- '@odata.id': '/redfish/v1/Systems/1/Memory/proc2dimm2/'
- }, {
- '@odata.id': '/redfish/v1/Systems/1/Memory/proc2dimm3/'
- }, {
- '@odata.id': '/redfish/v1/Systems/1/Memory/proc2dimm4/'
- }, {
- '@odata.id': '/redfish/v1/Systems/1/Memory/proc2dimm5/'
- }, {
- '@odata.id': '/redfish/v1/Systems/1/Memory/proc2dimm6/'
- }, {
- '@odata.id': '/redfish/v1/Systems/1/Memory/proc2dimm7/'
- }, {
- '@odata.id': '/redfish/v1/Systems/1/Memory/proc2dimm8/'
- }, {
- '@odata.id': '/redfish/v1/Systems/1/Memory/proc2dimm9/'
- }, {
- '@odata.id': '/redfish/v1/Systems/1/Memory/proc2dimm10/'
- }, {
- '@odata.id': '/redfish/v1/Systems/1/Memory/proc2dimm11/'
- }, {
- '@odata.id': '/redfish/v1/Systems/1/Memory/proc2dimm12/'
- }],
- 'Members@odata.count': 24,
- 'Name': 'Memory DIMM Collection',
- 'Oem': {
- 'Hp': {
- '@odata.type': '#HpAdvancedMemoryProtection.1.0.0.HpAdvancedMemoryProtection',
- 'AmpModeActive': 'AdvancedECC',
- 'AmpModeStatus': 'AdvancedECC',
- 'AmpModeSupported': ['AdvancedECC', 'OnlineSpareRank']
- }
- }
-}
+++ /dev/null
-{
- '@odata.context': '/redfish/v1/$metadata#Systems/Members/1/Memory/Members/$entity',
- '@odata.id': '/redfish/v1/Systems/1/Memory/proc1dimm1/',
- '@odata.type': '#HpMemory.1.0.0.HpMemory',
- 'DIMMStatus': 'GoodInUse',
- 'DIMMTechnology': 'RDIMM',
- 'DIMMType': 'DDR3',
- 'DataWidth': 64,
- 'ErrorCorrection': 'SingleBitECC',
- 'HPMemoryType': 'HPSmartMemory',
- 'Id': 'proc1dimm1',
- 'Manufacturer': 'HP ',
- 'MaximumFrequencyMHz': 1600,
- 'MinimumVoltageVoltsX10': 13,
- 'Name': 'proc1dimm1',
- 'PartNumber': '713756-081 ',
- 'Rank': 2,
- 'SizeMB': 16384,
- 'SocketLocator': 'PROC 1 DIMM 1 ',
- 'TotalWidth': 72
-}
+++ /dev/null
-{
- '@odata.context': '/redfish/v1/$metadata#Systems/Members/1/Processors/Members/$entity',
- '@odata.id': '/redfish/v1/Systems/1/Processors/1/',
- '@odata.type': '#Processor.1.0.0.Processor',
- 'Id': '1',
- 'InstructionSet': 'x86-64',
- 'Manufacturer': 'Intel',
- 'MaxSpeedMHz': 4800,
- 'Model': ' Intel(R) Xeon(R) CPU E5-2640 v2 @ 2.00GHz ',
- 'Name': 'Processors',
- 'Oem': {
- 'Hp': {
- '@odata.type': '#HpProcessorExt.1.0.0.HpProcessorExt',
- 'AssetTag': '',
- 'Cache': [{
- 'Associativity': '8waySetAssociative',
- 'CacheSpeedns': 0,
- 'CurrentSRAMType': ['Burst'],
- 'EccType': 'SingleBitECC',
- 'InstalledSizeKB': 256,
- 'Location': 'Internal',
- 'MaximumSizeKB': 384,
- 'Name': 'Processor 1 Internal L1 Cache',
- 'Policy': 'WriteBack',
- 'Socketed': False,
- 'SupportedSRAMType': ['Burst'],
- 'SystemCacheType': 'Data'
- }, {
- 'Associativity': '8waySetAssociative',
- 'CacheSpeedns': 0,
- 'CurrentSRAMType': ['Burst'],
- 'EccType': 'SingleBitECC',
- 'InstalledSizeKB': 2048,
- 'Location': 'Internal',
- 'MaximumSizeKB': 3072,
- 'Name': 'Processor 1 Internal L2 Cache',
- 'Policy': 'WriteBack',
- 'Socketed': False,
- 'SupportedSRAMType': ['Burst'],
- 'SystemCacheType': None
- }, {
- 'Associativity': '20waySetAssociative',
- 'CacheSpeedns': 0,
- 'CurrentSRAMType': ['Burst'],
- 'EccType': 'SingleBitECC',
- 'InstalledSizeKB': 20480,
- 'Location': 'Internal',
- 'MaximumSizeKB': 30720,
- 'Name': 'Processor 1 Internal L3 Cache',
- 'Policy': 'WriteBack',
- 'Socketed': False,
- 'SupportedSRAMType': ['Burst'],
- 'SystemCacheType': None
- }],
- 'Characteristics': ['64Bit'],
- 'ConfigStatus': {
- 'Populated': True,
- 'State': 'Enabled'
- },
- 'CoresEnabled': 8,
- 'ExternalClockMHz': 100,
- 'MicrocodePatches': [{
- 'CpuId': '0x000206D2',
- 'Date': '2011-05-03T00:00:00Z',
- 'PatchId': '0x8000020C'
- }, {
- 'CpuId': '0x000206D3',
- 'Date': '2011-04-20T00:00:00Z',
- 'PatchId': '0x80000304'
- }, {
- 'CpuId': '0x000206D5',
- 'Date': '2011-10-13T00:00:00Z',
- 'PatchId': '0x00000513'
- }, {
- 'CpuId': '0x000206D6',
- 'Date': '2018-01-30T00:00:00Z',
- 'PatchId': '0x0000061C'
- }, {
- 'CpuId': '0x000206D7',
- 'Date': '2018-01-26T00:00:00Z',
- 'PatchId': '0x00000713'
- }, {
- 'CpuId': '0x000306E2',
- 'Date': '2013-03-21T00:00:00Z',
- 'PatchId': '0x0000020D'
- }, {
- 'CpuId': '0x000306E3',
- 'Date': '2013-03-21T00:00:00Z',
- 'PatchId': '0x00000308'
- }, {
- 'CpuId': '0x000306E4',
- 'Date': '2018-01-25T00:00:00Z',
- 'PatchId': '0x0000042C'
- }],
- 'PartNumber': '',
- 'RatedSpeedMHz': 2000,
- 'SerialNumber': '',
- 'VoltageVoltsX10': 14
- }
- },
- 'ProcessorArchitecture': 'x86',
- 'ProcessorId': {
- 'EffectiveFamily': '179',
- 'EffectiveModel': '14',
- 'IdentificationRegisters': '0x06e40003fbffbfeb',
- 'MicrocodeInfo': None,
- 'Step': '4',
- 'VendorId': 'Intel'
- },
- 'ProcessorType': 'CPU',
- 'Socket': 'Proc 1',
- 'Status': {
- 'Health': 'OK'
- },
- 'TotalCores': 8,
- 'TotalThreads': 16
-}
+++ /dev/null
-{
- '@odata.context': '/redfish/v1/$metadata#Systems/Members/1/Processors',
- '@odata.id': '/redfish/v1/Systems/1/Processors/',
- '@odata.type': '#ProcessorCollection.ProcessorCollection',
- 'Description': 'Processors view',
- 'Members': [{
- '@odata.id': '/redfish/v1/Systems/1/Processors/1/'
- }, {
- '@odata.id': '/redfish/v1/Systems/1/Processors/2/'
- }],
- 'Members@odata.count': 2,
- 'Name': 'Processors Collection'
-}
+++ /dev/null
-{
- '@odata.context': '/redfish/v1/$metadata#Systems/Members/1/EthernetInterfaces/Members/$entity',
- '@odata.id': '/redfish/v1/Systems/1/EthernetInterfaces/1/',
- '@odata.type': '#EthernetInterface.1.0.0.EthernetInterface',
- 'Id': '1',
- 'Name': 'System Ethernet Interface',
- 'Oem': {
- 'Hp': {
- '@odata.type': '#HpiLOEthernetNetworkInterface.1.0.0.HpiLOEthernetNetworkInterface',
- 'DHCPv4': None,
- 'DHCPv6': None,
- 'IPv4': None,
- 'IPv6': None,
- 'SharedNetworkPortOptions': None
- }
- },
- 'SettingsResult': None,
- 'Status': None
-}
+++ /dev/null
-{
- '@odata.context': '/redfish/v1/$metadata#Systems/Members/$entity',
- '@odata.id': '/redfish/v1/Systems/1/',
- '@odata.type': '#ComputerSystem.1.0.1.ComputerSystem',
- 'Actions': {
- '#ComputerSystem.Reset': {
- 'ResetType@Redfish.AllowableValues': ['On', 'ForceOff', 'ForceRestart', 'Nmi', 'PushPowerButton'],
- 'target': '/redfish/v1/Systems/1/Actions/ComputerSystem.Reset/'
- }
- },
- 'AssetTag': ' ',
- 'BiosVersion': 'P71 01/22/2018',
- 'Boot': {
- 'BootSourceOverrideEnabled': 'Disabled',
- 'BootSourceOverrideSupported': ['None', 'Floppy', 'Cd', 'Hdd', 'Usb', 'Utilities', 'BiosSetup', 'Pxe'],
- 'BootSourceOverrideTarget': 'None'
- },
- 'Description': 'Computer System View',
- 'EthernetInterfaces': {
- '@odata.id': '/redfish/v1/Systems/1/EthernetInterfaces/'
- },
- 'HostName': 'hive1',
- 'Id': '1',
- 'IndicatorLED': 'Off',
- 'Links': {
- 'Chassis': [{
- '@odata.id': '/redfish/v1/Chassis/1/'
- }],
- 'ManagedBy': [{
- '@odata.id': '/redfish/v1/Managers/1/'
- }]
- },
- 'LogServices': {
- '@odata.id': '/redfish/v1/Systems/1/LogServices/'
- },
- 'Manufacturer': 'HPE',
- 'MemorySummary': {
- 'Status': {
- 'HealthRollup': 'OK'
- },
- 'TotalSystemMemoryGiB': 384
- },
- 'Model': 'ProLiant DL360p Gen8',
- 'Name': 'Computer System',
- 'Oem': {
- 'Hp': {
- '@odata.type': '#HpComputerSystemExt.1.2.2.HpComputerSystemExt',
- 'Actions': {
- '#HpComputerSystemExt.PowerButton': {
- 'PushType@Redfish.AllowableValues': ['Press', 'PressAndHold'],
- 'target': '/redfish/v1/Systems/1/Actions/Oem/Hp/ComputerSystemExt.PowerButton/'
- },
- '#HpComputerSystemExt.SystemReset': {
- 'ResetType@Redfish.AllowableValues': ['ColdBoot', 'AuxCycle'],
- 'target': '/redfish/v1/Systems/1/Actions/Oem/Hp/ComputerSystemExt.SystemReset/'
- }
- },
- 'Bios': {
- 'Backup': {
- 'Date': '07/01/2015',
- 'Family': 'P71',
- 'VersionString': 'P71 07/01/2015'
- },
- 'Bootblock': {
- 'Date': '03/05/2013',
- 'Family': 'P71',
- 'VersionString': 'P71 03/05/2013'
- },
- 'Current': {
- 'Date': '01/22/2018',
- 'Family': 'P71',
- 'VersionString': 'P71 01/22/2018'
- },
- 'UefiClass': 0
- },
- 'DeviceDiscoveryComplete': {
- 'AMSDeviceDiscovery': 'NoAMS',
- 'DeviceDiscovery': 'vMainDeviceDiscoveryComplete',
- 'SmartArrayDiscovery': 'Complete'
- },
- 'IntelligentProvisioningIndex': 3,
- 'IntelligentProvisioningLocation': 'System Board',
- 'IntelligentProvisioningVersion': 'N/A',
- 'Links': {
- 'BIOS': {
- '@odata.id': '/redfish/v1/Systems/1/Bios/'
- },
- 'EthernetInterfaces': {
- '@odata.id': '/redfish/v1/Systems/1/EthernetInterfaces/'
- },
- 'FirmwareInventory': {
- '@odata.id': '/redfish/v1/Systems/1/FirmwareInventory/'
- },
- 'Memory': {
- '@odata.id': '/redfish/v1/Systems/1/Memory/'
- },
- 'NetworkAdapters': {
- '@odata.id': '/redfish/v1/Systems/1/NetworkAdapters/'
- },
- 'PCIDevices': {
- '@odata.id': '/redfish/v1/Systems/1/PCIDevices/'
- },
- 'PCISlots': {
- '@odata.id': '/redfish/v1/Systems/1/PCISlots/'
- },
- 'SmartStorage': {
- '@odata.id': '/redfish/v1/Systems/1/SmartStorage/'
- },
- 'SoftwareInventory': {
- '@odata.id': '/redfish/v1/Systems/1/SoftwareInventory/'
- }
- },
- 'PostState': 'FinishedPost',
- 'PowerAllocationLimit': 1500,
- 'PowerAutoOn': 'Restore',
- 'PowerOnDelay': 'Minimum',
- 'PowerRegulatorMode': 'Dynamic',
- 'PowerRegulatorModesSupported': ['OSControl', 'Dynamic', 'Max', 'Min'],
- 'TrustedModules': [{
- 'Status': 'NotPresent'
- }],
- 'VirtualProfile': 'Inactive'
- }
- },
- 'PowerState': 'On',
- 'ProcessorSummary': {
- 'Count': 2,
- 'Model': ' Intel(R) Xeon(R) CPU E5-2640 v2 @ 2.00GHz ',
- 'Status': {
- 'HealthRollup': 'OK'
- }
- },
- 'Processors': {
- '@odata.id': '/redfish/v1/Systems/1/Processors/'
- },
- 'SKU': '654081-B21 ',
- 'SerialNumber': 'CZJ4320228 ',
- 'Status': {
- 'Health': 'Warning',
- 'State': 'Enabled'
- },
- 'SystemType': 'Physical',
- 'UUID': '30343536-3138-5A43-4A34-333230323238'
-}
\ No newline at end of file