This shows you the differences between two versions of the page.
|
blog:linux:simple_scripts [2007/12/04 18:25] donginn |
blog:linux:simple_scripts [2008/02/06 07:28] (current) donginn |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Simple scripts ====== | ====== Simple scripts ====== | ||
| I would like to share my simple scripts that I found useful while working for the Open Systems Lab([[http://www.osl.iu.edu|OSL]]) as a System Administrator | I would like to share my simple scripts that I found useful while working for the Open Systems Lab([[http://www.osl.iu.edu|OSL]]) as a System Administrator | ||
| + | |||
| + | ===== lsof ===== | ||
| + | Sometimes my system is in trouble with the high loadaverage of the web server because of the attack of some malicious IPs.\\ | ||
| + | I have tried to look for a command to get the IPs which make this kind of trouble by looking into its pid. | ||
| + | <code> | ||
| + | lsof -nP -w -T -i tcp | grep httpd | grep <PROCESS_ID_TO_CHECK> | ||
| + | </code> | ||
| ===== diff ===== | ===== diff ===== | ||