Show serial number in webgui?



  • 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.


  • Galactic Empire

    It's a BIOS thing that is vendor specific, it shows with official Netgate hardware:-

    0_1541018324527_Screenshot 2018-10-31 at 20.35.32.png


  • Galactic Empire

    You might actually see it depending on the motherboard by using the dmidecode command from Diagnostics -> Command Prompt


  • Rebel Alliance Developer Netgate

    Check and see if it shows in kenv or dmidecode.

    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.



  • @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"
    ...
    


  • @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.


  • Rebel Alliance Developer Netgate

    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 7 instead of 10 it should show up for you.