summaryrefslogtreecommitdiff
path: root/dmiopt.c
Commit message (Collapse)AuthorAgeFilesLines
* dmidecode: Add a --no-quirks optionJean Delvare2022-12-161-0/+5
| | | | | | | | | This new option is aimed at firmware developers to help them validate their work. When this option is used, quirks and fixups are disabled in dmidecode, which will dumbly decode everything found in the table even if it is known to be incorrect. Signed-off-by: Jean Delvare <jdelvare@suse.de>
* dmidecode: Adding system-sku-number support to -s optionTimo Teräs2020-07-071-0/+1
| | | | | | | | | | | | Allow extracting the System SKU number directly via the -s option. [JD: Update the man page accordingly.] This fixes bug #58715: https://savannah.nongnu.org/bugs/?58715 Signed-off-by: Timo Teräs <timo.teras@iki.fi> Signed-off-by: Jean Delvare <jdelvare@suse.de>
* dmidecode: Adding firmware-revision support to -s optionErwan Velu2019-10-071-0/+1
| | | | | | | | | | | | | | Most of servers like HPe, QCT, report the BMC version via the Firmware Revision field. Add an option to the -s to export this information directly. A typical usage of this feature looks like: [root@host ~]$ dmidecode -s firmware-revision 3.93 Signed-off-by: Erwan Velu <e.velu@criteo.com> Signed-off-by: Jean Delvare <jdelvare@suse.de>
* dmidecode: Adding bios-revision to -s optionErwan Velu2019-10-071-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | Some hardware vendors like HPe use the Version field to store the bios generation like (U30, U32, A40, ...). If you want to get the "release" version of this bios generation, the bios revision field must be considered. A typical output of this kind of server looks like : BIOS Information Vendor: HPE Version: A40 Release Date: 07/20/2019 [...] BIOS Revision: 2.0 Firmware Revision: 1.45 Add a "bios-revision" entry into the '-s' option. A typical usage of this feature looks like : [root@host] dmidecode -s bios-revision 2.0 Signed-off-by: Erwan Velu <e.velu@criteo.com> Signed-off-by: Jean Delvare <jdelvare@suse.de>
* dmidecode: Argument processingJerry Hoemann2018-07-031-2/+2
| | | | | | | | Tighten up the numeric argument processing for parse_opt_type and parse_opt_oem_string to catch more typos. Signed-off-by: Jerry Hoemann <jerry.hoemann@hpe.com> Signed-off-by: Jean Delvare <jdelvare@suse.de>
* dmidecode: Add option to filter output based upon handleJerry Hoemann2018-07-031-3/+23
| | | | | | | | Add option "--handle HANDLE" to dmiopt to allow user to filter output to only those entry that matches HANDLE. Signed-off-by: Jerry Hoemann <jerry.hoemann@hpe.com> Signed-off-by: Jean Delvare <jdelvare@suse.de>
* dmidecode: Add system-family direct string optionMika Westerberg2017-06-061-0/+1
| | | | | | | This allows users to print system-family using '-s' option. Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com> Signed-off-by: Jean Delvare <jdelvare@suse.de>
* dmidecode: New option --oem-stringJean Delvare2017-05-231-0/+40
| | | | | | | Add a new option to extract OEM strings, like we already have for many other strings. Signed-off-by: Jean Delvare <jdelvare@suse.de>
* Add "--no-sysfs" option description to -h outputRoy Franz2015-10-011-0/+1
| | | | | A description of --no-sysfs was not added to the output of "-h" when the feature was added, so add it now.
* Fix sparse warningsJean Delvare2015-04-281-1/+1
|
* dmidecode: Add --no-sysfs option to disable use of sysfsJean Delvare2015-04-211-0/+4
| | | | | | | | This option forces any SMBIOS information in sysfs to be ignored, resulting in dmidecode using /dev/mem for SMBIOS access. This is likely most useful for debugging. Contributed by Roy Franz.
* Update my e-mail addressJean Delvare2014-02-031-1/+1
|
* Include entry type 41 in --type baseboard.Jean Delvare2008-11-071-1/+1
|
* Make options --dump-bin and --quiet work together.Jean Delvare2008-10-301-2/+0
|
* Option --dump is only a modifier as --quiet is, so it's not actuallyJean Delvare2008-10-301-3/+3
| | | | mutually exclusive with the output format options.
* Don't use function pointers for special string cases. Each special case isJean Delvare2008-10-281-22/+22
| | | | | itself special and needs to call a function with its own prototype, so better have dedicated code to handle it all.
* Coding style fixes.Jean Delvare2008-10-271-1/+1
|
* Mass coding-style change: add spaces around operators.Jean Delvare2008-10-261-56/+56
|
* Simplify the handling and documentation of mutually exclusive outputJean Delvare2008-10-261-18/+6
| | | | format options.
* New option --from-dump, read the DMI data from a binary file.Jean Delvare2008-10-251-0/+11
|
* Write binary dump to a compact file rather than a sparse file.Jean Delvare2008-10-251-1/+1
|
* Update copyright statements.Jean Delvare2008-02-161-1/+1
|
* Drop trailing whitespace.Jean Delvare2008-02-161-1/+1
|
* New option --dump-bin, dump the DMI data to a sparse binary file.Jean Delvare2008-02-161-0/+11
|
* Define an ARRAY_SIZE macro which computes the size of a static array, andJean Delvare2007-02-111-4/+5
| | | | use it where relevant.
* Fix incorrect header include. The strcasecmp function is defined inJean Delvare2005-09-241-1/+1
| | | | <strings.h>, not <string.h>.
* Modify the opt structure to handle the string option more efficiently.Jean Delvare2005-09-141-16/+4
|
* Make it possible for --string to print decoded binary data rather thanJean Delvare2005-09-141-18/+27
| | | | only DMI strings. Add four such string keywords.
* Complain about unknown options again.Jean Delvare2005-08-251-4/+2
|
* Options --dump and --quiet are mutually exclusive.Jean Delvare2005-08-021-0/+6
|
* Options --dump and --string are mutually exclusive.Jean Delvare2005-06-231-1/+7
|
* Add string keyword "bios-release-date".Jean Delvare2005-06-221-0/+1
|
* Display the list of all valid type or string keywords when --type orJean Delvare2005-06-221-3/+39
| | | | | --string, respectievely, is used without an argument or with an invalid one.
* Add option -s, --string. It prints one selected DMI string instead ofJean Delvare2005-06-211-1/+73
| | | | the regular output.
* Miscellaneous comments and reordering.Jean Delvare2005-06-211-3/+14
|
* Add option -q, --quiet. It makes the output less verbose.Jean Delvare2005-06-171-1/+6
|
* Define keywords to be used with --type (instead of numeric values).Jean Delvare2005-06-151-1/+45
|
* Move the command line handling of dmidecode to a separate source file.Jean Delvare2005-06-151-0/+131