成人免费xxxxx在线视频软件_久久精品久久久_亚洲国产精品久久久_天天色天天色_亚洲人成一区_欧美一级欧美三级在线观看

功能強大的系統(tǒng)工具Sysdig命令實例介紹

運維 系統(tǒng)運維 Linux
Sysdig是一個能夠讓系統(tǒng)管理員和開發(fā)人員以前所未有方式洞察其系統(tǒng)行為的監(jiān)控工具。我們可以用sysdig命令做很多很酷的事情。你如果有更有趣的用法,想添加到下面的命令例子中,請告訴我們!

  Sysdig是一個能夠讓系統(tǒng)管理員和開發(fā)人員以***方式洞察其系統(tǒng)行為的監(jiān)控工具。我們可以用sysdig命令做很多很酷的事情。你如果有更有趣的用法,想添加到下面的命令例子中,請告訴我們!

[[154652]]

  1.網(wǎng)絡(luò)

  查看占用網(wǎng)絡(luò)帶寬最多的進程:  

  1. sysdig -c topprocs_net 

  顯示主機192.168.0.1的網(wǎng)絡(luò)傳輸數(shù)據(jù):

 

  1. as binary 
  2. sysdig -s2000 -X -c echo_fds fd.cip=192.168.0.1  
  3. as ASCII:  
  4. sysdig -s2000 -A -c echo_fds fd.cip=192.168.0.1 

  查看連接最多的服務(wù)器端口:

 

  1. in terms of established connections:  
  2. sysdig -c fdcount_by fd.sport "evt.type=accept"  
  3. in terms of total bytes:  
  4. sysdig -c fdbytes_by fd.sport 

  查看客戶端連接最多的ip:

 

  1. in terms of established connections  
  2. sysdig -c fdcount_by fd.cip "evt.type=accept"  
  3. in terms of total bytes  
  4. sysdig -c fdbytes_by fd.cip 

  列出所有不是訪問apache服務(wù)的訪問連接:  

  1. sysdig -p"%proc.name %fd.name" "evt.type=accept and proc.name!=httpd" 

  2.容器

  查看機器上運行的容器列表及其資源使用情況:  

  1. sudo csysdig -vcontainers 

  查看容器上下文的進程列表:  

  1. sudo csysdig -pc 

  查看運行在wordpress1容器里CPU的使用率:  

  1. sudo sysdig -pc -c topprocs_cpu container.name=wordpress1 

  查看運行在wordpress1容器里網(wǎng)絡(luò)帶寬的使用率:  

  1. sudo sysdig -pc -c topprocs_net container.name=wordpress1 

  查看在wordpress1容器里使用網(wǎng)絡(luò)帶寬最多的進程:  

  1. sudo sysdig -pc -c topprocs_net container.name=wordpress1 

  查看在wordpress1 容器里占用 I/O 字節(jié)最多的文件:  

  1. sudo sysdig -pc -c topfiles_bytes container.name=wordpress1 

  查看在wordpress1 容器里網(wǎng)絡(luò)連接的排名情況:  

  1. sudo sysdig -pc -c topconns container.name=wordpress1 

  顯示wordpress1容器里所有命令執(zhí)行的情況:  

  1. sudo sysdig -pc -c spy_users container.name=wordpress1 

  3.應(yīng)用

  查看機器所有的HTTP請求:  

  1. sudo sysdig -s 2000 -A -c echo_fds fd.port=80 and evt.buffer contains GET 

  查看機器所有的SQL select查詢:

 

  1. sudo sysdig -s 2000 -A -c echo_fds evt.buffer contains SELECT  
  2. See queries made via apache to an external MySQL server happening in real time  
  3. sysdig -s 2000 -A -c echo_fds fd.sip=192.168.30.5 and proc.name=apache2 and evt.buffer contains SELECT 

  4.硬盤 I/O

  查看使用硬盤帶寬最多的進程:  

  1. sysdig -c topprocs_file 

  列出使用大量文件描述符的進程:

 

  1. sysdig -c fdcount_by proc.name "fd.type=file"  
  2. See the top files in terms of read+write bytes  
  3. sysdig -c topfiles_bytes  
  4. Print the top files that apache has been reading from or writing to  
  5. sysdig -c topfiles_bytes proc.name=httpd  
  6. Basic opensnoop: snoop file opens as they occur  
  7. sysdig -p "%12user.name %6proc.pid %12proc.name %3fd.num %fd.typechar %fd.name" evt.type=open  
  8. See the top directories in terms of R+W disk activity  
  9. sysdig -c fdbytes_by fd.directory "fd.type=file"  
  10. See the top files in terms of R+W disk activity in the /tmp directory  
  11. sysdig -c fdbytes_by fd.filename "fd.directory=/tmp/"  
  12. Observe the I/O activity on all the files named 'passwd'  
  13. sysdig -A -c echo_fds "fd.filename=passwd"  
  14. Display I/O activity by FD type  
  15. sysdig -c fdbytes_by fd.type 

  進程和CPU使用率:

 

  1. See the top processes in terms of CPU usage  
  2. sysdig -c topprocs_cpu  
  3. See the top processes for CPU 0  
  4. sysdig -c topprocs_cpu evt.cpu=0  
  5. Observe the standard output of a process  
  6. sysdig -s4096 -A -c stdout proc.name=cat 

  性能和錯誤:

 

  1. See the files where most time has been spent  
  2. sysdig -c topfiles_time  
  3. See the files where apache spent most time  
  4. sysdig -c topfiles_time proc.name=httpd  
  5. See the top processes in terms of I/O errors  
  6. sysdig -c topprocs_errors  
  7. See the top files in terms of I/O errors  
  8. sysdig -c topfiles_errors  
  9. See all the failed disk I/O calls  
  10. sysdig fd.type=file and evt.failed=true  
  11. See all the failed file opens by httpd  
  12. sysdig "proc.name=httpd and evt.type=open and evt.failed=true"  
  13. See the system calls where most time has been spent  
  14. sysdig -c topscalls_time  
  15. See the top system calls returning errors  
  16. sysdig -c topscalls "evt.failed=true"  
  17. snoop failed file opens as they occur  
  18. sysdig -p "%12user.name %6proc.pid %12proc.name %3fd.num %fd.typechar %fd.name" evt.type=open and evt.failed=true  
  19. Print the file I/O calls that have a latency greater than 1ms:  
  20. sysdig -c fileslower 1 

  5.安全

 

  1. Show the directories that the user "root" visits  
  2. sysdig -p"%evt.arg.path" "evt.type=chdir and user.name=root"  
  3. Observe ssh activity  
  4. sysdig -A -c echo_fds fd.name=/dev/ptmx and proc.name=sshd  
  5. Show every file open that happens in /etc  
  6. sysdig evt.type=open and fd.name contains /etc  
  7. Show the ID of all the login shells that have launched the "tar" command  
  8. sysdig -r file.scap -c list_login_shells tar  
  9. Show all the commands executed by the login shell with the given ID  
  10. sysdig -r trace.scap.gz -c spy_users proc.loginshellid=5459 

  原文:http://www.sysdig.org/wiki/sysdig-examples/

