查看硬件信息

因为种种原来,我们可能需要查看linux服务器主板型号,cpu型号,内存大小,内存条数量等。因为服务器使用raid卡,平常查看硬盘信息的命令还不能用,待后面补充!

查看主板型号

 代码如下复制代码

# dmidecode |grep -A 8 "System Information" 
System Information
        Manufacturer: Dell                 
        Product Name: CS24-TY              
        Version: A00                  
        Serial Number: 24Z1NL1              
        UUID: 2656CFCF-887A-0010-BBD8-00269E9C46DC
        Wake-up Type: Power Switch
        SKU Number: To Be Filled By O.E.M.
        Family: Server上网查DELL CS24-TY,找到说主板型号是DELL PowerEdge C1100

查看内存

 代码如下复制代码
# free -m
             total       used       free     shared    buffers     cached
Mem:         32103      31803        300          0        217        953
-/+ buffers/cache:      30632       1471
Swap:        16383        476      15907

查看内存条数

 代码如下复制代码
[root@localhost ~]# dmidecode -t memory|grep Size
        Size: 8192 MB Type: Other Speed: 1333 MHz
        Size: No Module Installed
        Size: No Module Installed
        Size: 8192 MB
        Size: No Module Installed
        Size: No Module Installed
        Size: No Module Installed
        Size: No Module Installed
        Size: No Module Installed
        Size: 8192 MB
        Size: No Module Installed
        Size: No Module Installed
        Size: 8192 MB
        Size: No Module Installed
        Size: No Module Installed
        Size: No Module Installed
        Size: No Module Installed
        Size: No Module Installed

查看硬盘大小,分区

 代码如下复制代码

[root@localhost ~]# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/sda3             119G   17G   96G  15% /
tmpfs                  16G     0   16G   0% /dev/shm
/dev/sda1              97M   32M   61M  35% /boot

查看raid卡,raid卡为DELL PERC 6/i

 代码如下复制代码

[root@localhost ~]# dmesg |grep -i raid
dracut: rd_NO_DM: removing DM RAID activation
dracut: rd_NO_MD: removing MD RAID activation
ahci 0000:00:1f.2: AHCI 0001.0200 32 slots 6 ports 3 Gbps 0x3f impl RAID mode
megaraid_sas 0000:04:00.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16
megaraid_sas 0000:04:00.0: setting latency timer to 64
megaraid_sas: fw state:c0000000
scsi6 : LSI SAS based MegaRAID driver
[root@localhost ~]# cat /proc/scsi/scsi
Attached devices:
Host: scsi6 Channel: 02 Id: 00 Lun: 00
  Vendor: DELL     Model: PERC 6/i         Rev: 1.11
  Type:   Direct-Access                    ANSI  SCSI revision: 05

查看网卡

 代码如下复制代码

[root@localhost ~]# lspci | grep -i 'eth'
05:00.0 Ethernet controller: Intel Corporation 82576 Gigabit Network Connection (rev 01)
05:00.1 Ethernet controller: Intel Corporation 82576 Gigabit Network Connection (rev 01)

查看21号网络流量

 代码如下复制代码

# sar -n DEV  -f /var/log/sa/sa21 |grep eth|less

查看板载显示信息

 代码如下复制代码

[root@localhost ~]# dmidecode |grep -A 5 "On Board Device Information"
On Board Device Information
        Type: Video
        Status: Enabled
        Description:  AST2050 VGA

内存槽及内存条:
 

 代码如下复制代码
# dmidecode |grep -A16 "Memory Device$"


查看cpu型号,主频

 代码如下复制代码

# cat /proc/cpuinfo | grep name | cut -f2 -d: | uniq -c
      8  Intel(R) Xeon(R) CPU            E5410   @ 2.33GHz
(看到有8个逻辑CPU, 也知道了CPU型号)
# cat /proc/cpuinfo | grep physical | uniq -c
      4 physical id      : 0
      4 physical id      : 1
(说明实际上是两颗4核的CPU)
# 其实是可能有超线程HT技术,不一定是有4核,也可能是2核4线程。
# getconf LONG_BIT
   32
(说明当前CPU运行在32bit模式下, 但不代表CPU不支持64bit)
# cat /proc/cpuinfo | grep flags | grep ' lm ' | wc -l
   8
(结果大于0, 说明支持64bit计算. lm指long mode, 支持lm则是64bit)
完整查看cpu详细信息。
# dmidecode | grep -A81 'Processor Information'

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
最近在朋友买了一个二手的DELL C1100(CS24-TY) 机架式服务器。 注意CS24-TY是DELL C1100的定制型号,和标准版的有所不同。但是网上玩家已经试出了更新标准版BIOS和BMC的方法(见下面英文介绍的步骤)。不过我嫌麻烦,没有做CMOS放电的步骤,也成功了。 ------------------------------------------------------------------------------------------------- I want to write this guide because a lot of people are getting the C1100 off of Ebay or other sources and trying to update firmware but having trouble. So you botched up the BMC firmware update? The orange/amber light is blinking and blue light is on and the power button does nothing? The C1100 is stuck at amber orange blinking light? Open up your C1100 (powered off) Close to where the PCI-E card is, somewhere on the motherboard there are a few jumper. On particular one, should say something like CLR CMOS. Put the CLR CMOS so that its its on the other two pins from what it originally was. Put the power cord in, wait 10 seconds, Pull the power cord. Put the CLR CMOS jumper back to original position. CAREFUL: THE FANS WILL GO AT FULL THROTTLE Put the power cord back in. The fans will go at full throttle. Now wait for like 5 or so minutes! Plug in your monitor, keyboard and USB Bootable Thumbdrive with DOS and firmwares (see below). It will first say CMOS and BMC not responding, loading defaults etc and restart. Wait another 5 minutes, press F11 to get the BBS Priority and choose your USB thumb drive. If you pull the power cord at any other moment, you will have to redo the CLR CMOS to boot up again. Getting the BIOS and BMC Files together: Get DOS on USB (search for Rufus, find on github or google,制作成freedos启动盘) Get the latest BIOS B25 Get the latest BMC 1.86 Put it all in directory of the usb flash drive (make sure directory less than 8 characters) Updating the BIOS: Boot to DOS Find the BIOS directory ( I called mine b25) Enter command AFUDOS .ROM /P /B /K /X This is the same as the F.BAT file that comes from dell but with

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值