t100agenthup

来自「开发snmp的开发包有两个开放的SNMP开发库」· 代码 · 共 37 行

TXT
37
字号
#!/bin/sh. ../eval_tools.shHEADER that the agent responds properly to a kill -HUPSKIPIF DISABLE_SNMPV1SKIPIFNOT HAVE_SIGNAL## Begin test## standard V1 configuration: testcomunnity. ./Sv1configSTARTAGENT# add a agent configuration line that wouldn't have been there when# the started up.CONFIGAGENT syslocation not-anywhere-in-particular# kill -HUP the agent to get it to re-read the .conf file.DELAYkill -HUP `cat $SNMP_SNMPD_PID_FILE` > /dev/null 2>&1DELAY# And see if it has the new value.CAPTURE "snmpget -On $SNMP_FLAGS -c testcommunity -v 1 $SNMP_TRANSPORT_SPEC:$SNMP_TEST_DEST$SNMP_SNMPD_PORT system.sysLocation.0"STOPAGENTCHECK "not-anywhere-in-particular"FINISHED

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?