責(zé)任編輯:火鳳凰 來源: 運維幫
相關(guān)推薦

2010-03-05 09:19:54

Android系統(tǒng)

2021-07-09 10:14:05

IP工具命令

2011-04-15 09:27:09

Windows PhoWindows phoMango

2017-04-20 18:00:59

Linux命令行工具系統(tǒng)信息

2023-12-19 09:00:03

OCR軟件開源Ocrad

2020-06-19 09:35:58

備份Linux系統(tǒng)工具

2020-12-24 17:08:52

安全工具NoSql注入接口工具

2021-10-10 12:17:06

Weakpass在線字典生成器安全工具

2009-07-07 08:46:11

微軟Windows 7新功能

2020-12-15 07:54:40

工具Hutoolgithub

2020-12-15 15:08:17

工具Java線程

2024-01-15 18:02:09

docker系統(tǒng)文件格式

2013-01-23 11:30:39

JSVirtualKeybjQuery

2010-02-03 17:01:14

2010-03-04 13:36:55

openSUSE

2021-09-14 15:01:31

Pstf安全工具指紋框架

2024-06-18 07:50:43

2022-08-18 11:36:28

網(wǎng)絡(luò)嗅探工具網(wǎng)絡(luò)安全

2021-11-01 05:53:08

Doldrums逆向工程分析工具安全工具

2025-06-30 09:33:26

點贊
收藏

51CTO技術(shù)棧公眾號

主站蜘蛛池模板: 日韩欧美三级电影在线观看 | 激情网五月天 | 欧美性生活网 | 九九热在线观看视频 | 激情欧美日韩一区二区 | 天天影视网天天综合色在线播放 | 亚洲欧美综合精品久久成人 | 亚洲精品国产第一综合99久久 | 麻豆成人在线视频 | 日韩精品一区二区久久 | 综合色导航 | 九九天堂网 | 老妇激情毛片免费 | 亚洲不卡在线观看 | 亚洲一区二区在线播放 | 成人国产一区二区三区精品麻豆 | 亚洲看片网站 | 看羞羞视频免费 | 天天色天天色 | 99免费看 | 亚洲综合在线视频 | 欧洲妇女成人淫片aaa视频 | 男女视频在线看 | 欧美日韩一区不卡 | 亚洲精品成人 | 欧美视频1区| 精品自拍视频在线观看 | 欧美日一区 | 国产在线a| 欧美性一区二区三区 | 性国产xxxx乳高跟 | 91影院| 久久国产欧美日韩精品 | 欧美vide | 日本人做爰大片免费观看一老师 | 99久久免费精品国产男女高不卡 | 免费视频一区二区 | 91在线观看网址 | 黄色成人av | 爱爱综合网 | 四虎影视在线 |