Difference between revisions of "Creating calculate GB in one days of logs for MLM"

From cpwiki.net
Jump to: navigation, search
Check Point Profressional Services
Line 2: Line 2:
 
  mcd customers
 
  mcd customers
 
  # for CLM in *; do mdsenv $CLM; find $CLM/CPsuite-R77/fw1/log/*.log -mtime -1 | xargs ls -l | awk '{s+=$5} END {printf "%.0f", s; print "/1024/1024/1024"}' | bc -l; done | awk '{s+=$1} END {print s}'
 
  # for CLM in *; do mdsenv $CLM; find $CLM/CPsuite-R77/fw1/log/*.log -mtime -1 | xargs ls -l | awk '{s+=$5} END {printf "%.0f", s; print "/1024/1024/1024"}' | bc -l; done | awk '{s+=$1} END {print s}'
64.5209
+
 
  
 
[[category:mlm]]
 
[[category:mlm]]
 
[[category:logging]]
 
[[category:logging]]

Revision as of 15:44, 3 October 2017

to get log quantity for the last 24 hours...

mcd customers
# for CLM in *; do mdsenv $CLM; find $CLM/CPsuite-R77/fw1/log/*.log -mtime -1 | xargs ls -l | awk '{s+=$5} END {printf "%.0f", s; print "/1024/1024/1024"}' | bc -l; done | awk '{s+=$1} END {print s}'