<div dir="ltr">Thank you ! BUT I still have these questions, I don't know if I'm wrong:<div><br></div><div>1. In this doc (<a href="http://docs.frrouting.org/en/latest/snmp.html">http://docs.frrouting.org/en/latest/snmp.html</a>), I think SNMP related code in FRR is</div><div>    - snmp codes of each module, like zebra or bgpd, which is located in .../modules/zebra_snmp.so. And these codes is load while zebra or bgpd start up? These codes response for report snmp events in zebra or bgpd modules by protocol to agentX?</div><div>    - AgentX, which is used to receive these snmp events and call snmp traps</div><div><br></div><div>2. So I want to start zebra with zebra_snmp.so. But I got errors which tell me there is no zebra_snmp.so. So I check build process, then I have questions in the email above.</div><div><br></div><div>3. Is there some docs about how to build, package, install and use frr-snmp? As this(<a href="http://docs.frrouting.org/en/latest/snmp.html">http://docs.frrouting.org/en/latest/snmp.html</a>) is not very clear.</div><div>    - <a href="http://docs.frrouting.org/en/latest/snmp.html">http://docs.frrouting.org/en/latest/snmp.html</a> tell me SNMP support compile is just use `--enable-snmp`. But as I said above, there is zebra_snmp.so in compile log, but no zebra_snmp.so in packages I installed.</div><div>    - <a href="http://docs.frrouting.org/en/latest/snmp.html">http://docs.frrouting.org/en/latest/snmp.html</a> tell me SNMP support could be started by `<code class="gmail-descname" style="box-sizing:border-box;font-family:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",Courier,monospace;font-size:14.4px;white-space:nowrap;max-width:100%;background:transparent;border:none;padding:0px;overflow-x:auto;font-weight:bold">--module</code><code class="gmail-descclassname" style="box-sizing:border-box;font-family:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",Courier,monospace;font-size:14.4px;white-space:nowrap;max-width:100%;background:transparent;border:none;padding:0px;color:rgb(0,0,0);overflow-x:auto;font-weight:bold"> <module:snmp></code>`, but when I start, report error log that 'there is no zebra_snmp.so in .../modules/'</div><div><br></div><div>4. So could someone tell me clear steps on:</div><div>    - How to installed *additionally* to the "frr" package.</div><div>    - How to start SNMP support in system.</div><div><br></div><div>Thank you~</div><div><br clear="all"><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>----</div>Simon Jones</div></div></div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">David Lamparter <<a href="mailto:equinox@diac24.net">equinox@diac24.net</a>> 于2019年8月1日周四 下午3:36写道:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">SNMP support is in a separate debian package called "frr-snmp".  It is<br>
installed *additionally* to the "frr" package.<br>
<br>
-David<br>
<br>
<br>
On Thu, Aug 01, 2019 at 03:31:11PM +0800, Simon Jones wrote:<br>
> Hi all,<br>
> <br>
> I'm working on FRR, and I want bgpd and zebra to support snmp like this (<br>
> <a href="http://docs.frrouting.org/en/latest/snmp.html" rel="noreferrer" target="_blank">http://docs.frrouting.org/en/latest/snmp.html</a>).<br>
> As I want to handle peer down/up events.<br>
> <br>
> So I use this script to build :<br>
> .ONESHELL:<br>
> SHELL = /bin/bash<br>
> .SHELLFLAGS += -e<br>
> <br>
> MAIN_TARGET = $(FRR)<br>
> DERIVED_TARGET = $(FRR_PYTHONTOOLS) $(FRR_DBG)<br>
> <br>
> $(addprefix $(DEST)/, $(MAIN_TARGET)): $(DEST)/% :<br>
>     # Build the package<br>
>     pushd ./frr<br>
>     tools/tarsource.sh -V -e '-sonic'<br>
>     dpkg-buildpackage -rfakeroot -b -us -uc -Ppkg.frr.nortrlib<br>
> -j$(SONIC_CONFIG_MAKE_JOBS)<br>
>     popd<br>
>     mv $(DERIVED_TARGET) $* $(DEST)/<br>
> <br>
> $(addprefix $(DEST)/, $(DERIVED_TARGET)): $(DEST)/% : $(DEST)/$(MAIN_TARGET)<br>
> <br>
> <br>
> In build log, I found there are zebra_snmp.so, and I found in this folder<br>
> <br>
> > $ find -name zebra_snmp.so<br>
> > ./frr/zebra/.libs/zebra_snmp.so<br>
> > ./frr/debian/frr-snmp/usr/lib/x86_64-linux-gnu/frr/modules/zebra_snmp.so<br>
> > ./frr/debian/tmp/usr/lib/x86_64-linux-gnu/frr/modules/zebra_snmp.so<br>
> <br>
> <br>
> But at last, in deb package, this is no zebra_snmp.so and other snmp.so in<br>
> modules folder, and actually there is no modules folder.<br>
> <br>
> So how to build with these modules and snmp support like that URL?<br>
> <br>
> Will this be work?<br>
> 1. Add '-Ppkg.frr.snmp' in 'dpkg-buildpackage' step? Or<br>
> 2. Use some old version?<br>
> <br>
> Thank you~<br>
> <br>
> ----<br>
> Simon Jones<br>
<br>
> _______________________________________________<br>
> dev mailing list<br>
> <a href="mailto:dev@lists.frrouting.org" target="_blank">dev@lists.frrouting.org</a><br>
> <a href="https://lists.frrouting.org/listinfo/dev" rel="noreferrer" target="_blank">https://lists.frrouting.org/listinfo/dev</a><br>
<br>
</blockquote></div>