Solaris环境下性能采集脚本B

"#"
echo "#Parameter:    "
echo "#       -h:            # Call script help."
echo "#       -period:       # Set collect period"
echo "#       -process:      # Add a backgroud process to monitor for each daemon"
echo "#       -cpu:          # Collect server cpu information"
echo "#       -net:          # Collect server network information"
echo "#       -diskio:       # Collect server disk information"
echo "#       -memory:       # Collect server memory information"
echo "#       -summary:      # Create a summary report include importent cpu, memory, io, net information"
echo "#"
echo "#       -list:         # list all process start up by collectMan"
echo "#       -kill:         # kill all process start up by collectMan"
echo "#"
echo "#       -br:           # Backup collectMan report"
echo "#       -dr:           # delete collectMan report"
echo "#       -lr:           # list collectMan report"
echo "#       -vsr:          # View summary report"
echo "#       -vpr:          # View process report"
echo "#"
echo "#       -q:            # Quick mode, backup report and restart collectMan"
echo "#       -zip:          # If file is too big, will zip file."
echo "#       -notzip:       # Set not zip file"
echo "#"
echo "#Example:"
echo "#      sh ./collectMan.sh -period 30 -process dataserver IPMSDm DCServer -cpu -memory -diskio c1t1d0s4 c1t2d0s6 c1t3d0s6 -net ce0 ce1 -summary"
echo "#"
echo "#      This command will collect process information for dataserver, IPMSDm, DCServer."
echo "#      And collect server cpu, diskio, memory and network information."
echo "#      And will create a summary report for importent information of server."
echo "#      "
echo "#"
echo "# History:"
echo "#  2005-12: V1.0 Write by zhangfan. Get the process information."
echo "#  2007-6: V2.0 Modify by zhangfan. Add function to get system information. And improved scripts architecture."
echo "#  2007-6: V2.01 Modify by zhangfan. More smart for default setting."
echo "################################################################################################################"
}

猜你喜欢

转载自customer.iteye.com/blog/658159