论坛首页 综合技术论坛

查看各类系统硬件配置信息

浏览 3383 次
精华帖 (0) :: 良好帖 (0) :: 新手帖 (0) :: 隐藏帖 (0)
作者 正文
   发表时间:2009-03-12   最后修改:2011-02-15
OS
1.Linux相关:
CPU信息:
[root@proxy1 sys]# cat /proc/cpuinfo 
processor       : 0
vendor_id       : GenuineIntel
cpu family      : 6
model           : 29
model name      : Intel(R) Xeon(R) CPU           E7450  @ 2.40GHz
stepping        : 1
cpu MHz         : 2400.089
cache size      : 12288 KB
physical id     : 0
siblings        : 6
core id         : 0
cpu cores       : 6
apicid          : 0
fpu             : yes
fpu_exception   : yes
cpuid level     : 11
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall lm constant_tsc pni monitor ds_cpl vmx est tm2 cx16 xtpr lahf_lm
bogomips        : 4803.97
clflush size    : 64
cache_alignment : 64
address sizes   : 40 bits physical, 48 bits virtual
power management:

内存:
Mem:   8175360k total,  1952708k used,  6222652k free,   385536k buffers


[root@proxy1 keepalived]# free 
             total       used       free     shared    buffers     cached
Mem:       8175360    1952584    6222776          0     385544     778840
-/+ buffers/cache:     788200    7387160
Swap:      8385920          0    8385920


网卡相关:
有几块网卡,启用了哪些网卡
[root@proxy1 ~]# ifconfig -a
bond0     Link encap:Ethernet  HWaddr 00:00:00:00:00:00  
          BROADCAST MASTER MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

eth0      Link encap:Ethernet  HWaddr 00:23:7D:D1:BE:0E  
          inet addr:10.238.15.101  Bcast:10.238.15.255  Mask:255.255.255.0
          inet6 addr: fe80::223:7dff:fed1:be0e/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:128160360 errors:0 dropped:0 overruns:0 frame:0
          TX packets:129271380 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:85654724966 (79.7 GiB)  TX bytes:73748509499 (68.6 GiB)
          Interrupt:169 Memory:f8000000-f8012100 

eth1      Link encap:Ethernet  HWaddr 00:23:7D:D1:BE:10  
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
          Interrupt:177 Memory:fa000000-fa012100 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:1888 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1888 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:163612 (159.7 KiB)  TX bytes:163612 (159.7 KiB)

sit0      Link encap:IPv6-in-IPv4  
          NOARP  MTU:1480  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)


网卡工作模式
[root@proxy1 ~]# ethtool eth0
Settings for eth0:
        Supported ports: [ TP ]
        Supported link modes:   10baseT/Half 10baseT/Full 
                                100baseT/Half 100baseT/Full 
                                1000baseT/Full 
        Supports auto-negotiation: Yes
        Advertised link modes:  10baseT/Half 10baseT/Full 
                                100baseT/Half 100baseT/Full 
                                1000baseT/Full 
        Advertised auto-negotiation: Yes
        Speed: 1000Mb/s
        Duplex: Full
        Port: Twisted Pair
        PHYAD: 1
        Transceiver: internal
        Auto-negotiation: on
        Supports Wake-on: g
        Wake-on: g
        Link detected: yes


磁盘分区信息:
[root@proxy1 ~]# df
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/cciss/c0d0p1    275624352  10271848 251125744   4% /
tmpfs                  4087680         0   4087680   0% /dev/shm


IBM-AIX:
CPU、内存、磁盘,只需运行nmon命令即可。
查看OS版本号:oslevel -r



linux 
cat /proc/cpuinfo/grep processor

AIX
lsdev -C | grep -i rocessor| wc -l
或直接运行nmon命令

Solais
psrinfo -v | grep "Status of processor" | wc -l

hp-unix
ioscan -C processor | grep processor | wc -l

// 显示内存数量
Linux:
free

AIX:
lsdev -C | grep mem

Solaris:
prtconf | grep -i mem

memo     Available   00-00 Memory

可见mem0是该aix设备上的内存设备名称,现在使用lsattr -EI 来查看该服务器上的内存数量

root>lsattr -EI memo

HP-UNIX

swapinfo -tm
machinfo


HP-UX相关:
machinfo
bash-4.0$ machinfo
CPU info:
 10 PA-RISC 8900 processors (1.1 GHz, 64 MB)
          CPU version 10
          20 logical processors (2 per socket)

Memory: 81645 MB (79.73 GB)

Firmware info:
   Firmware revision:  24.4
   IPMI is supported on this system.
   BMC firmware revision: 8.06

Platform info:
   Model:                  "9000/800/rp8420"
   Machine ID number:      Z3e12d673d4794b11
   Machine serial number:  SGH4742209

OS info:
   Nodename:  ubak2
   Release:   HP-UX B.11.31
   Version:   U (unlimited-user license)
   Machine:   9000/800
   ID Number: 3564718865
   vmunix _release_version:               
_release_version:               
@(#) $Revision: vmunix:    B.11.31_LR FLAVOR=perf 
论坛首页 综合技术版

跳转论坛:
Global site tag (gtag.js) - Google Analytics