一, 脚本监控文件 #!/bin/bash # @Function # Find out the highest cpu consumed threads of java, and print the stack of these threads. # # @Usage # $ ./show-busy-java-threads.sh # # @author Jerry Lee readonly PROG=`basename $` readonly -a COMMAND_LINE=("$0&quo
#!/bin/bash #this script is used to get tcp and udp connetion status #tcp status metric=$ tmp_file=/tmp/tcp_status.txt /usr/sbin/ss -ant | awk '{++S[$1]};END {for(a in S) print a, S[a]}' > $tmp_file case $metric in closed) output=$(awk '/CLOSED/{prin