Month: June 2016
-
tcpdump all but own (connected) ip
sudo tcpdump -i any not host $( echo $SSH_CLIENT |cut -d’ ‘ -f1 )
-
List all arcsight connector memory usages
RHEL7 cd /etc/init.d/; for initname in arc_*; do echo $initname = $(( ( $( ps –no-headers -q $( cat /opt/arcsight/connectors/*/current/run/$initname.pid ) -o rss ) + $( ps –no-headers -q $( cat /opt/arcsight/connectors/*/current/run/$initname.java.pid ) -o rss ) ) / 1024 )) MB used, $( grep maxmem $( echo /opt/arcsight/connectors/$initname/current/user/agent/agent.wrapper.conf | sed ‘s/arc_//g’ ) | egrep -o…