1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594
|
# Copyright (C) 2017 Intel Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
BIOS_DATA = ("""
# dmidecode 3.0
Getting SMBIOS data from sysfs.
SMBIOS 2.7 present.
Handle 0x0000, DMI type 0, 24 bytes
Address: 0xF0000
ROM Size: 16384 kB
Characteristics:
PCI is supported
Handle 0x000B, DMI type 13, 22 bytes
BIOS Language Information
Installable Languages: 1
enUS
""", "")
BIOS_OUTPUT = {'bios': {
'Address': '0xF0000',
'Characteristics': ['PCI is supported'],
'Handle': 'Handle 0x0000, DMI type 0, 24 bytes',
'ROM Size': '16384 kB'},
'cpu': [],
'memory': {'devices': []}}
MEMORY_DATA = ("""
# dmidecode 3.0
Getting SMBIOS data from sysfs.
SMBIOS 2.7 present.
Handle 0x0038, DMI type 16, 23 bytes
Physical Memory Array
Maximum Capacity: 192 GB
Number Of Devices: 6
Handle 0x003A, DMI type 17, 40 bytes
Memory Device
Array Handle: 0x0038
Size: 16384 MB
Form Factor: DIMM
Speed: 2133 MHz
Handle 0x0044, DMI type 16, 23 bytes
Physical Memory Array
Maximum Capacity: 192 GB
Number Of Devices: 6
Handle 0x0046, DMI type 17, 40 bytes
Memory Device
Array Handle: 0x0044
Size: 16384 MB
Form Factor: DIMM
Speed: 2133 MHz
""", "")
MEMORY_OUTPUT = {
'bios': {},
'cpu': [],
'memory': {
'Maximum Capacity': '192 GB',
'Number Of Devices': 12,
'devices': [{'Array Handle': '0x0038',
'Form Factor': 'DIMM',
'Handle': 'Handle 0x003A, DMI type 17, 40 bytes',
'Size': '16384 MB',
'Speed': '2133 MHz'},
{'Array Handle': '0x0044',
'Form Factor': 'DIMM',
'Handle': 'Handle 0x0046, DMI type 17, 40 bytes',
'Size': '16384 MB',
'Speed': '2133 MHz'}]}}
CPU_DATA = ("""
# dmidecode 3.0
Getting SMBIOS data from sysfs.
SMBIOS 2.7 present.
Handle 0x0038, DMI type 4, 23 bytes
Family: Xeon
""", "")
CPU_OUTPUT = {'bios': {},
'cpu': [
{'Family': 'Xeon',
'Handle': 'Handle 0x0038, DMI type 4, 23 bytes'}],
'memory': {'devices': []}}
DMI_DATA = ("""
# dmidecode 2.12
SMBIOS 2.5 present.
Handle 0x0000, DMI type 4, 35 bytes
Processor Information
Socket Designation: J1PR
Type: Central Processor
Family: Core i7
Manufacturer: Intel(R) Corporation
ID: C2 06 02 00 FF FB EB BF
Signature: Type 0, Family 6, Model 44, Stepping 2
Flags:
FPU (Floating-point unit on-chip)
VME (Virtual mode extension)
DE (Debugging extension)
PSE (Page size extension)
TSC (Time stamp counter)
MSR (Model specific registers)
PAE (Physical address extension)
MCE (Machine check exception)
CX8 (CMPXCHG8 instruction supported)
APIC (On-chip APIC hardware supported)
SEP (Fast system call)
MTRR (Memory type range registers)
PGE (Page global enable)
MCA (Machine check architecture)
CMOV (Conditional move instruction supported)
PAT (Page attribute table)
PSE-36 (36-bit page size extension)
CLFSH (CLFLUSH instruction supported)
DS (Debug store)
ACPI (ACPI supported)
MMX (MMX technology supported)
FXSR (FXSAVE and FXSTOR instructions supported)
SSE (Streaming SIMD extensions)
SSE2 (Streaming SIMD extensions 2)
SS (Self-snoop)
HTT (Multi-threading)
TM (Thermal monitor supported)
PBE (Pending break enabled)
Version: Intel(R) Core(TM) i7 CPU X 980 @ 3.33GHz
Voltage: 1.2 V
External Clock: 135 MHz
Max Speed: 4000 MHz
Current Speed: 3381 MHz
Status: Populated, Enabled
Upgrade: Socket LGA1366
L1 Cache Handle: 0x0002
L2 Cache Handle: 0x0003
L3 Cache Handle: 0x0004
Serial Number: Not Specified
Asset Tag: Not Specified
Part Number: Not Specified
Handle 0x0005, DMI type 0, 24 bytes
BIOS Information
Vendor: Intel Corp.
Version: SOX5810J.86A.5561.2011.0516.2023
Release Date: 05/16/2011
Address: 0xF0000
Runtime Size: 64 kB
ROM Size: 2048 kB
Characteristics:
PCI is supported
BIOS is upgradeable
BIOS shadowing is allowed
Boot from CD is supported
Selectable boot is supported
EDD is supported
8042 keyboard services are supported (int 9h)
Serial services are supported (int 14h)
Printer services are supported (int 17h)
CGA/mono video services are supported (int 10h)
ACPI is supported
USB legacy is supported
ATAPI Zip drive boot is supported
BIOS boot specification is supported
Function key-initiated network boot is supported
Targeted content distribution is supported
BIOS Revision: 0.0
Firmware Revision: 0.0
Handle 0x0012, DMI type 13, 22 bytes
BIOS Language Information
Language Description Format: Abbreviated
Installable Languages: 1
enUS
Currently Installed Language: enUS
Handle 0x0014, DMI type 16, 15 bytes
Physical Memory Array
Location: System Board Or Motherboard
Use: System Memory
Error Correction Type: None
Maximum Capacity: 16 GB
Error Information Handle: Not Provided
Number Of Devices: 4
Handle 0x0016, DMI type 17, 27 bytes
Memory Device
Array Handle: 0x0014
Error Information Handle: Not Provided
Total Width: 64 bits
Data Width: 64 bits
Size: 2048 MB
Form Factor: DIMM
Set: None
Locator: J1MY
Bank Locator: CHAN A DIMM 0
Type: DDR3
Type Detail: Synchronous
Speed: 1333 MHz
Manufacturer: 0x0198
Serial Number: 0x700ECE90
Asset Tag: Unknown
Part Number: 0x393930353437312D3030312E4130304C4620
Handle 0x0017, DMI type 17, 27 bytes
Memory Device
Array Handle: 0x0014
Error Information Handle: Not Provided
Total Width: Unknown
Data Width: Unknown
Size: No Module Installed
Form Factor: DIMM
Set: None
Locator: J2MY
Bank Locator: CHAN A DIMM 1
Type: DDR3
Type Detail: Synchronous
Speed: 1333 MHz
Manufacturer: NO DIMM
Serial Number: NO DIMM
Asset Tag: NO DIMM
Part Number: NO DIMM
Handle 0x0018, DMI type 17, 27 bytes
Memory Device
Array Handle: 0x0014
Error Information Handle: Not Provided
Total Width: 64 bits
Data Width: 64 bits
Size: 2048 MB
Form Factor: DIMM
Set: None
Locator: J3MY
Bank Locator: CHAN B DIMM 0
Type: DDR3
Type Detail: Synchronous
Speed: 1333 MHz
Manufacturer: 0x0198
Serial Number: 0x700ED090
Asset Tag: Unknown
Part Number: 0x393930353437312D3030312E4130304C4620
Handle 0x0019, DMI type 17, 27 bytes
Memory Device
Array Handle: 0x0014
Error Information Handle: Not Provided
Total Width: 64 bits
Data Width: 64 bits
Size: 2048 MB
Form Factor: DIMM
Set: None
Locator: J4MY
Bank Locator: CHAN C DIMM 0
Type: DDR3
Type Detail: Synchronous
Speed: 1333 MHz
Manufacturer: 0x0198
Serial Number: 0x6F0ED090
Asset Tag: Unknown
Part Number: 0x393930353437312D3030312E4130304C4620
""", "")
DMI_OUTPUT = {
'dmi': {
'bios': {
'Address': '0xF0000',
'BIOS Revision': '0.0',
'Characteristics': [
'PCI is supported',
'BIOS is upgradeable',
'BIOS shadowing is allowed',
'Boot from CD is supported',
'Selectable boot is supported',
'EDD is supported',
'8042 keyboard services are supported (int 9h)',
'Serial services are supported (int 14h)',
'Printer services are supported (int 17h)',
'CGA/mono video services are supported (int 10h)',
'ACPI is supported',
'USB legacy is supported',
'ATAPI Zip drive boot is supported',
'BIOS boot specification is supported',
'Function key-initiated network boot is supported',
'Targeted content distribution is supported'],
'Firmware Revision': '0.0',
'Handle': 'Handle 0x0005, DMI type 0, 24 bytes',
'ROM Size': '2048 kB',
'Release Date': '05/16/2011',
'Runtime Size': '64 kB',
'Vendor': 'Intel Corp.',
'Version': 'SOX5810J.86A.5561.2011.0516.2023'},
'cpu': [
{'Asset Tag': 'Not Specified',
'Current Speed': '3381 MHz',
'External Clock': '135 MHz',
'Family': 'Core i7',
'Flags': [
'FPU (Floating-point unit on-chip)',
'VME (Virtual mode extension)',
'DE (Debugging extension)',
'PSE (Page size extension)',
'TSC (Time stamp counter)',
'MSR (Model specific registers)',
'PAE (Physical address extension)',
'MCE (Machine check exception)',
'CX8 (CMPXCHG8 instruction supported)',
'APIC (On-chip APIC hardware supported)',
'SEP (Fast system call)',
'MTRR (Memory type range registers)',
'PGE (Page global enable)',
'MCA (Machine check architecture)',
'CMOV (Conditional move instruction supported)',
'PAT (Page attribute table)',
'PSE-36 (36-bit page size extension)',
'CLFSH (CLFLUSH instruction supported)',
'DS (Debug store)',
'ACPI (ACPI supported)',
'MMX (MMX technology supported)',
'FXSR (FXSAVE and FXSTOR instructions supported)',
'SSE (Streaming SIMD extensions)',
'SSE2 (Streaming SIMD extensions 2)',
'SS (Self-snoop)',
'HTT (Multi-threading)',
'TM (Thermal monitor supported)',
'PBE (Pending break enabled)'],
'Handle': 'Handle 0x0000, DMI type 4, 35 bytes',
'ID': 'C2 06 02 00 FF FB EB BF',
'L1 Cache Handle': '0x0002',
'L2 Cache Handle': '0x0003',
'L3 Cache Handle': '0x0004',
'Manufacturer': 'Intel(R) Corporation',
'Max Speed': '4000 MHz',
'Part Number': 'Not Specified',
'Serial Number': 'Not Specified',
'Signature': 'Type 0, Family 6, Model 44, Stepping 2',
'Socket Designation': 'J1PR',
'Status': 'Populated, Enabled',
'Type': 'Central Processor',
'Upgrade': 'Socket LGA1366',
'Version': 'Intel(R) Core(TM) i7 CPU X 980 @ 3.33GHz',
'Voltage': '1.2 V'}],
'memory': {
'Error Correction Type': 'None',
'Error Information Handle': 'Not Provided',
'Location': 'System Board Or Motherboard',
'Maximum Capacity': '16 GB',
'Number Of Devices': 4,
'Use': 'System Memory',
'devices': [
{'Array Handle': '0x0014',
'Asset Tag': 'Unknown',
'Bank Locator': 'CHAN A DIMM 0',
'Data Width': '64 bits',
'Error Information Handle': 'Not Provided',
'Form Factor': 'DIMM',
'Handle': 'Handle 0x0016, DMI type 17, 27 bytes',
'Locator': 'J1MY',
'Manufacturer': '0x0198',
'Part Number': '0x393930353437312D3030312E4130304C4620',
'Serial Number': '0x700ECE90',
'Set': 'None',
'Size': '2048 MB',
'Speed': '1333 MHz',
'Total Width': '64 bits',
'Type': 'DDR3',
'Type Detail': 'Synchronous'},
{'Array Handle': '0x0014',
'Asset Tag': 'NO DIMM',
'Bank Locator': 'CHAN A DIMM 1',
'Data Width': 'Unknown',
'Error Information Handle': 'Not Provided',
'Form Factor': 'DIMM',
'Handle': 'Handle 0x0017, DMI type 17, 27 bytes',
'Locator': 'J2MY',
'Manufacturer': 'NO DIMM',
'Part Number': 'NO DIMM',
'Serial Number': 'NO DIMM',
'Set': 'None',
'Size': 'No Module Installed',
'Speed': '1333 MHz',
'Total Width': 'Unknown',
'Type': 'DDR3',
'Type Detail': 'Synchronous'},
{'Array Handle': '0x0014',
'Asset Tag': 'Unknown',
'Bank Locator': 'CHAN B DIMM 0',
'Data Width': '64 bits',
'Error Information Handle': 'Not Provided',
'Form Factor': 'DIMM',
'Handle': 'Handle 0x0018, DMI type 17, 27 bytes',
'Locator': 'J3MY',
'Manufacturer': '0x0198',
'Part Number': '0x393930353437312D3030312E4130304C4620',
'Serial Number': '0x700ED090',
'Set': 'None',
'Size': '2048 MB',
'Speed': '1333 MHz',
'Total Width': '64 bits',
'Type': 'DDR3',
'Type Detail': 'Synchronous'},
{'Array Handle': '0x0014',
'Asset Tag': 'Unknown',
'Bank Locator': 'CHAN C DIMM 0',
'Data Width': '64 bits',
'Error Information Handle': 'Not Provided',
'Form Factor': 'DIMM',
'Handle': 'Handle 0x0019, DMI type 17, 27 bytes',
'Locator': 'J4MY',
'Manufacturer': '0x0198',
'Part Number': '0x393930353437312D3030312E4130304C4620',
'Serial Number': '0x6F0ED090',
'Set': 'None',
'Size': '2048 MB',
'Speed': '1333 MHz',
'Total Width': '64 bits',
'Type': 'DDR3',
'Type Detail': 'Synchronous'}]}}}
DMM_OUTPUT = {
'dmi': {
'bios': {
'Address': '0xF0000',
'BIOS Revision': '0.0',
'Characteristics': [
'PCI is supported',
'BIOS is upgradeable',
'BIOS shadowing is allowed',
'Boot from CD is supported',
'Selectable boot is supported',
'EDD is supported',
'8042 keyboard services are supported (int 9h)',
'Serial services are supported (int 14h)',
'Printer services are supported (int 17h)',
'CGA/mono video services are supported (int 10h)',
'ACPI is supported',
'USB legacy is supported',
'ATAPI Zip drive boot is supported',
'BIOS boot specification is supported',
'Function key-initiated network boot is supported',
'Targeted content distribution is supported'
],
'Firmware Revision': '0.0',
'Handle': 'Handle 0x0005, DMI type 0, 24 bytes',
'ROM Size': '2048 kB',
'Release Date': '05/16/2011',
'Runtime Size': '64 kB',
'Vendor': 'Intel Corp.',
'Version': 'SOX5810J.86A.5561.2011.0516.2023'
},
'cpu': [
{'Asset Tag': 'Not Specified',
'Current Speed': '3381 MHz',
'External Clock': '135 MHz',
'Family': 'Core i7',
'Flags': ['FPU (Floating-point unit on-chip)',
'VME (Virtual mode extension)',
'DE (Debugging extension)',
'PSE (Page size extension)',
'TSC (Time stamp counter)',
'MSR (Model specific registers)',
'PAE (Physical address extension)',
'MCE (Machine check exception)',
'CX8 (CMPXCHG8 instruction supported)',
'APIC (On-chip APIC hardware supported)',
'SEP (Fast system call)',
'MTRR (Memory type range registers)',
'PGE (Page global enable)',
'MCA (Machine check architecture)',
'CMOV (Conditional move instruction supported)',
'PAT (Page attribute table)',
'PSE-36 (36-bit page size extension)',
'CLFSH (CLFLUSH instruction supported)',
'DS (Debug store)',
'ACPI (ACPI supported)',
'MMX (MMX technology supported)',
'FXSR (FXSAVE and FXSTOR instructions supported)',
'SSE (Streaming SIMD extensions)',
'SSE2 (Streaming SIMD extensions 2)',
'SS (Self-snoop)',
'HTT (Multi-threading)',
'TM (Thermal monitor supported)',
'PBE (Pending break enabled)'],
'Handle': 'Handle 0x0000, DMI type 4, 35 bytes',
'ID': 'C2 06 02 00 FF FB EB BF',
'L1 Cache Handle': '0x0002',
'L2 Cache Handle': '0x0003',
'L3 Cache Handle': '0x0004',
'Manufacturer': 'Intel(R) Corporation',
'Max Speed': '4000 MHz',
'Part Number': 'Not Specified',
'Serial Number': 'Not Specified',
'Signature': 'Type 0, Family 6, Model 44, Stepping 2',
'Socket Designation': 'J1PR',
'Status': 'Populated, Enabled',
'Type': 'Central Processor',
'Upgrade': 'Socket LGA1366',
'Version': 'Intel(R) Core(TM) i7 CPU X 980 @ 3.33GHz',
'Voltage': '1.2 V'}
],
'memory': {
'Error Correction Type': 'None',
'Error Information Handle': 'Not Provided',
'Location': 'System Board Or Motherboard',
'Maximum Capacity': '16 GB',
'Number Of Devices': 4,
'Use': 'System Memory',
'devices': [
{'Array Handle': '0x0014',
'Asset Tag': 'Unknown',
'Bank Locator': 'CHAN A DIMM 0',
'Data Width': '64 bits',
'Error Information Handle': 'Not Provided',
'Form Factor': 'DIMM',
'Handle': 'Handle 0x0016, DMI type 17, 27 bytes',
'Locator': 'J1MY',
'Manufacturer': '0x0198',
'Part Number': '0x393930353437312D3030312E4130304C4620',
'Serial Number': '0x700ECE90',
'Set': 'None',
'Size': '2048 MB',
'Speed': '1333 MHz',
'Total Width': '64 bits',
'Type': 'DDR3',
'Type Detail': 'Synchronous'},
{'Array Handle': '0x0014',
'Asset Tag': 'NO DIMM',
'Bank Locator': 'CHAN A DIMM 1',
'Data Width': 'Unknown',
'Error Information Handle': 'Not Provided',
'Form Factor': 'DIMM',
'Handle': 'Handle 0x0017, DMI type 17, 27 bytes',
'Locator': 'J2MY',
'Manufacturer': 'NO DIMM',
'Part Number': 'NO DIMM',
'Serial Number': 'NO DIMM',
'Set': 'None',
'Size': 'No Module Installed',
'Speed': '1333 MHz',
'Total Width': 'Unknown',
'Type': 'DDR3',
'Type Detail': 'Synchronous'},
{'Array Handle': '0x0014',
'Asset Tag': 'Unknown',
'Bank Locator': 'CHAN B DIMM 0',
'Data Width': '64 bits',
'Error Information Handle': 'Not Provided',
'Form Factor': 'DIMM',
'Handle': 'Handle 0x0018, DMI type 17, 27 bytes',
'Locator': 'J3MY',
'Manufacturer': '0x0198',
'Part Number': '0x393930353437312D3030312E4130304C4620',
'Serial Number': '0x700ED090',
'Set': 'None',
'Size': '2048 MB',
'Speed': '1333 MHz',
'Total Width': '64 bits',
'Type': 'DDR3',
'Type Detail': 'Synchronous'},
{'Array Handle': '0x0014',
'Asset Tag': 'Unknown',
'Bank Locator': 'CHAN C DIMM 0',
'Data Width': '64 bits',
'Error Information Handle': 'Not Provided',
'Form Factor': 'DIMM',
'Handle': 'Handle 0x0019, DMI type 17, 27 bytes',
'Locator': 'J4MY',
'Manufacturer': '0x0198',
'Part Number': '0x393930353437312D3030312E4130304C4620',
'Serial Number': '0x6F0ED090',
'Set': 'None',
'Size': '2048 MB',
'Speed': '1333 MHz',
'Total Width': '64 bits',
'Type': 'DDR3',
'Type Detail': 'Synchronous'}
]
}
}
}
|