Show serial number in webgui?
almw last edited by
To my knowledge there is no option to have the webgui show the serial number of the server. I was wondering if the devs could add this or is there already a way to show it? It would be super useful to be able to see the serial number on the main page of the webgui under the System Information widget.
It's a BIOS thing that is vendor specific, it shows with official Netgate hardware:-
You might actually see it depending on the motherboard by using the dmidecode command from Diagnostics -> Command Prompt
Check and see if it shows in
The dashboard widget shows it if it's in a common place. It isn't specific to Netgate hardware, but we do make sure that Netgate hardware shows its serial number there. Serials will show for other devices that properly populate the expected serial fields.
almw last edited by almw
@jimp Sorry for the delayed response. The serial number shows properly using
dmidecode -t system | grep Serial.
Without grep the output is:
# dmidecode 3.1 Scanning /dev/mem for entry point. SMBIOS 2.7 present. Handle 0x0001, DMI type 1, 27 bytes System Information Manufacturer: Dell Inc. Product Name: OptiPlex 7010 Version: 01 Serial Number: 9X0RDX1 UUID: 4C4C4544-0058-3010-8052-B9C04F445831 Wake-up Type: Power Switch SKU Number: OptiPlex 7010 Family: Not Specified
EDIT: It also shows in kenv
LINES="24" acpi.oem="DELL " acpi.revision="2" loader_brand="pfSense" loader_color="NO" loader_logo="pfSensebw" module_path="/boot/kernel;/boot/modules;/boot/dtb;/boot/dtb/overlays" smbios.chassis.maker="Dell Inc." smbios.chassis.serial="9X0RDX1" smbios.memory.enabled="8388608" smbios.planar.maker="Dell Inc." smbios.planar.product="0773VG" smbios.planar.serial="/9X0RDX1/CN7220032Q01Z3/" smbios.planar.version="A02" smbios.socket.enabled="1" smbios.socket.populated="1" smbios.system.maker="Dell Inc." smbios.system.product="OptiPlex 7010" smbios.system.serial="9X0RDX1" smbios.system.sku="OptiPlex 7010" smbios.system.uuid="4c4c4544-0058-3010-8052-b9c04f445831" ...
almw last edited by
@nogbadthebad Yeah I'm aware that dmidecode can get it from the command line. I was wanting it to show up in the webgui so I wouldn't have too access all of my machines through ssh to check the serial numbers.
Probably being ignored since it's so short. Looks like the widget expects the serial to be 10-16 digits. If you change this line to say
10it should show up for you.