<div dir="ltr">Hi,<div><br></div><div>I don't think there would be much tooling in Erlang for generating MIBs on the fly. I guess the standard way of solving this kind of problem is to write (manually) a static MIB that lists all dynamic information in tables. E.g. you could create a service status table where the key is the service name, and there are columns for each property to show about a service. Or, if there are dynamic properties, you could put them into a second table keyed with the service name and the property name (just like how you would store the data in a SQL DB).</div><div><br></div><div>If you'd like to generate the MIB on the fly, you'd probably have to write the code for that on your own. But it doesn't seem to be very hard to do on top of some templating library like ErlyDTL or Mustache.</div><div><br></div><div>Cheers,</div><div>Daniel</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, 9 Mar 2020 at 23:18, Nyirő Gergő <<a href="mailto:gergo.nyiro@gmail.com">gergo.nyiro@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto">Dear list,<div dir="auto"><br></div><div dir="auto">I try to write a simple snmp agent, which could expose the status of the registered systemd services.</div><div dir="auto"><br></div><div dir="auto">The application config would contain a map of the required service name to the exported oids. I would like to generate a mib file from this oid list.</div><div dir="auto"><br></div><div dir="auto">Parsing a mib file seams an easy task in erlang, but I didn't find example for generating mib file.</div><div dir="auto">Does anyone have any experience with mib generation with erlang?</div><div dir="auto"><br></div><div dir="auto">Thanks for any advice in advance,</div><div dir="auto">Gergo</div></div>
</blockquote></div>