From cb321bb4368f7bf76bc8a3ad38604abd5e5a0dba Mon Sep 17 00:00:00 2001 From: lgq <1015864684@qq.com> Date: 星期一, 07 七月 2025 11:44:13 +0800 Subject: [PATCH] 1.修改打包脚本,每次从code里复制最新的编译结果和www文件 2.增加snmp服务/usr/local/bin/snmpd, 默认不启动,启动时需要再/work/run.sh里调用/usr/local/script/start_snmpd脚本,注意要后台运行 --- local/www/cgi-bin/device-debug/debug | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/local/www/cgi-bin/device-debug/debug b/local/www/cgi-bin/device-debug/debug index b4aa0ca..07dc9a2 100755 --- a/local/www/cgi-bin/device-debug/debug +++ b/local/www/cgi-bin/device-debug/debug @@ -29,6 +29,7 @@ cid2=`$jsoner $arg cid2` data=`$jsoner $arg data` oid=`$jsoner $arg oid` +community=`$jsoner $arg community` case "$debug" in @@ -39,7 +40,7 @@ string) content=`msg string $type $ip $port $data`;; snmp) -content=`msg snmp $ver $ip $oid`;; +content=`msg snmp $ver $ip $oid $port $community`;; esac #echo $content -- Gitblit v1.9.3