📄 test_hist.sh
字号:
:# Rmon History testing script# $Log: test_hist.sh,v $# Revision 5.0 2002/04/20 07:30:01 hardaker# cvs file version number change## Revision 1.1 2001/05/09 19:36:13 slif# Include Alex Rozin's Rmon.###Only parameter: number of interface (ifIndex) to be tested.#Default: 1TSTIF=1COMPAR="-m ALL localhost public"if [ "X"${1} = "X" ] ; then echo got default parameter : $TSTIFelse TSTIF=$1fiecho interface ifIndex.$TSTIF will be testedecho " "echo 1. create control entrysnmpset $COMPAR historyControlBucketsRequested.4 i 4 historyControlInterval.4 i 3 \historyControlDataSource.4 o interfaces.ifTable.ifEntry.ifIndex.$TSTIF \historyControlStatus.4 i 2snmpwalk $COMPAR historyControlTableecho " "echo 2. validate itsnmpset $COMPAR historyControlStatus.4 i 1snmpwalk $COMPAR historyControlTableecho "Sleep 3, take it chance to get something"sleep 3snmpwalk $COMPAR etherHistoryTableecho "Sleep 6, take it chance to advance"sleep 6snmpwalk $COMPAR etherHistoryTableecho " "echo 3. change requested number of bucketssnmpset $COMPAR historyControlBucketsRequested.4 i 2echo "Sleep 9, take it chance to get something"sleep 9snmpwalk $COMPAR etherHistoryTableecho " "echo 4. invalidate itsnmpset $COMPAR historyControlStatus.4 i 4snmpwalk $COMPAR historyecho " "echo 5. create and validate 2 control entriessnmpset $COMPAR historyControlBucketsRequested.4 i 3 historyControlInterval.4 i 2 \historyControlDataSource.4 o interfaces.ifTable.ifEntry.ifIndex.$TSTIF \historyControlStatus.4 i 1snmpset $COMPAR historyControlBucketsRequested.2 i 2 historyControlInterval.2 i 4 \historyControlStatus.2 i 1snmptable $COMPAR historyControlTableecho "Sleep 12, take them chance to get something"sleep 12snmpwalk $COMPAR etherHistoryTableecho " "echo 6. create entry and let it to be agedsnmpset $COMPAR historyControlStatus.3 i 2snmptable $COMPAR historyControlTableecho "Sleep 61, take it chance to be aged"sleep 61snmptable $COMPAR historyControlTableecho " "echo 7. clean everythingsnmpset $COMPAR historyControlStatus.2 i 4snmpset $COMPAR historyControlStatus.4 i 4snmpwalk $COMPAR historyecho " "echo "Goodbye, I'm a gonner"echo " "
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -