aix系统中网络指标

aix系统中怎么看网络的性能,如何判断当前网络故障或者网络的带宽降低,及时的通知网络工程师显示全部
aix系统中怎么看网络的性能,如何判断当前网络故障或者网络的带宽降低,及时的通知网络工程师收起
参与3

查看其它 1 个回答cuizengshun的回答

cuizengshuncuizengshun系统运维工程师民生银行
个人感觉网络不通的的话可以用errpt或者entstat -d entX | grep -i link来进行检查。
性能的话,我之前写过一个脚本,算吞吐量的,达到一定阈值则告警,供参考:

##########################################################################################
#
#    Ver (2013-08-02)      netmonitor.sh
#
##########################################################################################

#!/bin/ksh
export interface=$1
if [ "$interface" == "" ]
then
        echo No adapter name given
        echo Usage: netmonitor.sh
        echo Example: ./netmonitor.sh entX
        exit
fi

integer oldrbytes
integer oldwbytes
integer newrbytes
integer newwbytes
integer deltarbytes
integer deltawbytes

mkdir -p /tmp/ibmsupt
SYS_FILE=/tmp/ibmsupt/LOGFILE

if [ -e /tmp/ibmsupt/`hostname`SEA-$interface.log ]
then
        cat /tmp/ibmsupt/`hostname`SEA-$interface.log | read Host oldrbytes oldwbytes
else
        entstat $interface 2>/dev/null | grep ^Bytes:   | sed 's/Bytes://g'   | read oldrbytes   oldwbytes
fi

entstat $interface 2>/dev/null | grep ^Bytes:   | sed 's/Bytes://g'   | read newrbytes   newwbytes

let deltarbytes=$(echo "($newrbytes-$oldrbytes)/1024/1024/120"|bc)
let deltawbytes=$(echo "($newwbytes-$oldwbytes)/1024/1024/120"|bc)


############################### large than 1024/8*4*0.7 ##################################
if [ $deltarbytes -gt 358 ] || [ $deltawbytes -gt 358 ]
then
        date >> $SYS_FILE
        echo "Exceeds the net_traffic threshold : MB-Out:$deltarbytes MB-In:$deltawbytes" >> $SYS_FILE
fi

echo "`hostname` $newrbytes $newwbytes " >/tmp/ibmsupt/`hostname`SEA-$interface.log
银行 · 2015-04-09
浏览1782

回答者

cuizengshun
系统运维工程师民生银行
擅长领域: 云计算服务器iaas

cuizengshun 最近回答过的问题

回答状态

  • 发布时间:2015-04-09
  • 关注会员:1 人
  • 回答浏览:1782
  • X社区推广