aix系统中网络指标

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

2同行回答

cuizengshuncuizengshun系统运维工程师民生银行
个人感觉网络不通的的话可以用errpt或者entstat -d entX | grep -i link来进行检查。性能的话,我之前写过一个脚本,算吞吐量的,达到一定阈值则告警,供参考:############################################################################################    Ver (...显示全部
个人感觉网络不通的的话可以用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
浏览1766
北京荣歆咨询北京荣歆咨询系统架构师北京荣歆咨询有限公司
topas,nmon,netstat等工具都可以用,确切怎么最适用还得看应用场景。显示全部
topas,nmon,netstat等工具都可以用,确切怎么最适用还得看应用场景。收起
IT咨询服务 · 2015-04-08
浏览1573

提问者

shuai198727
测试工程师tdmart

相关问题

相关资料

相关文章

问题状态

  • 发布时间:2015-04-08
  • 关注会员:1 人
  • 问题浏览:3431
  • 最近回答:2015-04-09
  • X社区推广