User Tools

Site Tools


recap_oneliner

This is an old revision of the document!


Command for navigating through recap/rs-sysmon easier
Recap:

echo -e "\nActive users:"; w -h | grep -v rack; echo -e "\n"; \sar -q -s `date -d '-3 hour' +%T`;cd /var/log/recap;echo ""; ls -ltr resour* | tail -n 10 ; echo -e "\n\nTime?";read vr2;echo ""; ls -ltr resources* | grep $vr2 | cat $(awk '{ print $NF }') | egrep -m 2 -A 15 "UPTIME report | cut -b 119- |Top 10 cpu using processes"; unset vr2;echo "";

echo -e "\nActive users:"; w -h | grep -v rack; echo -e "\n"; \sar -q -s `date -d '-3 hour' +%T`;cd /var/log/rs-sysmon;echo ""; ls -ltr resour* | tail -n 10 ; echo -e "\n\nTime?";read vr2;echo ""; ls -ltr resources* | grep $vr2 | cat $(awk '{ print $NF }') | egrep -m 2 -A 15 "UPTIME report | cut -b 119- |Top 10 cpu using processes"; unset vr2;echo "";

recap_oneliner.1436192458.txt.gz · Last modified: 2024/05/23 07:26 (external edit)

Except where otherwise noted, content on this wiki is licensed under the following license: Public Domain
Public Domain Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki