Skip to content

Instantly share code, notes, and snippets.

@jessebutryn
Last active January 17, 2019 15:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jessebutryn/a82fb82e76113452ad413429b5c3a095 to your computer and use it in GitHub Desktop.
Save jessebutryn/a82fb82e76113452ad413429b5c3a095 to your computer and use it in GitHub Desktop.
$ smbios -t SMB_TYPE_MEMDEVICE | awk -v tag=P1-DIMMD1 '/ID SIZE TYPE/ { block = $0; output = 0; next } { block = block "\n" $0 } /Location Tag/ { output = ($0 ~ tag); print output } /Configured Voltage/ && output { print block }'
0
0
0
0
1
ID SIZE TYPE
44 105 SMB_TYPE_MEMDEVICE (type 17) (memory device)
Manufacturer: NO DIMM
Serial Number: NO DIMM
Asset Tag: NO DIMM
Location Tag: P1-DIMMD1
Part Number: NO DIMM
Physical Memory Array: 43
Memory Error Data: Not Supported
Total Width: 0 bits
Data Width: 0 bits
Size: Not Populated
Form Factor: 9 (DIMM)
Set: None
Rank: Unknown
Memory Type: 2 (unknown)
Flags: 0x4
SMB_MDF_UNKNOWN (unknown)
Speed: Unknown
Configured Speed: Unknown
Device Locator: P1-DIMMD1
Bank Locator: P0_Node1_Channel0_Dimm0
Minimum Voltage: 1.20V
Maximum Voltage: 1.20V
Configured Voltage: 1.20V
0
0
0
0
0
0
0
0
0
0
0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment