服务器 H3C R4900 G3
Web界面:http://hdmemulator.h3c.com/#/hdm-main
通过HCL模拟器的Server进行操作
Server 账户密码:
localhost login: root
Password: 123456
查看CPU使用率
服务器查看命令:top
H3C交换机查看命令:display cpu
localhost:~# top
Mem: 66836K used, 686924K free, 140K shrd, 2424K buff, 18428K cached
CPU: 0% usr 0% sys 0% nic 100% idle 0% io 0% irq 0% sirq
Load average: 0.00 0.00 0.00 1/64 2366
PID PPID USER STAT VSZ %VSZ CPU %CPU COMMAND
1843 1 root S 19796 3% 0 0% /usr/sbin/rsyslogd -i /run/rsyslog
2309 1 chrony S 6796 1% 0 0% /usr/sbin/chronyd -f /etc/chrony/c
1980 1 root S 4468 1% 0 0% sshd: /usr/sbin/sshd [listener] 0
2313 1 minihttp S 3956 1% 0 0% /usr/sbin/mini_httpd -i /run/mini_
2326 2280 root S 1668 0% 0 0% -ash
1760 1 root S 1608 0% 0 0% /sbin/syslogd -t
2366 2326 root R 1600 0% 0 0% top
1904 1 root S 1592 0% 0 0% /usr/sbin/crond -c /etc/crontabs
1 0 root S 1588 0% 0 0% /sbin/init
2272 1 root S 1588 0% 0 0% /sbin/getty 38400 tty5
1816 1 root S 1588 0% 0 0% /sbin/acpid
2264 1 root S 1588 0% 0 0% /sbin/getty 38400 tty3
2259 1 root S 1588 0% 0 0% /sbin/getty 38400 tty1
2260 1 root S 1588 0% 0 0% /sbin/getty 38400 tty2
2268 1 root S 1588 0% 0 0% /sbin/getty 38400 tty4
2280 1 root S 1588 0% 0 0% /bin/login -- root
2276 1 root S 1588 0% 0 0% /sbin/getty 38400 tty6
13 2 root IW 0 0% 0 0% [kworker/0:1-eve]
368 2 root IW< 0 0% 0 0% [kworker/0:1H-kb]
219 2 root SW 0 0% 0 0% [kcompactd0]
例如eg:
CPU: 0% usr 0% sys 0% nic 100% idle 0% io 0% irq 0% sirq
usr:用户空间占用CPU百分比
sys:内核空间占用CPU百分比
nic:用户进程空间内改变过优先级的进程占用CPU百分比
idle:空闲CPU百分比
查看CPU使用进程
查看命令:top -H
H3C交换机查看命令:display processes cpu
localhost:~# top -H
Mem: 66836K used, 686924K free, 140K shrd, 2424K buff, 18428K cached
CPU: 0% usr 0% sys 0% nic 100% idle 0% io 0% irq 0% sirq
Load average: 0.00 0.00 0.00 1/64 2368
PID PPID USER STAT VSZ %VSZ CPU %CPU COMMAND
1843 1 root S 19796 3% 0 0% /usr/sbin/rsyslogd -i /run/rsyslog
1845 1 root S 19796 3% 0 0% {in:imuxsock} /usr/sbin/rsyslogd -
1846 1 root S 19796 3% 0 0% {in:imklog} /usr/sbin/rsyslogd -i
1848 1 root S 19796 3% 0 0% {rs:main Q:Reg} /usr/sbin/rsyslogd
1844 1 root S 19796 3% 0 0% {in:immark} /usr/sbin/rsyslogd -i
1847 1 root S 19796 3% 0 0% {imudp(w0)} /usr/sbin/rsyslogd -i
2309 1 chrony S 6796 1% 0 0% /usr/sbin/chronyd -f /etc/chrony/c
1980 1 root S 4468 1% 0 0% sshd: /usr/sbin/sshd [listener] 0
2313 1 minihttp S 3956 1% 0 0% /usr/sbin/mini_httpd -i /run/mini_
2326 2280 root S 1668 0% 0 0% -ash
1760 1 root S 1608 0% 0 0% /sbin/syslogd -t
2368 2326 root R 1604 0% 0 0% top -H
1904 1 root S 1592 0% 0 0% /usr/sbin/crond -c /etc/crontabs
1 0 root S 1588 0% 0 0% /sbin/init
2264 1 root S 1588 0% 0 0% /sbin/getty 38400 tty3
2268 1 root S 1588 0% 0 0% /sbin/getty 38400 tty4
2260 1 root S 1588 0% 0 0% /sbin/getty 38400 tty2
2259 1 root S 1588 0% 0 0% /sbin/getty 38400 tty1
2280 1 root S 1588 0% 0 0% /bin/login -- root
2272 1 root S 1588 0% 0 0% /sbin/getty 38400 tty5
查看内存
查看命令:free -m (以"MB 兆"的数据存储单位进行显示)
查看命令:free -k (以"KB 千字节"的数据存储单位进行显示)
localhost:~# free -m
total used free shared buff/cache available
Mem: 736 28 667 0 40 691
Swap: 968 0 968
localhost:~# free -k
total used free shared buff/cache available
Mem: 753764 28716 683848 140 41200 708312
Swap: 992252 0 992252
total used free shared buff/cache available
全部 已使用 剩余 共享 缓冲/缓存 可获得的
查看服务器的磁盘空间
查看命令:df - h (利用方便阅读的数据存储单位显示本地文件系统)
localhost:~# df -h
Filesystem Size Used Available Use% Mounted on
devtmpfs 10.0M 0 10.0M 0% /dev
shm 368.0M 0 368.0M 0% /dev/shm
/dev/sda3 6.8G 252.3M 6.1G 4% /
tmpfs 147.2M 140.0K 147.1M 0% /run
/dev/sda1 88.2M 15.4M 65.8M 19% /boot
/dev/sdb1 1022.0M 60.0K 1021.9M 0% /root
Filesystem Size Used Available Use% Mounted on
文件系统 分区的总大小 已经使用的空间 可用空间 已经使用的百分比 挂载路径