15) # "LOAD LASTS 1/5/10 MINUTES"
echo ${ECHO} ">--------------------------------------------------------------------------------------------------${RED} ${OPTION} ${BLACK}"
echo ${ECHO} "${RED} LOAD LASTS 1/5/10 MINUTES ${BLACK}"
echo ${ECHO} ">--------------------------------------------------------------------------------------------------${RED} ${OPTION} ${BLACK}"
${LOADING}
if [ `uname` = "SunOS" ]
then
uptime | awk '{print $(NF-2)" "$(NF-1)" "$(NF-0)}'
elif [ `uname` = "AIX" ]
then
echo ${ECHO} "AIX"
elif [ `uname` = "Linux" ]
then
echo ${ECHO} ">----------------------------------------------------------------------------------------------------"
echo ${ECHO} "${RED} NOW |5min |15min | ${BLACK}"
cat /proc/loadavg
else
echo ${ECHO} ">----------------------------------------------------------------------------------------------------"
echo ${ECHO} " -- This Operation System is Unknown --"
echo ${ECHO} ">----------------------------------------------------------------------------------------------------"
fi
No comments:
Post a Comment