显示linux系统中当前服务器中的全部网络设备信息:
# ifconfig
eth0 Link encap:Ethernet HWaddr 00:50:56:0A:0B:0C inet addr:192.168.0.3 Bcast:192.168.0.255 Mask:255.255.255.0inet6 addr: fe80::250:56ff:fe0a:b0c/64 Scope:LinkUP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1RX packets:172220 errors:0 dropped:0 overruns:0 frame:0TX packets:132379 errors:0 dropped:0 overruns:0 carrier:0collisions:0 txqueuelen:1000 RX bytes:87101880 (83.0 MiB) TX bytes:41576123 (39.6 MiB)Interrupt:185 Base address:0x2024 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0inet6 addr: ::1/128 Scope:HostUP LOOPBACK RUNNING MTU:16436 Metric:1RX packets:2022 errors:0 dropped:0 overruns:0 frame:0TX packets:2022 errors:0 dropped:0 overruns:0 carrier:0collisions:0 txqueuelen:0 RX bytes:2459063 (2.3 MiB) TX bytes:2459063 (2.3 MiB)
查询eth0网口基本设置
# ethtool eth0
查询当前网口是否是万兆网,以下图为例,就是千兆网的意思
nmon是一种在AIX与各种Linux操作系统上广泛使用的监控与分析工具,能在系统运行过程中实时地捕捉系统资源的使用情况,记录的信息比较全面。
内存使用情况
磁盘适配器
文件系统中的可用空间
CPU使用率
页面空间和页面速度
异步I/O,仅适用于AIX
网络文件系统(NFS)
磁盘I/O速度和读写比率
服务器详细信息和资源
内核统计信息
消耗资源最多的进程
运行队列信息
可以实时监控网络速度。