Last active
August 29, 2015 14:17
-
-
Save tonycn/72d3bc32c491510ff864 to your computer and use it in GitHub Desktop.
useful commands
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
############################################# | |
### Use watch to dump networking info | |
############################################# | |
watch -n 30 /root/script/dump_networking.sh &>/dev/null & | |
!/bin/sh | |
file_name=`date +%Y_%m_%d_%H_%M_%S`'.log' | |
netstat -nalp > '/var/log/networking-mornitor/'$file_name | |
ps -e >> '/var/log/networking-mornitor/'$file_name |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment