umair-iftikhar

umair-iftikhar

We are developing a simple application in Elixir and Phoenix Framework. This is a hardware-based application and we have done with all stuff. Now we have to write SNMP Agent software in our application, so the clients SNMP Manager can read data from our device.

We are looking for libraries or any help materials. I just found 3 things on google:

  1. https://github.com/jonnystorm/mib-2-elixir
  2. https://gitlab.com/jonnystorm/snmp-elixir
  3. https://github.com/jonnystorm/net-snmp-elixir

The problem is the bad documentation that is not suitable for beginners like me.

We need help to deploy SNMP Agent in our application. This is our focus task.

Showing Posts 4 to 1

hauleth

hauleth

Guidance Counsellor

Usage of Erlang modules is pretty simple: :module_name.function_name(arguments) as this is exactly how all functions are called (Elixir’s Foo.Bar module is in reality alias for :'Elixir.Foo.Bar' atom). There are few differences how to write some things in Elixir and Erlang, but this is not part of this discussion. So in the end the usage is almost the same.

About SNMP there is more detailed guide about using it.

jmitchell

jmitchell

Elixir and Erlang both run on the same virtual machine (BEAM), and it’s possible to call Erlang functions from Elixir.

For example, here’s the syntax for calling the date/0 (0-argument function, date) in the erlang module.

iex(1)> :erlang.date()
{2019, 5, 23}

Similarly, to run Erlang’s interactive SNMP configuration generator, config/0 in the snmp module you’d type:

iex(2)> :snmp.config()

Simple SNMP configuration tool (version 5.2.11)
------------------------------------------------
Note: Non-trivial configurations still has to be
      done manually. IP addresses may be entered 
      as dront.ericsson.se (UNIX only) or
      123.12.13.23
------------------------------------------------

Configure an agent (y/n)? [y]

Erlang ships with a lot of SNMP-related modules and functions, so looking through the docs I linked and tinkering around in iex should give you a sense whether it supports what you need.

umair-iftikhar

umair-iftikhar OP

C and PHP Development background. How we use erlang, have no idea.

hauleth

hauleth

Guidance Counsellor
— All posts loaded —

Where Next? Top

Trending in Questions Top

RSP87
I’m working on a project that simulates the bumbl example in the programming phoenix book. It acts almost like an email client. We have a...
New
nseaSeb
Hello, I know there is an approach for handling lists that allows for optimized traversal, but I can’t recall the specific method (somet...
New
kpanic
Hi everyone, I am toying with the idea of building a “match maker” for giving personal help to people that wants to start coding. I sta...
New
brecabral
Documentation While reading the Scoped Routes section, I noticed that the documentation currently refers to a problem without explainin...
New
velrest
So my question is quite simple and i have found no conclusive answer on forum, google or AI. Should we use :erlang.float for Integer to ...
New
asweet-confluent
I recently noticed that Elixir’s Logger defaults its primary log level to :debug when no :logger, :level application configuration is pre...
New
samoloth
Hi, I’ve just set up an application with ash_authentication. There is only magic link strategy for now, so there is no confirmation add o...
New

Other Trending Topics Top

JesseHerrick
Hey, I’m Jesse and I’m the main contributor behind Dexter, a full-featured, lightning-fast Elixir LSP optimized for large codebases. It s...
New
mudasobwa
I am happy to introduce the very α version of the new programming language compiled to BEAM. Welcome Cure. It has literally three kille...
New
marciok
Hi there! We created Gust: A task orchestrator inspired by Airflow. For those who have never heard about Aiflow, it’s a Python-based wor...
New
mhanberg
Hi everyone! The first release candidate for the Expert language server project is now available! We’ve published a press release detai...
New
jimsynz
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
Dmk
Xamal is a deployment tool for Elixir apps that deploys native releases to bare metal servers over SSH. It’s a port of GitHub - basecamp/...
New

Latest on Elixir Forum

Elixir Forum

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews