Page 1 of 1

SNMP

Posted: Sun Jul 10, 2022 4:14 pm
by chuerta
I have been unable to install SNMP service, after SNMP is installed the service did not start and you can not call snmpwalk, snmpget, etc.. any hints to have this service running?

Re: SNMP

Posted: Sun Jul 10, 2022 9:35 pm
by M0JPI
I think the problem is caused by the localhost names not being setup by default. I managed to get SNMP working using nano to set /etc/hosts to:

Code: Select all

127.0.0.1 localhost localhost.local
127.0.0.1 rp-f0XXXX rp-f0XXXX.local
Where rp-f0XXXX is the MAC Address printed on the Red Pitaya Ethernet port.

The following commands then got SNMP working:

Code: Select all

sudo apt-get update
sudo apt-get install snmpd snmp -y
nano /etc/snmp/snmpd.conf #Optional to set the configuration
sudo service snmpd restart
sudo service snmpd status

snmpget -c public -v 2c 127.0.0.1 .1.3.6.1.2.1.1.5.0
Service snmpd status generates a warning about defaultMonitors and linkUpDownNotifications, but that is a bug/feature of Ubuntu version 16.04 and the IETF. It is possible to fix, it looks like it was fixed in later versions by the IETF changing their licencing model for MIBs.

John M0JPI

Re: SNMP

Posted: Mon Oct 23, 2023 9:00 pm
by chuerta
Sorry John, just look at your reply, took a long time for me, let me try....

Re: SNMP

Posted: Mon Oct 23, 2023 9:32 pm
by chuerta
snmp working perfectly, thanks John

Re: SNMP

Posted: Fri Oct 27, 2023 3:42 am
by chuerta
Hi John:

do you know where can I find the MIB file or list of OID's?

I would like to assign one of the Redpitaya GPIO pins to an OID in order to have an alarm thru snmp, if you have done it will be very appreciated your guidance.

Best regards