Clixon SNMP frontend
Added two new config options to clixon-config.yang: `CLICON_HTTP_DATA_ROOT` Added new files: apps/snmp/snmp_mib_yang.[ch] for generic MIB/YANG handling Test: killall quiet Test: added specific MIB for generic code: <CLICON_SNMP_MIB>NET-SNMP-EXAMPLES-MIB</CLICON_SNMP_MIB>
This commit is contained in:
parent
80651503fd
commit
3dbfbf5b31
12 changed files with 561 additions and 243 deletions
|
|
@ -442,7 +442,7 @@ function chunked_framing()
|
|||
function start_snmp(){
|
||||
cfg=$1
|
||||
|
||||
$clixon_snmp -f $cfg -D $DBG -l s &
|
||||
$clixon_snmp -f $cfg -D $DBG &
|
||||
|
||||
if [ $? -ne 0 ]; then
|
||||
err
|
||||
|
|
@ -458,7 +458,7 @@ function stop_snmp(){
|
|||
if [ $valgrindtest != 0 ]; then
|
||||
kill `ps aux | grep [v]algrind | awk '{print $2}' | tail -n1`
|
||||
else
|
||||
killall clixon_snmp
|
||||
killall -q clixon_snmp
|
||||
fi
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -31,6 +31,7 @@ cat <<EOF > $cfg
|
|||
<CLICON_BACKEND_PIDFILE>/var/tmp/$APPNAME.pidfile</CLICON_BACKEND_PIDFILE>
|
||||
<CLICON_XMLDB_DIR>$dir</CLICON_XMLDB_DIR>
|
||||
<CLICON_SNMP_AGENT_SOCK>unix:$SOCK</CLICON_SNMP_AGENT_SOCK>
|
||||
<CLICON_SNMP_MIB>NET-SNMP-EXAMPLES-MIB</CLICON_SNMP_MIB>
|
||||
</clixon-config>
|
||||
EOF
|
||||
|
||||
|
|
@ -61,7 +62,7 @@ function testinit(){
|
|||
|
||||
# Kill old clixon_snmp, if any
|
||||
new "Terminating any old clixon_snmp processes"
|
||||
sudo killall clixon_snmp
|
||||
sudo killall -q clixon_snmp
|
||||
|
||||
new "Starting clixon_snmp"
|
||||
start_snmp $cfg &
|
||||
|
|
@ -71,7 +72,7 @@ function testinit(){
|
|||
}
|
||||
|
||||
function testexit(){
|
||||
sudo killall clixon_snmp
|
||||
stop_snmp
|
||||
}
|
||||
|
||||
new "SNMP tests"
|
||||
|
|
|
|||
|
|
@ -41,6 +41,7 @@ cat <<EOF > $cfg
|
|||
<CLICON_BACKEND_PIDFILE>/var/tmp/$APPNAME.pidfile</CLICON_BACKEND_PIDFILE>
|
||||
<CLICON_XMLDB_DIR>$dir</CLICON_XMLDB_DIR>
|
||||
<CLICON_SNMP_AGENT_SOCK>unix:$SOCK</CLICON_SNMP_AGENT_SOCK>
|
||||
<CLICON_SNMP_MIB>NET-SNMP-EXAMPLES-MIB</CLICON_SNMP_MIB>
|
||||
</clixon-config>
|
||||
EOF
|
||||
|
||||
|
|
@ -71,7 +72,7 @@ function testinit(){
|
|||
|
||||
# Kill old clixon_snmp, if any
|
||||
new "Terminating any old clixon_snmp processes"
|
||||
sudo killall clixon_snmp
|
||||
sudo killall -q clixon_snmp
|
||||
|
||||
new "Starting clixon_snmp"
|
||||
start_snmp $cfg &
|
||||
|
|
@ -81,7 +82,7 @@ function testinit(){
|
|||
}
|
||||
|
||||
function testexit(){
|
||||
sudo killall clixon_snmp
|
||||
stop_snmp
|
||||
}
|
||||
|
||||
new "SNMP table tests"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue