首页 技术 正文
技术 2022年11月16日
0 收藏 571 点赞 3,165 浏览 2608 个字

转载请注明出处。

如果想远程管理服务器就有远程管理卡,比如Dell idRAC,HP ILO,IBM IMM

查看硬件的温度/风扇转速,电脑有撸大师,服务器就有ipmitool。使用ipmitool实现对服务器的命令行远程管理

yum -y install OpenIPMI ipmitool  #->IPMI在物理机可以成功,虚拟机不行
[root@KVM ~]# ipmitool sdr type Temperature
Temp | 01h | ns | 3.1 | Disabled
Temp | 02h | ns | 3.2 | Disabled
Temp | 05h | ns | 10.1 | Disabled
Temp | 06h | ns | 10.2 | Disabled
Ambient Temp | 0Eh | ok | 7.1 | degrees C
Planar Temp | 0Fh | ns | 7.1 | Disabled
IOH THERMTRIP | 5Dh | ns | 7.1 | Disabled
CPU Temp Interf | 76h | ns | 7.1 | Disabled
Temp | 0Ah | ns | 8.1 | Disabled
Temp | 0Bh | ns | 8.1 | Disabled
Temp | 0Ch | ns | 8.1 | Disabled

查看cpu方面

想知道了cpu性能好不好、忙不忙可以用lscpu、uptime、top、htop。

[root@m02 ~]# lscpu
Architecture: x86_64
CPU op-mode(s): -bit, -bit
Byte Order: Little Endian
CPU(s):
On-line CPU(s) list:
Thread(s) per core:
Core(s) per socket:
Socket(s):
NUMA node(s):
Vendor ID: GenuineIntel
CPU family:
Model:
Model name: Intel(R) Core(TM) i5-6300HQ CPU @ .30GHz
Stepping:
CPU MHz: 2302.121
CPU max MHz: 0.0000
CPU min MHz: 0.0000
BogoMIPS: 4607.99
Hypervisor vendor: VMware
Virtualization type: full
L1d cache: 32K
L1i cache: 32K
L2 cache: 256K
L3 cache: 6144K
NUMA node0 CPU(s):
Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts mmx fxsr sse sse2 ss syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts nopl xtopology tsc_reliable nonstop_tsc aperfmperf eagerfpu pni pclmulqdq ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm abm 3dnowprefetch epb fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 invpcid rtm rdseed adx smap xsaveopt dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp

实例

  cpu负载:

[root@m02 ~]# uptime
:: up :, user, load average: 0.00, 0.05, 0.05

查看内存方面

  内存够不够可以用free

[root@cache01 ~]# free -h
total used free shared buff/cache available
Mem: 472M 105M 93M 4.8M 272M 325M
Swap: .0G 0B .0G

查看磁盘相关

磁盘剩多少写的快不快可以用df、dd、iotop

[root@m01 ~]# yum install iotop -y
[root@m01 ~]# iotop
Total DISK READ : 3.22 M/s | Total DISK WRITE : 3.78 K/s
Actual DISK READ: 3.22 M/s | Actual DISK WRITE: 3.78 K/s
TID PRIO USER DISK READ DISK WRITE SWAPIN IO> COMMAND
be/ root 30.24 K/s 0.00 B/s 0.00 % 4.33 % python /usr/sbin/iotop
be/ zabbix 0.00 B/s 0.00 B/s 0.00 % 3.02 % zabbix_agentd: listene~aiting for connection]
be/ zabbix 434.65 K/s 0.00 B/s 0.00 % 2.78 % zabbix_agentd: listene~aiting for connection]
be/ zabbix 0.00 B/s 0.00 B/s 0.00 % 2.78 % zabbix_agentd: listene~aiting for connection]
be/ zabbix 2.76 M/s 0.00 B/s 0.00 % 1.48 % zabbix_server: db watchdog [pinging database]
be/ mysql 0.00 B/s 3.78 K/s 0.00 % 0.05 % mysqld --basedir=/usr ~r/lib/mysql/mysql.sock
be/ root 0.00 B/s 0.00 B/s 0.00 % 0.00 % systemd --switched-roo~ystem --deserialize
be/ root 0.00 B/s 0.00 B/s 0.00 % 0.00 % [kthreadd]
be/ root 0.00 B/s 0.00 B/s 0.00 % 0.00 % [ksoftirqd/]
be/ root 0.00 B/s 0.00 B/s 0.00 % 0.00 % [kworker/:0H]
rt/ root 0.00 B/s 0.00 B/s 0.00 % 0.00 % [migration/]
be/ root 0.00 B/s 0.00 B/s 0.00 % 0.00 % [rcu_bh]
be/ root 0.00 B/s 0.00 B/s 0.00 % 0.00 % [rcu_sched]

实例

查看网络方面

  网络太卡找iftop, nethogs

  nethogs:

来一波Linux中查看cpu、磁盘、内存、网络的命令

  iftop:

来一波Linux中查看cpu、磁盘、内存、网络的命令

相关推荐
python开发_常用的python模块及安装方法
adodb:我们领导推荐的数据库连接组件bsddb3:BerkeleyDB的连接组件Cheetah-1.0:我比较喜欢这个版本的cheeta…
日期:2022-11-24 点赞:878 阅读:9,083
Educational Codeforces Round 11 C. Hard Process 二分
C. Hard Process题目连接:http://www.codeforces.com/contest/660/problem/CDes…
日期:2022-11-24 点赞:807 阅读:5,558
下载Ubuntn 17.04 内核源代码
zengkefu@server1:/usr/src$ uname -aLinux server1 4.10.0-19-generic #21…
日期:2022-11-24 点赞:569 阅读:6,407
可用Active Desktop Calendar V7.86 注册码序列号
可用Active Desktop Calendar V7.86 注册码序列号Name: www.greendown.cn Code: &nb…
日期:2022-11-24 点赞:733 阅读:6,180
Android调用系统相机、自定义相机、处理大图片
Android调用系统相机和自定义相机实例本博文主要是介绍了android上使用相机进行拍照并显示的两种方式,并且由于涉及到要把拍到的照片显…
日期:2022-11-24 点赞:512 阅读:7,817
Struts的使用
一、Struts2的获取  Struts的官方网站为:http://struts.apache.org/  下载完Struts2的jar包,…
日期:2022-11-24 点赞:671 阅读:4,900