Skip to content

Instantly share code, notes, and snippets.

@dcarley
Created November 15, 2012 10:34
Show Gist options
  • Select an option

  • Save dcarley/4077894 to your computer and use it in GitHub Desktop.

Select an option

Save dcarley/4077894 to your computer and use it in GitHub Desktop.
Antivirus on servers
$ ps -o user,pid,vsz,rss,args -C cma
USER PID VSZ RSS COMMAND
root 1819 196940 12964 /opt/McAfee/cma/bin/cma
root 1834 196940 12964 /opt/McAfee/cma/bin/cma
root 1836 196940 12964 /opt/McAfee/cma/bin/cma
root 1838 196940 12964 /opt/McAfee/cma/bin/cma
root 1895 196940 12964 /opt/McAfee/cma/bin/cma
root 1896 196940 12964 /opt/McAfee/cma/bin/cma
root 1897 196940 12964 /opt/McAfee/cma/bin/cma
root 1898 196940 12964 /opt/McAfee/cma/bin/cma
root 1899 196940 12964 /opt/McAfee/cma/bin/cma
root 1900 196940 12964 /opt/McAfee/cma/bin/cma
root 1901 196940 12964 /opt/McAfee/cma/bin/cma
root 1902 196940 12964 /opt/McAfee/cma/bin/cma
root 1903 196940 12964 /opt/McAfee/cma/bin/cma
root 1904 196940 12964 /opt/McAfee/cma/bin/cma
root 1907 196940 12964 /opt/McAfee/cma/bin/cma
root 1908 196940 12964 /opt/McAfee/cma/bin/cma
root 1909 196940 12964 /opt/McAfee/cma/bin/cma
root 1937 196940 12964 /opt/McAfee/cma/bin/cma
$ ps -o rss -C cma | awk '{ SUM+=$1 } END { print SUM }'
233352
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment