Application Delivery Management
Application Modernization & Connectivity
CyberRes
IT Operations Management
#!/bin/bash
# =====================================================
# ics_dyn:
# Solve the high CPU usage setting flags to the NAM
# TIME_WAIT:
# Stabilizes connections with a TCP tunning
# =====================================================
# William Vera wvera@novell.com
# Feb 21 2013 V0.002
# =====================================================
# ics_dyn
if [ -f /var/opt/novell/naudit/nproduct.log ];then rm /var/opt/novell/naudit/nproduct.log;fi
touch /var/novell/.releaseclosewait
touch /var/novell/.fixCloseWait
touch /var/novell/.releasetimedoutbrowserconn
/etc/init.d/novell-vmc stop
rm /var/novell/.~newInstall
/etc/init.d/novell-vmc start
cat >> /etc/sysctl.conf << EOF
# TCP Tunning - DON'T EDIT BELOW
net.ipv4.tcp_fin_timeout = 25
net.core.netdev_max_backlog = 2500
net.ipv4.tcp_tw_recycle = 1
net.ipv4.tcp_tw_reuse = 1
# Detect network errores
net.ipv4.tcp_keepalive_time=60
net.ipv4.tcp_keepalive_probes=3
net.ipv4.tcp_keepalive_intvl=15
EOF
/sbin/sysctl -p >/dev/null 2>&1
/sbin/sysctl -w net.ipv4.route.flush=1 >/dev/null 2>&1
netstat -nap | awk '/tcp/ {print $6}'| sort | uniq -c