[转帖]查询机器序列号--Linux/esxi/windows

济南小老虎 / 2024-01-09 / 原文

https://www.jianshu.com/p/6abaea79e0c3

 

Ipmitool--Linux&Esxi&Windows

# ipmitool fru list|grep -i "chassis serial"

Chassis Serial        : J300****

Dmidecode--Linux

# dmidecode |grep -i "system information" -A 8

System Information

        Manufacturer: 未知

        Product Name: 未知

        Version: 04

        Serial Number: J300****

        Wake-up Type: Power Switch

Lshw  --linux

#lshw -c system

    description: Rack Mount Chassis

    version: 04

    serial: J300****

    width: 64 bits

esxcli hardware platform get---ESXi

[root@localhost:~] esxcli hardware platform get

Platform Information

  UUID: 0x0 0xd6 0x2c 0x1b 0x5d 0xc1 0xe4 0x11 0xa3 0xf 0x7c 0xd3 0xa 0x5e 0x88 0xdc

  Vendor Name: 未知

  Serial Number: J300****

  Enclosure Serial Number:J300****

  BIOS Asset Tag: sizu

  IPMI Supported: true

Smbiosdump文件--ESXi-vm-support log

System Info: #1

    Manufacturer: "未知"

    Product: "未知"

    Version: "07"

    Serial: "J300****"vsi

    UUID: c740600ad37e009711e8b5b2233e993a

    Wake-up: 0x06 (Power Switch)

Vsish--esxi

[root@localhost:~] vsish -e cat /hardware/bios/dmiInfo

System Information (type1) {

  Product Name:未知

  Vendor Name:未知

  Serial Number:J300****

  UUID:[0]: 0x00

  [1]: 0xd6

  [2]: 0x2c

  [3]: 0x1b

  [4]: 0x5d

  [5]: 0xc1

  [6]: 0xe4

   Version:07

   Family:未知

}

Wmic---windows

PS C:\windows\system32> wmic bios get serialnumber

SerialNumber

J300****