Basic Trap Receptor Nms Configuration - Safran WR-ZEN Series User Manual

Hide thumbs Also See for WR-ZEN Series:
Table of Contents

Advertisement

7.2  SNMP
7.2.2.4

Basic trap receptor NMS configuration

Install snmptrapd in the server receiving the SNMP traps:
sudo apt-get install snmptrapd
After installing snmptrapd, the configuration in /etc/snmp/snmptrapd.conf
needs to be modified to authorize the reception of traps.
disableAuthorization
yes
traphandle default /<example>/snmp_trap_test_handle.sh
Once the configuration file has been modified, it is needed to edit the handle file
for the received SNMP traps. For that purpose, it is important grant execution per-
missions to snmp_trap_test_handle.sh
#!/bin/sh
read host
read ip
vars=""
while read oid val; do
if [ "x$vars" = "x" ]; then
vars="$oid = $val"
else
vars="$vars, $oid = $val"
fi
done
echo trap: $1 $host $ip $vars
After this step, it is important to copy the MIB file from the device into the NMS.
sudo
scp
root@deviceip:/wr/etc/snmp/SEVEN- PRODUCT- MIB.txt
/us-
r/share/snmp/mibs
Finally, the snmptrapd service must be stopped and re- run to view all the
received traps.
sudo service snmptrapd stop
sudo snmptrapd -f -m all
CHAPTER
138
7
WR-ZEN Series User Manual Rev. v5.1

Advertisement

Table of Contents
loading

Table of Contents