ps -eo pcpu,pid,user,args | sort -k 1 -r | head -10
This will show the process which are consuming max CPU
Wednesday, October 28, 2009
Command to find CPU usage of process
Install NTP
# yum install ntp
# chkconfig ntpd on
# ntpdate pool.ntp.org
and start the NTP
# /etc/init.d/ntpd start
Note :: Do not forget to open port 123 in firewall.
Thanks
Ninad
Syslogd failed
Check whether syslogd is missing or not:
Thanks
Ninad
rpm -q sysklogdIf nothing shows up, do the following to install it:
yum install sysklogdRestart syslogd service:
/scripts/restartsrv_syslogd
Thanks
Ninad
YUM Error
If you are getting this error on cpanel server
root@ninad~]# yum check-update Loading “installonlyn” plugin Setting up repositories Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=5&arch=i386& repo=extras error was [Errno 4] IOError: Error: Cannot find a valid baseurl for repo: extras
Solution
yum clean metadata
yum clean dbcache
yum makecache
Thanks
Ninad
root@ninad~]# yum check-update Loading “installonlyn” plugin Setting up repositories Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=5&arch=i386& repo=extras error was [Errno 4] IOError: Error: Cannot find a valid baseurl for repo: extras
Solution
yum clean metadata
yum clean dbcache
yum makecache
Thanks
Ninad
Friday, October 3, 2008
Command to count VE on node
Give command vzlist|wc -l on node to check the number of VE's.
For example::
[root@ninad02 ~]# vzlist|wc -l
24
This shows there are 24 VE's on that node.
Thanks
Ninad
For example::
[root@ninad02 ~]# vzlist|wc -l
24
This shows there are 24 VE's on that node.
Thanks
Ninad
Install Perl Module from shell
Log into the shell as root and fire the below command
echo "HTML::SimpleLinkExtor" | /usr/local/cpanel/whostmgr/bin/perlmod -i
This will install HTML::SimpleLinkExtor module.
echo "HTML::SimpleLinkExtor" | /usr/local/cpanel/whostmgr/bin/perlmod -i
This will install HTML::SimpleLinkExtor module.
Subscribe to:
Posts (Atom)
