Command-TOP By process name

1-Grep the process name and store the pid in variable.
2-use the "top -p" with "pid variable"  to see the CPU usages.
3-For Single process top command.
top -p   $(pgrep -d',' sccAs)

4-Below is the example of multiple process using grep and top.

ss7=$(pgrep -d',' ss7)
tasMgr=$(pgrep -d',' tasMgr)
diamMgr=$(pgrep -d',' diamMgr)
profileMgr=$(pgrep -d',' profileMgr)
sipMgr=$(pgrep -d',' sipMgr)


sccAs=$(pgrep -d',' sccAs)
ccSvc=$(pgrep -d',' ccSvc)
xcapSrv=$(pgrep -d',' xcapSrv)

utimacoLiClient=$(pgrep -d',' utimacoLiClient)
rmtAppAgent=$(pgrep -d',' rmtAppAgent)


top -p $ss7 -p $tasMgr -p  $diamMgr -p $profileMgr -p $sipMgr -p $sccAs -p $ccSvc -p $xcapSrv -p $utimacoLiClient -p $rmtAppAgent

Comments

Popular posts from this blog

Connect Cassandra using DBeaver

Virtualization and Cloud Computing

SIP-TIMERS “Timing is everything”