SNMP

Applications, development tools, FPGA, C, WEB
Post Reply
chuerta
Posts: 11
Joined: Fri Nov 20, 2015 10:01 pm

SNMP

Post by chuerta » Sun Jul 10, 2022 4:14 pm

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?

User avatar
M0JPI
Posts: 19
Joined: Wed Jun 15, 2022 8:06 pm
Location: Cumbria, UK

Re: SNMP

Post by M0JPI » Sun Jul 10, 2022 9:35 pm

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

chuerta
Posts: 11
Joined: Fri Nov 20, 2015 10:01 pm

Re: SNMP

Post by chuerta » Mon Oct 23, 2023 9:00 pm

Sorry John, just look at your reply, took a long time for me, let me try....

chuerta
Posts: 11
Joined: Fri Nov 20, 2015 10:01 pm

Re: SNMP

Post by chuerta » Mon Oct 23, 2023 9:32 pm

snmp working perfectly, thanks John

chuerta
Posts: 11
Joined: Fri Nov 20, 2015 10:01 pm

Re: SNMP

Post by chuerta » Fri Oct 27, 2023 3:42 am

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

Post Reply
jadalnie klasyczne ekskluzywne meble wypoczynkowe do salonu ekskluzywne meble tapicerowane ekskluzywne meble do sypialni ekskluzywne meble włoskie

Who is online

Users browsing this forum: No registered users and 26 guests