Jun 022016
 

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 '[0-9]*' | awk '{ sum+=$1} END {print sum}' ) MB configured, build $( egrep -m1 -o "version=\"[67][0-9\.]*\"" $( echo /opt/arcsight/connectors/$initname/current/*common.xml | sed 's/arc_//g' ) )  ; done

RHEL6

 cd /etc/init.d/; for initname in arc_*; do echo $initname = $(( ( $( ps --no-headers -p $( cat /opt/arcsight/connectors/*/current/run/$initname.pid ) -o rss ) + $( ps --no-headers -p $( 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 '[0-9]*' | awk '{ sum+=$1} END {print sum}' ) MB configured, build $( egrep -m1 -o "version=\"[67][0-9\.]*\"" $( echo /opt/arcsight/connectors/$initname/current/*common.xml | sed 's/arc_//g' ) )  ; done
 Posted by at 06:52

Sorry, the comment form is closed at this time.