Month: January 2015
-
RHEL replace rsyslog with rsyslog7 without clearing dependencies
You want to install rsyslog7 but you get: Error: rsyslog7 conflicts with rsyslog-5.8.10-10.el6_6.x86_64 So you choose to erase/remove rsyslog first, but this removes: cronie, cronie-anacron, crontabs, redhat-lsb, redhat-lsb-compat, redhat-lsb-core, redhat-lsb-graphics, redhat-lsb-printing, rsyslog-relp, sysstat The solution is to use yum shell (EDIT: OR USE YUM SWAP) # yum shell Loaded plugins: security Setting up Yum Shell…
-
Grep color matched lines but show all
tail -f /var/log/messages | grep -E –line-buffered –color ‘.*kernel.*|$’ This will show all lines from the tail, with lines having ‘kernel’ in them colored.
-
View swap rates Linux/vm
Use vmstat . Also try vmstat -f to see # of forks (interesting). Use -w to make the output more wide.