Dump BIOS data
You can get a dump of all BIOS data of a unix machine (bspw. Debian)with: $> sudo dmidecode You can select special parts with: $> sudo dmidecode -s system-serial-number This will give you the Service-Tag of a DELL Server for example.
You can get a dump of all BIOS data of a unix machine (bspw. Debian)with: $> sudo dmidecode You can select special parts with: $> sudo dmidecode -s system-serial-number This will give you the Service-Tag of a DELL Server for example.
/** * Removes leading and tailing whitespace(spaces, tabs, …) * from given string */ function trim (inputstring) { // first remove leading then tailing whitespaces // before removing the trimmed string return inputstring.replace (/^\s+/, ”).replace (/\s+$/, ”); }