steven-zhou 发表于 2013-1-15 03:00:17

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

1.Linux相关:
CPU信息:
# cat /proc/cpuinfo processor       : 0vendor_id       : GenuineIntelcpu family      : 6model         : 29model name      : Intel(R) Xeon(R) CPU         E7450@ 2.40GHzstepping      : 1cpu MHz         : 2400.089cache size      : 12288 KBphysical id   : 0siblings      : 6core id         : 0cpu cores       : 6apicid          : 0fpu             : yesfpu_exception   : yescpuid level   : 11wp            : yesflags         : 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_lmbogomips      : 4803.97clflush size    : 64cache_alignment : 64address sizes   : 40 bits physical, 48 bits virtualpower management:
内存:
Mem:   8175360k total,1952708k used,6222652k free,   385536k buffers

# free            total       used       free   shared    buffers   cachedMem:       8175360    1952584    6222776          0   385544   778840-/+ buffers/cache:   788200    7387160Swap:      8385920          0    8385920

网卡相关:
有几块网卡,启用了哪些网卡
# ifconfig -abond0   Link encap:EthernetHWaddr 00:00:00:00:00:00            BROADCAST MASTER MULTICASTMTU:1500Metric: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:EthernetHWaddr 00:23:7D:D1:BE:0E            inet addr:10.238.15.101Bcast:10.238.15.255Mask:255.255.255.0          inet6 addr: fe80::223:7dff:fed1:be0e/64 Scope:Link          UP BROADCAST RUNNING MULTICASTMTU:1500Metric: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:EthernetHWaddr 00:23:7D:D1:BE:10            BROADCAST MULTICASTMTU:1500Metric: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.1Mask:255.0.0.0          inet6 addr: ::1/128 Scope:Host          UP LOOPBACK RUNNINGMTU:16436Metric: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            NOARPMTU:1480Metric: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)

网卡工作模式
# ethtool eth0Settings 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

磁盘分区信息:
# dfFilesystem         1K-blocks      Used Available Use% Mounted on/dev/cciss/c0d0p1    27562435210271848 251125744   4% /tmpfs                  4087680         0   4087680   0% /dev/shm

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


linux cat /proc/cpuinfo/grep processorAIXlsdev -C | grep -i rocessor| wc -l或直接运行nmon命令Solaispsrinfo -v | grep "Status of processor" | wc -lhp-unixioscan -C processor | grep processor | wc -l
// 显示内存数量Linux:freeAIX:lsdev -C | grep memSolaris:prtconf | grep -i memmemo   Available   00-00 Memory可见mem0是该aix设备上的内存设备名称,现在使用lsattr -EI 来查看该服务器上的内存数量root>lsattr -EI memoHP-UNIXswapinfo -tmmachinfo

HP-UX相关:
machinfobash-4.0$ machinfoCPU 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.06Platform info:   Model:                  "9000/800/rp8420"   Machine ID number:      Z3e12d673d4794b11   Machine serial number:SGH4742209OS 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
页: [1]
查看完整版本: 查看各类系统硬件配置信息