Linux/Unix查看系统、硬件、网络等信息脚本:summary

summary是一个简便的Linux/Unix系统状态和配置信息检测工具,但它不是一个诊断工具。目前在Linux系统上运行更好,Unix可能在以后会支持的更好。

summary使用方法

# 下载后运行:
wget http://aspersa.googlecode.com/svn/trunk/summary
bash summary

# 或者下载和运行一步完成:
wget -O- http://aspersa.googlecode.com/svn/trunk/summary | bash

执行后效果:

# Aspersa System Summary Report ##############################
Date | 2012-11-15 02:32:28 UTC (local TZ: CST +0800)
Hostname | localhost.localdomain
Uptime | 1 day, 5:42, 3 users, load average: 0.00, 0.00, 0.00
System | VMware, Inc.; VMware Virtual Platform; vNone (Other)
Service Tag | VMware-56 4d 39 1c e4 47 74 84-03 5f 80 a4 06 77 28 f5
Platform | Linux
Release | CentOS release 5.8 (Final)
Kernel | 2.6.18-308.16.1.el5
Architecture | CPU = 64-bit, OS = 64-bit
Threading | NPTL 2.5
Compiler | GNU CC version 4.1.2 20080704 (Red Hat 4.1.2-52).
SELinux | Disabled
Virtualized | VMWare
# Processor ##################################################
Processors | physical = 1, cores = 0, virtual = 1, hyperthreading = no
Speeds | 1x2926.030
Models | 1xIntel(R) Core(TM)2 Duo CPU E7500 @ 2.93GHz
Caches | 1x3072 KB
# Memory #####################################################
Total | 495.63M
Free | 8.22M
Used | physical = 487.41M, swap = 0.00k, virtual = 487.41M
Buffers | 120.57M
Caches | 283.14M
Dirty | 144 kB
UsedRSS | 104.6M
Swappiness | vm.swappiness = 60
DirtyPolicy | vm.dirty_ratio = 40, vm.dirty_background_ratio = 10
DirtyStatus | vm.dirty_bytes = 0, vm.dirty_background_bytes = 0
Locator Size Speed Form Factor Type Type Detail
========= ======== ================= ============= ============= ===========
RAM slot #0 512 MB Unknown DIMM DRAM EDO
RAM slot #10 {EMPTY} Unknown DIMM DRAM Unknown
RAM slot #11 {EMPTY} Unknown DIMM DRAM Unknown
RAM slot #12 {EMPTY} Unknown DIMM DRAM Unknown
RAM slot #13 {EMPTY} Unknown DIMM DRAM Unknown
RAM slot #14 {EMPTY} Unknown DIMM DRAM Unknown
RAM slot #15 {EMPTY} Unknown DIMM DRAM Unknown
RAM slot #16 {EMPTY} Unknown DIMM DRAM Unknown
RAM slot #17 {EMPTY} Unknown DIMM DRAM Unknown
RAM slot #18 {EMPTY} Unknown DIMM DRAM Unknown
RAM slot #19 {EMPTY} Unknown DIMM DRAM Unknown
RAM slot #1 {EMPTY} Unknown DIMM DRAM Unknown
RAM slot #20 {EMPTY} Unknown DIMM DRAM Unknown
RAM slot #21 {EMPTY} Unknown DIMM DRAM Unknown
RAM slot #22 {EMPTY} Unknown DIMM DRAM Unknown
RAM slot #23 {EMPTY} Unknown DIMM DRAM Unknown
RAM slot #24 {EMPTY} Unknown DIMM DRAM Unknown
RAM slot #25 {EMPTY} Unknown DIMM DRAM Unknown
RAM slot #26 {EMPTY} Unknown DIMM DRAM Unknown
RAM slot #27 {EMPTY} Unknown DIMM DRAM Unknown
RAM slot #28 {EMPTY} Unknown DIMM DRAM Unknown
RAM slot #29 {EMPTY} Unknown DIMM DRAM Unknown
RAM slot #2 {EMPTY} Unknown DIMM DRAM Unknown
RAM slot #30 {EMPTY} Unknown DIMM DRAM Unknown
RAM slot #31 {EMPTY} Unknown DIMM DRAM Unknown
RAM slot #32 {EMPTY} Unknown DIMM DRAM Unknown
RAM slot #33 {EMPTY} Unknown DIMM DRAM Unknown
RAM slot #34 {EMPTY} Unknown DIMM DRAM Unknown
RAM slot #35 {EMPTY} Unknown DIMM DRAM Unknown
RAM slot #36 {EMPTY} Unknown DIMM DRAM Unknown
RAM slot #37 {EMPTY} Unknown DIMM DRAM Unknown
RAM slot #38 {EMPTY} Unknown DIMM DRAM Unknown
RAM slot #39 {EMPTY} Unknown DIMM DRAM Unknown
RAM slot #3 {EMPTY} Unknown DIMM DRAM Unknown
RAM slot #40 {EMPTY} Unknown DIMM DRAM Unknown
RAM slot #41 {EMPTY} Unknown DIMM DRAM Unknown
RAM slot #42 {EMPTY} Unknown DIMM DRAM Unknown
RAM slot #43 {EMPTY} Unknown DIMM DRAM Unknown
RAM slot #44 {EMPTY} Unknown DIMM DRAM Unknown
RAM slot #45 {EMPTY} Unknown DIMM DRAM Unknown
RAM slot #46 {EMPTY} Unknown DIMM DRAM Unknown
RAM slot #47 {EMPTY} Unknown DIMM DRAM Unknown
RAM slot #48 {EMPTY} Unknown DIMM DRAM Unknown
RAM slot #49 {EMPTY} Unknown DIMM DRAM Unknown
RAM slot #4 {EMPTY} Unknown DIMM DRAM Unknown
RAM slot #50 {EMPTY} Unknown DIMM DRAM Unknown
RAM slot #51 {EMPTY} Unknown DIMM DRAM Unknown
RAM slot #52 {EMPTY} Unknown DIMM DRAM Unknown
RAM slot #53 {EMPTY} Unknown DIMM DRAM Unknown
RAM slot #54 {EMPTY} Unknown DIMM DRAM Unknown
RAM slot #55 {EMPTY} Unknown DIMM DRAM Unknown
RAM slot #56 {EMPTY} Unknown DIMM DRAM Unknown
RAM slot #57 {EMPTY} Unknown DIMM DRAM Unknown
RAM slot #58 {EMPTY} Unknown DIMM DRAM Unknown
RAM slot #59 {EMPTY} Unknown DIMM DRAM Unknown
RAM slot #5 {EMPTY} Unknown DIMM DRAM Unknown
RAM slot #60 {EMPTY} Unknown DIMM DRAM Unknown
RAM slot #61 {EMPTY} Unknown DIMM DRAM Unknown
RAM slot #62 {EMPTY} Unknown DIMM DRAM Unknown
RAM slot #63 {EMPTY} Unknown DIMM DRAM Unknown
RAM slot #6 {EMPTY} Unknown DIMM DRAM Unknown
RAM slot #7 {EMPTY} Unknown DIMM DRAM Unknown
RAM slot #8 {EMPTY} Unknown DIMM DRAM Unknown
RAM slot #9 {EMPTY} Unknown DIMM DRAM Unknown
# Mounted Filesystems ########################################
Filesystem Size Used Type Opts Mountpoint
/dev/sda1 190M 11% ext3 rw /boot
/dev/sda2 38G 1% ext3 rw /data
/dev/sda3 9.7G 35% ext3 rw /
tmpfs 248M 0% tmpfs rw /dev/shm
# Disk Schedulers And Queue Size #############################
hdc | [cfq] 128
sda | [cfq] 128
# Disk Partioning ############################################
Device Type Start End Size
============ ==== ========== ========== ==================
/dev/sda Disk 53687091200
/dev/sda1 Part 1 25 197406720
/dev/sda2 Part 26 5090 41652817920
/dev/sda3 Part 5091 6395 10725765120
/dev/sda4 Part 6396 6527 1077511680
/dev/sda5 Part 6396 6526 1069286400
# Kernel Inode State #########################################
dentry-state | 33874 31788 45 0 0 0
file-nr | 510 0 49409
inode-nr | 20474 147
# LVM Volumes ################################################
No volume groups found
# RAID Controller ############################################
Controller | No RAID controller detected
# Network Config #############################################
Controller | Intel Corporation 82545EM Gigabit Ethernet Controller (Copper) (rev 01)
FIN Timeout | net.ipv4.tcp_fin_timeout = 60
Port Range | net.ipv4.ip_local_port_range = 1024 65535
# Interface Statistics #######################################
interface rx_bytes rx_packets rx_errors tx_bytes tx_packets tx_errors
========= ========= ========== ========== ========== ========== ==========
lo 800000 9000 0 800000 9000 0
eth0 30000000 90000 0 15000000 80000 0
sit0 0 0 0 0 0 0
# Network Connections ########################################
Connections from remote IP addresses
192.168.174.1 3
Connections to local IP addresses
192.168.174.129 3
Connections to top 10 local ports
22 3
States of connections
ESTABLISHED 3
LISTEN 3
# Top Processes ##############################################
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
10606 root 25 0 64268 1548 992 S 2.0 0.3 0:00.12 summary
1 root 15 0 10364 688 576 S 0.0 0.1 0:00.72 init
2 root RT -5 0 0 0 S 0.0 0.0 0:00.00 migration/0
3 root 34 19 0 0 0 S 0.0 0.0 0:00.00 ksoftirqd/0
4 root 10 -5 0 0 0 S 0.0 0.0 0:39.48 events/0
5 root 10 -5 0 0 0 S 0.0 0.0 0:00.00 khelper
10 root 11 -5 0 0 0 S 0.0 0.0 0:00.00 kthread
14 root 10 -5 0 0 0 S 0.0 0.0 0:00.09 kblockd/0
15 root 20 -5 0 0 0 S 0.0 0.0 0:00.00 kacpid
# Simplified and fuzzy rounded vmstat (wait please) ##########
procs ---swap-- -----io---- ---system---- --------cpu--------
r b si so bi bo ir cs us sy il wa st
1 0 0 0 2 15 175 25 0 0 100 0 0
0 0 0 0 0 0 1000 20 0 0 100 0 0
0 0 0 0 0 0 1000 20 0 0 100 0 0
0 0 0 0 0 0 1000 20 0 0 100 0 0
0 0 0 0 0 350 1000 35 0 0 99 1 0
# The End ####################################################

2条评论

写评论

您必须登录后才可以发表评论。

本人从事电脑网络维护工作多年,对电脑配置较为熟悉,闲暇之余精心搜罗了目前主流电脑配置清单推荐给大家。紧跟市场动态,定期更新电脑硬件配置方案,扫除一切垃圾坑爹配置,提供最具性价比的电脑配置清单!本站涵盖内容包括:电脑组装机配置单、电脑组装机报价、电脑组装机教程等,另外还提供很多技术文章供您学习!