# Chapter 25 SNMP Gateway Example Problem

**URL:** <https://dmap-community.ductus.global/t/chapter-25-snmp-gateway-example-problem/1451>\
**Category:** Examples Set\
**Created:** [August 4, 2017, 11:32pm UTC](https://dmap-community.ductus.global/t/chapter-25-snmp-gateway-example-problem/1451 "2017-08-04T23:32:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![lloydroc](https://avatars.discourse-cdn.com/v4/letter/l/ccd318/32.png) [@lloydroc](https://dmap-community.ductus.global/u/lloydroc)\
**Post date:** [August 4, 2017, 11:32pm UTC](https://dmap-community.ductus.global/t/chapter-25-snmp-gateway-example-problem/1451/1 "2017-08-04T23:32:57Z")

</div>

Hello I’m trying to implement the SNMP Gateway example in Chapter 25 of the User Guide for confd 6.4.2. But get an `Internal Error` from `confdc`.

I took a Cisco Interface MIB called IF-MIB which I assume what is in the example for Chapter 25, although, this example is truncated and not found in the user guide.

These steps produce the `confdc` compile error:  
\*[working] convert IF-MIB to yang (needs some dependencies which I also convert to yang)  
\*[working] compile the yang and dependencies into .fxs files  
\*[get confdc internal compiler error] compile the mib and fxs files into a .bin file per Chapter 17

The exact error is this:

```auto
➜ mibs confdc -f /opt/confd/lib/confd/lib/core/confd/priv/ /opt/confd/etc/confd/snmp/ -c IF-MIB.mib IF-MIB.fxs
Internal error

=ERROR REPORT==== 4-Aug-2017::17:17:40 ===
confd_snmpc:474: badarg[{ets,new,
                            ['urn:ietf:params:xml:ns:netconf:base:1.0',
                             [named_table,{keypos,2},public]],
                            []},
                        {confd_new_loading,load_fxs_fd,7,
                            [{file,"confd_new_loading.erl"},{line,38}]},
                        {confd_new_loading,load_fxs_file,5,
                            [{file,"confd_new_loading.erl"},{line,24}]},
                        {confd_rt_tools,'-load_new_fxs_files/2-fun-0-',4,
                            [{file,"confd_rt_tools.erl"},{line,261}]},
                        {lists,foldl,3,[{file,"lists.erl"},{line,1262}]},
                        {confd_rt_tools,load_new_fxs_files,2,
                            [{file,"confd_rt_tools.erl"},{line,257}]},
                        {confd_rt_tools,load_new_fxs_files,3,
                            [{file,"confd_rt_tools.erl"},{line,235}]},
                        {confd_snmpc,fxs_to_xfuncs,2,
                            [{file,"confd_snmpc.erl"},{line,436}]}]
➜ mibs confd --version

```

Any ideas?

Thanks,  
Lloyd

---

<div class="post-metadata">

**Author:** ![waitai](https://yyz2.discourse-cdn.com/flex010/user_avatar/dmap-community.ductus.global/waitai/32/436_2.png) [@waitai](https://dmap-community.ductus.global/u/waitai)\
**Post date:** [August 7, 2017, 9:18pm UTC](https://dmap-community.ductus.global/t/chapter-25-snmp-gateway-example-problem/1451/2 "2017-08-07T21:18:34Z")

</div>

There is an example under examples.confd/misc/snmpgw that illustrates the use of the ConfD-\>SNMP Gateway feature. If you have further questions after working through that example, file a RT ticket with our support team.
