当前位置: 首页 > backend >正文

【微知】服务器如何获取服务器的SN序列号信息?(dmidecode -t 1)

文章目录

  • 背景
  • 命令
  • dmidecode -t的数字代表的字段

背景

各种场景都需要获取服务器的SN(Serial Number),比如问题定位,文件命名,该部分信息在dmi中是标准信息,不同服务器,不同os都能用相同方式获取SN信息。本文记录快速获取SN的方式。

在“dmidecode”中,DMI是“Desktop Management Interface”的缩写,即桌面管理接口。
DMI是一种基于SMBIOS(System Management BIOS)的标准,它提供了一种在计算机系统中访问和管理硬件信息的方法。通过DMI,系统管理员和用户可以获取有关计算机硬件组件的详细信息,如处理器、内存、硬盘、主板、显卡等的规格、型号、序列号等。dmidecode工具就是利用DMI标准来获取并解码这些信息,以人类可读的格式呈现给用户,方便用户了解计算机硬件的配置情况。

命令

dmidecode -t 1或者:
dmidecode -t system

实操:
在这里插入图片描述

dmidecode -t的数字代表的字段

0 bios
1 system

DMI TYPESThe SMBIOS specification defines the following DMI types:Type   Information────────────────────────────────────────────0   BIOS1   System2   Baseboard3   Chassis4   Processor5   Memory Controller6   Memory Module7   Cache8   Port Connector9   System Slots10   On Board Devices11   OEM Strings12   System Configuration Options13   BIOS Language14   Group Associations15   System Event Log16   Physical Memory Array17   Memory Device18   32-bit Memory Error19   Memory Array Mapped Address20   Memory Device Mapped Address21   Built-in Pointing Device22   Portable Battery23   System Reset24   Hardware Security25   System Power Controls26   Voltage Probe27   Cooling Device23   System Reset24   Hardware Security25   System Power Controls26   Voltage Probe27   Cooling Device28   Temperature Probe29   Electrical Current Probe30   Out-of-band Remote Access31   Boot Integrity Services32   System Boot33   64-bit Memory Error34   Management Device35   Management Device Component36   Management Device Threshold Data37   Memory Channel38   IPMI Device39   Power Supply40   Additional Information41   Onboard Devices Extended Information42   Management Controller Host Interface
http://www.xdnf.cn/news/669.html

相关文章:

  • Origin将双Y轴柱状图升级为双向分组柱状图
  • 二、在springboot 中使用 AIService
  • 【JAVA EE初阶】多线程(1)
  • 代码随想录算法训练营第五十三天 | 105.有向图的完全可达性 106.岛屿的周长
  • 如何轻松实现用户充值系统的API自动化测试
  • QML、Qt Quick 、Qt Quick Controls 2
  • 如何成为Prompt工程师:学习路径、核心技能与职业发展
  • STM32时钟树
  • 微信小程序中使用h5页面预览图片、视频、pdf文件
  • PHP伪协议读取文件
  • Matlab 步进电机传递函数模糊pid
  • langchain-nextjs-template 模板安装与配置
  • 【文献阅读】EndoNet A Deep Architecture for Recognition Tasks on Laparoscopic Videos
  • 【MRAG】使用RAG技术增强AI回复的实时性和准确性
  • Android Kotlin AIDL 完整实现与优化指南
  • Leetcode 3524. Find X Value of Array I
  • 9、Hooks:现代魔法咒语集——React 19 核心Hooks
  • 山东大学软件学院项目实训-基于大模型的模拟面试系统-Token过期重定向问题
  • 代码随想录算法训练营第三十五天|416. 分割等和子集、698.划分为k个相等的子集、473.火柴拼正方形
  • IDEA连接达梦数据库
  • Android学习之实战登录注册能力
  • Django 使用教程
  • 4月19日记(补)算了和周日一块写了 4月20日日记
  • 无法右键下载文档?网页PDF下载方法大全
  • Python赋能去中心化电子商务平台:重构交易生态的新未来
  • 2000-2017年各省天然气消费量数据
  • uni-app中map的使用
  • 52单片机LED实验
  • leetcode205.同构字符串
  • ​opencv图像库编程