Skip to content

Instantly share code, notes, and snippets.

@tonycn
Last active August 29, 2015 14:17
Show Gist options
  • Save tonycn/72d3bc32c491510ff864 to your computer and use it in GitHub Desktop.
Save tonycn/72d3bc32c491510ff864 to your computer and use it in GitHub Desktop.
useful commands
#############################################
### 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