[root@test45 ~]# vi /etc/resolv.conf
nameserver 202.106.0.20
1.root下執行
perl -MCPAN -e shell
在選擇視窗選擇no,不進行cpan環境參數的配置
2.在cpan命令列下執行命令如下
cpan>install Time::HiRes
3.在cpan命令列下執行命令如下
cpan>install Compress::Zlib
以上安裝兩個模組中間出現提示符,斷行符號即可。
然後quit/exit退出perl cpan
到官方網站下載原始碼:
wget http://jaist.dl.sourceforge.net/sourceforge/collectl/collectl-3.1.3.src.tar.gz
#tar zxvf collectl-3.1.3.src.tar.gz
#cd collectl-3.1.3
#./INSTALL
a.運行命令:collectl -scdnm -oT 收集包括IO/CPU/Network/NFS/Infiniband/Lustre/Process/Slabs等等。
b. 可以組建記錄檔檔案,如:以1/4秒採集系統資料並儲存到記錄檔中,
collectl -i.25 -oDm --iosize > testPerf.log
c.可以用nmon analyser來產生由collectl產生的檔案。需要對nmon analyser的指令碼做一定的改寫.
d.支援socket發送資料,可以即時監控很多linux系統的機器
更詳細的命令參數請參考man collectl
參考資料:
http://collectl.sourceforge.net/
http://dt1.iteye.com/blog/333972
http://apps.hi.baidu.com/share/detail/14465228
http://hi.baidu.com/thinke365/blog/item/113c82c543704ba28226ac0c.html