Wednesday, January 3, 2018

System Stats

                                           System Stats 


To provides a quick snapshot of the CPU, memory,network and IO usage on the node. Attached are three scripts which can gather this information on a regular interval (SystemStats.sh) and will capture the output into output files under /opt/mapr/logs/. The SystemStats.sh script is used to start the data collection gathering and the SystemStatsStop.sh script is used to stop it. Ideally its useful to have the system stats available for investigating any system related issues to narrow down quickly if there was any resource constrain contributing to the issue .

The SystemStats.sh script can be started as below to put it to the background: 

nohup ./SystemStats.sh > /opt/mapr/logs/SystemStats.out 2>/opt/mapr/logs/SystemStats.err & 

Please start the SystemStats.sh script on the node XXX for X hrs, Run SystemStatsStop.sh to stop all of the data collection commands. 

To collect the output files as well as the MapR logs into a single .tgz you can run "tar -czf /tmp/diagnostics.$HOSTNAME.tgz /opt/mapr/logs". 

Finally to delete all the collected logs please  run " sh CleanUpStats.sh "




No comments:

Post a Comment