Github user ottobackwards commented on a diff in the pull request:

    https://github.com/apache/incubator-metron/pull/400#discussion_r95818504
  
    --- Diff: metron-deployment/scripts/platform-info.sh ---
    @@ -62,3 +62,39 @@ mvn --version
     # operating system
     echo "--"
     uname -a
    +
    +# system resources
    +echo "--"
    +case "${OSTYPE}" in
    +  linux*)
    +    cat /proc/meminfo  | grep -i MemTotal | awk '{print "Total System 
Memory = " $2/1024 " MB"}'
    +    cat /proc/cpuinfo | egrep 'model\ name' | uniq | cut -d: -f2 | awk 
'{print "Processor Model:" $0}'
    +    cat /proc/cpuinfo | egrep 'cpu\ MHz' | uniq | cut -d: -f2 | awk 
'{print "Processor Speed:" $0 " MHz"}'
    +    cat /proc/cpuinfo | grep -i '^processor' | wc -l | awk '{print "Total 
Physical Processors: " $0}'
    +    cat /proc/cpuinfo | grep -i cores | cut -d: -f2 | awk '{corecount+=$1} 
END {print "Total cores: " corecount}'
    +    echo "Disk information:"
    +    df -h | grep "^/" 
    +    ;;
    +  darwin*)
    +    sysctl hw.memsize | awk '{print "Total System Memory = " $2/1048576 " 
MB"}'
    +    sysctl machdep.cpu | grep 'machdep.cpu.brand_string' | cut -d: -f2 | 
cut -d\@ -f1 | awk '{print "Processor Model:" $0}'
    +    sysctl machdep.cpu | grep 'machdep.cpu.brand_string' | cut -d: -f2 | 
cut -d\@ -f2 | awk '{print "Processor Speed:" $0}'
    +    sysctl hw.physicalcpu | cut -d: -f2 | awk '{print "Total Physical 
Processors:" $0}'
    +    sysctl machdep.cpu | grep 'machdep.cpu.core_count' | cut -d: -f2 | cut 
-d\@ -f2 | awk '{print "Total cores:" $0}'
    +    echo "Disk information:"
    +    df -h | grep "^/" 
    +    ;;
    +  bsd*)
    +    echo "BSD is not currently supported, unable to detect system 
resources"
    +    ;;
    --- End diff --
    
    What the script supports and what Metron supports can be different things, 
there can be bugs logged for improving the script


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to