t055agentv1mintrap
来自「ucd-snmp源代码」· 代码 · 共 33 行
TXT
33 行
#!/bin/sh. ../eval_tools.shHEADER snmpv1 traps are sent by snmpd without notifcation mib supportSKIPIFNOT USING_EXAMPLES_EXAMPLE_MODULE## Begin test## standard V1 configuration: testcomunnity. ./Sv3configREAL_TRAPD_PORT=`echo $SNMP_SNMPTRAPD_PORT | awk '{print $2}'`CONFIGAGENT trapsink localhost public $REAL_TRAPD_PORTSTARTTRAPD# initialize only the example mib, and not the notification mib stuffAGENT_FLAGS="$AGENT_FLAGS -Dexample,header_generic,add_trap,mib_init,callback -I example,usmUser,vacm_vars"STARTAGENTCAPTURE "snmpset $SNMP_FLAGS -v 3 -a MD5 -A initial_test_pass_auth -l anp -u initial -n xxx localhost ucdavis.254.7.0 i 1"STOPAGENTSTOPTRAPDCHECKTRAPD "Enterprise Specific Trap (99)"FINISHED
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?