logo

Openplatform.xyz

Placeholder for our stuff related to Telecom, IT, Internet of things (IOT), ESP8266, Raspberry Pi

Home IOT Telecom IT stuff About Us Contact Us Site Map

CentOS7 config to send SNMPV3 traps

# systemctl stop snmpd

# net-snmp-create-v3-user

Enter a SNMPv3 user name to create:
dialogic
Enter authentication pass-phrase:
dialogic123
Enter encryption pass-phrase:
[press return to reuse the authentication pass-phrase]

adding the following line to /var/lib/net-snmp/snmpd.conf:
createUser geekuser MD5 "dialogic123" DES
adding the following line to /etc/snmp/snmpd.conf:
rwuser dialogic

# systemctl start snmpd

# grep oldEngineID /var/lib/net-snmp/snmpd.conf
oldEngineID 0x80001f888092068415abbd5f5e00000000

Add trapsess in end of snmpd.conf. for example IP of trap receiver is 10.108.1.200
# vi /etc/snmp/snmpd.conf
trapsess -v 3 -l NoauthNoPriv -u dialogic 10.108.1.200:162

# systemctl restart snmpd

Now enter following in your trap manager server
Target Host: IP of trap sender
user name: dialogic
Target Port:161
Security Level: NoAuthNoPriv
Engine ID: 0x80001f888092068415abbd5f5e00000000

check snmpv3 works in trap sender
# snmpwalk -v3 -u dialogic -l authNoPriv -a MD5 -A dialogic123 localhost

 Send test alarm
# snmptrap -v 3 -e 0x80001f888092068415abbd5f5e00000000 -u dialogic 10.108.1.200 '' NET-SNMP-EXAMPLES-MIB::netSnmpExampleHeartbeatNotification netSnmpExampleHeartbeatRate i 123456

Links

https://www.thegeekdiary.com/centos-rhel-6-install-and-configure-snmpv3/
https://access.redhat.com/solutions/969183
https://support.nagios.com/kb/article.php?id=493
https://docs.genesys.com/Documentation/FR/Current/Dep/PrqSNMP




Suresh

Suresh Hariramani

I am an IOT enthusiast with more than 20 years of experience in the IT sector. Specializing in telecom service's; follow me for some very innovative and best in class IOT products as I unfold my knowledge and passion for the subject.


Vatsal

Vatsal Hariramani

Just me, myself and I, exploring the universe of uknownment. I have a heart of love and interests in technology, IOT and travel . And I want to share my world with you .