“ss -i” equivalent for AIX

port=636 lsof -i:$port 2>/dev/null | awk ‘/ESTABLISHED/ && $5==”IPv4″ {print $6}’ | while read addr do echo “sockinfo $addr tcpcb”| kdb | /opt/freeware/bin/awk –non-decimal-data ‘ \ /snd_cwnd/ {print “CWND: ” (“0x”$2)+0} \ /snd_wnd./ {print “RWND: ” (“0x”$2)+0 “\nMY_RWND: ” (“0x”$4)+0} \ /snd_wnd_scale./ {print “RWND_SCALE: ” (“0x”$2)+0 “\nMY_RWND_SCALE: ” (“0x”$4)+0} \ /\s+t_flags./ {print”TCP_FLAGS: ” $0; getline; […]

Continue readingMore Tag
Scroll to top
Click to access the login or register cheese