EmbeddedRelated.com
Forums
The 2024 Embedded Online Conference

SNMP - Very Basic Problems

Started by Steve October 22, 2011
I am attempting to run the SNMP1.c from the DC 10.61 samples directory on a RCM4310 on a BL4S200. I tried several SNMP management programs, and can only get iReasoning MIB Browser (ireasoning.com) to work at all. With it, I can perform Gets and Sets, as observed via the printf statements in callback function (please see the printf listing below where I changed the value of re_long at .1.2.0 a few times), but no Get response values are reported by the manager, usually only instant timeouts, which is odd since the timeout period is set to 10 seconds.

------------------------
Interface table:

# IP addr. Mask Up Lnk Pwr Type MTU Flags Peer/router
-- --------------- --------------- --- --- --- ---- ---- ------ ---------------
ARP: default router_for i/f 0...
ARP: ...router for i/f 0 is entry ATE=0:
0 D 192.168.0.1 0 0 0
0 192.168.0.8 255.255.255.0 yes yes yes eth 1500 *DD 192.168.0.1

Router table:

# Flags Address i/f Net/preference Mask/exp(sec)
-- ----- ------------- --- --------------- ---------------
0 D 192.168.0.1 0 0 0
TCP: 414ms since last call to tcp_tick!
ARP: C0A80001 replying to C0A80008 i/f 0
ARP: reloading because his IP address in cache
ARP: loaded entry:
0 1 0 192.168.0.1 00:24:B2:17:8E:19 0 GW OK
ARP: C0A80003 is asking for my address on i/f 0
ARP: created new entry 1 (for C0A80003 on i/f 0)
ARP: speculative loading because query_me
ARP: loaded entry:
1 2 0 192.168.0.3 00:1D:7D:0C:F7:E3 0 Vol OK
ARP: telling C0A80003 that I have C0A80008 on i/f 0
TCP: 125ms since last call to tcp_tick!
ARP: arpresolve_start for IP C0A80003 i/f 0...
ARP: ...in cache entry 1
SNMP: version=1,community='public',id]a00109,type
Callback: wr=0 commit=0 v(in)00002 v(out)0000
TCP: 108ms since last call to tcp_tick!
SNMP: tt = 3000 tick_ref = 3000 ms_ref = 36051
SNMP: tt = 3000 tick_ref = 6000 ms_ref = 66051
ARP: arpresolve_start for IP C0A80003 i/f 0...
ARP: ...in cache entry 1
SNMP: version=1,community='private',id]a0010b,type
Callback: wr=1 commit=0 v(in)9 v(out)90
Callback: wr=1 commit=1 v(in)9 v(out)90
Callback: wr=0 commit=0 v(in)90 v(out)9
TCP: 167ms since last call to tcp_tick!
SNMP: tt = 3000 tick_ref = 9000 ms_ref = 96051
ARP: arpresolve_start for IP C0A80003 i/f 0...
ARP: ...in cache entry 1
SNMP: version=1,community='public',id]a0010d,type
Callback: wr=0 commit=0 v(in)90 v(out)9
SNMP: tt = 3000 tick_ref = 12000 ms_ref = 126051

---------------------------------

Does anyone have specific examples of SNMP managers that indeed work with with this example and WinXP Pro?

I have lots of experience with Dynamic C on the RCM3200, but have very limited experience at diagnosing LAN problems. Any advice as to how to proceed will be greatly appreciated.

Regards,

Steve

I've had good success with Net-SNMP, which is a package of free SNMP
utilities at http://www.net-snmp.org/

Steve

--- In r..., "Steve" wrote:
>
> I am attempting to run the SNMP1.c from the DC 10.61 samples directory on a RCM4310 on a BL4S200. I tried several SNMP management programs, and can only get iReasoning MIB Browser (ireasoning.com) to work at all. With it, I can perform Gets and Sets, as observed via the printf statements in callback function (please see the printf listing below where I changed the value of re_long at .1.2.0 a few times), but no Get response values are reported by the manager, usually only instant timeouts, which is odd since the timeout period is set to 10 seconds.
>
> ------------------------
> Interface table:
>
> # IP addr. Mask Up Lnk Pwr Type MTU Flags Peer/router
> -- --------------- --------------- --- --- --- ---- ---- ------ ---------------
> ARP: default router_for i/f 0...
> ARP: ...router for i/f 0 is entry ATE=0:
> 0 D 192.168.0.1 0 0 0
> 0 192.168.0.8 255.255.255.0 yes yes yes eth 1500 *DD 192.168.0.1
>
> Router table:
>
> # Flags Address i/f Net/preference Mask/exp(sec)
> -- ----- ------------- --- --------------- ---------------
> 0 D 192.168.0.1 0 0 0
> TCP: 414ms since last call to tcp_tick!
> ARP: C0A80001 replying to C0A80008 i/f 0
> ARP: reloading because his IP address in cache
> ARP: loaded entry:
> 0 1 0 192.168.0.1 00:24:B2:17:8E:19 0 GW OK
> ARP: C0A80003 is asking for my address on i/f 0
> ARP: created new entry 1 (for C0A80003 on i/f 0)
> ARP: speculative loading because query_me
> ARP: loaded entry:
> 1 2 0 192.168.0.3 00:1D:7D:0C:F7:E3 0 Vol OK
> ARP: telling C0A80003 that I have C0A80008 on i/f 0
> TCP: 125ms since last call to tcp_tick!
> ARP: arpresolve_start for IP C0A80003 i/f 0...
> ARP: ...in cache entry 1
> SNMP: version=1,community='public',id]a00109,type
> Callback: wr=0 commit=0 v(in)00002 v(out)0000
> TCP: 108ms since last call to tcp_tick!
> SNMP: tt = 3000 tick_ref = 3000 ms_ref = 36051
> SNMP: tt = 3000 tick_ref = 6000 ms_ref = 66051
> ARP: arpresolve_start for IP C0A80003 i/f 0...
> ARP: ...in cache entry 1
> SNMP: version=1,community='private',id]a0010b,type
> Callback: wr=1 commit=0 v(in)9 v(out)90
> Callback: wr=1 commit=1 v(in)9 v(out)90
> Callback: wr=0 commit=0 v(in)90 v(out)9
> TCP: 167ms since last call to tcp_tick!
> SNMP: tt = 3000 tick_ref = 9000 ms_ref = 96051
> ARP: arpresolve_start for IP C0A80003 i/f 0...
> ARP: ...in cache entry 1
> SNMP: version=1,community='public',id]a0010d,type
> Callback: wr=0 commit=0 v(in)90 v(out)9
> SNMP: tt = 3000 tick_ref = 12000 ms_ref = 126051
>
> ---------------------------------
>
> Does anyone have specific examples of SNMP managers that indeed work with with this example and WinXP Pro?
>
> I have lots of experience with Dynamic C on the RCM3200, but have very limited experience at diagnosing LAN problems. Any advice as to how to proceed will be greatly appreciated.
>
> Regards,
>
> Steve
>

Hi Steve,

Not much I can help with on the specifics of SNMP but outside of that...

1. You say you are using DC 10.61 is this a beta version between 10.60 and 10.62? The normal releases are even numbered. If so have you tried using DC 10.66 to see how it behaves?

2. One of the most important tools when looking at networking issues is Wireshark as it will allow you to see exactly what is happening. Running it on the PC with the SNMP browser will let you see exactly what transpired between the browser and the BL4S200.

Regards,
Peter

--- In r..., "Steve" wrote:
>
> I am attempting to run the SNMP1.c from the DC 10.61 samples directory on a RCM4310 on a BL4S200. I tried several SNMP management programs, and can only get iReasoning MIB Browser (ireasoning.com) to work at all. With it, I can perform Gets and Sets, as observed via the printf statements in callback function (please see the printf listing below where I changed the value of re_long at .1.2.0 a few times), but no Get response values are reported by the manager, usually only instant timeouts, which is odd since the timeout period is set to 10 seconds.
>
> ------------------------
> Interface table:
>
> # IP addr. Mask Up Lnk Pwr Type MTU Flags Peer/router
> -- --------------- --------------- --- --- --- ---- ---- ------ ---------------
> ARP: default router_for i/f 0...
> ARP: ...router for i/f 0 is entry ATE=0:
> 0 D 192.168.0.1 0 0 0
> 0 192.168.0.8 255.255.255.0 yes yes yes eth 1500 *DD 192.168.0.1
>
> Router table:
>
> # Flags Address i/f Net/preference Mask/exp(sec)
> -- ----- ------------- --- --------------- ---------------
> 0 D 192.168.0.1 0 0 0
> TCP: 414ms since last call to tcp_tick!
> ARP: C0A80001 replying to C0A80008 i/f 0
> ARP: reloading because his IP address in cache
> ARP: loaded entry:
> 0 1 0 192.168.0.1 00:24:B2:17:8E:19 0 GW OK
> ARP: C0A80003 is asking for my address on i/f 0
> ARP: created new entry 1 (for C0A80003 on i/f 0)
> ARP: speculative loading because query_me
> ARP: loaded entry:
> 1 2 0 192.168.0.3 00:1D:7D:0C:F7:E3 0 Vol OK
> ARP: telling C0A80003 that I have C0A80008 on i/f 0
> TCP: 125ms since last call to tcp_tick!
> ARP: arpresolve_start for IP C0A80003 i/f 0...
> ARP: ...in cache entry 1
> SNMP: version=1,community='public',id]a00109,type
> Callback: wr=0 commit=0 v(in)00002 v(out)0000
> TCP: 108ms since last call to tcp_tick!
> SNMP: tt = 3000 tick_ref = 3000 ms_ref = 36051
> SNMP: tt = 3000 tick_ref = 6000 ms_ref = 66051
> ARP: arpresolve_start for IP C0A80003 i/f 0...
> ARP: ...in cache entry 1
> SNMP: version=1,community='private',id]a0010b,type
> Callback: wr=1 commit=0 v(in)9 v(out)90
> Callback: wr=1 commit=1 v(in)9 v(out)90
> Callback: wr=0 commit=0 v(in)90 v(out)9
> TCP: 167ms since last call to tcp_tick!
> SNMP: tt = 3000 tick_ref = 9000 ms_ref = 96051
> ARP: arpresolve_start for IP C0A80003 i/f 0...
> ARP: ...in cache entry 1
> SNMP: version=1,community='public',id]a0010d,type
> Callback: wr=0 commit=0 v(in)90 v(out)9
> SNMP: tt = 3000 tick_ref = 12000 ms_ref = 126051
>
> ---------------------------------
>
> Does anyone have specific examples of SNMP managers that indeed work with with this example and WinXP Pro?
>
> I have lots of experience with Dynamic C on the RCM3200, but have very limited experience at diagnosing LAN problems. Any advice as to how to proceed will be greatly appreciated.
>
> Regards,
>
> Steve
>

Hi Peter,

Thanks for the response.

1. I am using 10.66. I transposed the 10 from the 4000 and the 0.61 from v9.61 I use with the 3000. Sorry for the confusion.

2. Thanks for the tip about Wireshark. That helped me solve the problem. It showed communications, but the responses from the RCM4310 seemed odd. The Response to a Get request was a Get request. I wasn't really sure what it should be, but that didn't seem right. So on a lark, I tried running the demo on and RCM3200 using 9.61, and the SNMP function worked as expected. I sent a message to Digi last night, and first thing this morning they sent a response stating that there is a known problem with SNMP.lib with 10.66 and included an updated library. I just tried it and it seems to work.

Thanks again,

Steve

--- In r..., "petermcs" wrote:
>
> Hi Steve,
>
> Not much I can help with on the specifics of SNMP but outside of that...
>
> 1. You say you are using DC 10.61 is this a beta version between 10.60 and 10.62? The normal releases are even numbered. If so have you tried using DC 10.66 to see how it behaves?
>
> 2. One of the most important tools when looking at networking issues is Wireshark as it will allow you to see exactly what is happening. Running it on the PC with the SNMP browser will let you see exactly what transpired between the browser and the BL4S200.
>
> Regards,
> Peter
>
> --- In r..., "Steve" wrote:
> >
> > I am attempting to run the SNMP1.c from the DC 10.61 samples directory on a RCM4310 on a BL4S200. I tried several SNMP management programs, and can only get iReasoning MIB Browser (ireasoning.com) to work at all. With it, I can perform Gets and Sets, as observed via the printf statements in callback function (please see the printf listing below where I changed the value of re_long at .1.2.0 a few times), but no Get response values are reported by the manager, usually only instant timeouts, which is odd since the timeout period is set to 10 seconds.
> >
> > ------------------------
> > Interface table:
> >
> > # IP addr. Mask Up Lnk Pwr Type MTU Flags Peer/router
> > -- --------------- --------------- --- --- --- ---- ---- ------ ---------------
> > ARP: default router_for i/f 0...
> > ARP: ...router for i/f 0 is entry ATE=0:
> > 0 D 192.168.0.1 0 0 0
> > 0 192.168.0.8 255.255.255.0 yes yes yes eth 1500 *DD 192.168.0.1
> >
> > Router table:
> >
> > # Flags Address i/f Net/preference Mask/exp(sec)
> > -- ----- ------------- --- --------------- ---------------
> > 0 D 192.168.0.1 0 0 0
> > TCP: 414ms since last call to tcp_tick!
> > ARP: C0A80001 replying to C0A80008 i/f 0
> > ARP: reloading because his IP address in cache
> > ARP: loaded entry:
> > 0 1 0 192.168.0.1 00:24:B2:17:8E:19 0 GW OK
> > ARP: C0A80003 is asking for my address on i/f 0
> > ARP: created new entry 1 (for C0A80003 on i/f 0)
> > ARP: speculative loading because query_me
> > ARP: loaded entry:
> > 1 2 0 192.168.0.3 00:1D:7D:0C:F7:E3 0 Vol OK
> > ARP: telling C0A80003 that I have C0A80008 on i/f 0
> > TCP: 125ms since last call to tcp_tick!
> > ARP: arpresolve_start for IP C0A80003 i/f 0...
> > ARP: ...in cache entry 1
> > SNMP: version=1,community='public',id]a00109,type
> > Callback: wr=0 commit=0 v(in)00002 v(out)0000
> > TCP: 108ms since last call to tcp_tick!
> > SNMP: tt = 3000 tick_ref = 3000 ms_ref = 36051
> > SNMP: tt = 3000 tick_ref = 6000 ms_ref = 66051
> > ARP: arpresolve_start for IP C0A80003 i/f 0...
> > ARP: ...in cache entry 1
> > SNMP: version=1,community='private',id]a0010b,type
> > Callback: wr=1 commit=0 v(in)9 v(out)90
> > Callback: wr=1 commit=1 v(in)9 v(out)90
> > Callback: wr=0 commit=0 v(in)90 v(out)9
> > TCP: 167ms since last call to tcp_tick!
> > SNMP: tt = 3000 tick_ref = 9000 ms_ref = 96051
> > ARP: arpresolve_start for IP C0A80003 i/f 0...
> > ARP: ...in cache entry 1
> > SNMP: version=1,community='public',id]a0010d,type
> > Callback: wr=0 commit=0 v(in)90 v(out)9
> > SNMP: tt = 3000 tick_ref = 12000 ms_ref = 126051
> >
> > ---------------------------------
> >
> > Does anyone have specific examples of SNMP managers that indeed work with with this example and WinXP Pro?
> >
> > I have lots of experience with Dynamic C on the RCM3200, but have very limited experience at diagnosing LAN problems. Any advice as to how to proceed will be greatly appreciated.
> >
> > Regards,
> >
> > Steve
>

Hi Steve,

Thanks for the suggestion. I downloaded Net-SNMP, but since it appears to be a command-line-only program (unless I am missing something), I have not had the time to figure it out.

I solved the problem with an updated SNMP library from Digi.

Regards,

Steve

--- In r..., "seecwriter" wrote:
>
> I've had good success with Net-SNMP, which is a package of free SNMP
> utilities at http://www.net-snmp.org/
>
> Steve
>
> --- In r..., "Steve" wrote:
> >
> > I am attempting to run the SNMP1.c from the DC 10.61 samples directory on a RCM4310 on a BL4S200. I tried several SNMP management programs, and can only get iReasoning MIB Browser (ireasoning.com) to work at all. With it, I can perform Gets and Sets, as observed via the printf statements in callback function (please see the printf listing below where I changed the value of re_long at .1.2.0 a few times), but no Get response values are reported by the manager, usually only instant timeouts, which is odd since the timeout period is set to 10 seconds.
> >
> > ------------------------
> > Interface table:
> >
> > # IP addr. Mask Up Lnk Pwr Type MTU Flags Peer/router
> > -- --------------- --------------- --- --- --- ---- ---- ------ ---------------
> > ARP: default router_for i/f 0...
> > ARP: ...router for i/f 0 is entry ATE=0:
> > 0 D 192.168.0.1 0 0 0
> > 0 192.168.0.8 255.255.255.0 yes yes yes eth 1500 *DD 192.168.0.1
> >
> > Router table:
> >
> > # Flags Address i/f Net/preference Mask/exp(sec)
> > -- ----- ------------- --- --------------- ---------------
> > 0 D 192.168.0.1 0 0 0
> > TCP: 414ms since last call to tcp_tick!
> > ARP: C0A80001 replying to C0A80008 i/f 0
> > ARP: reloading because his IP address in cache
> > ARP: loaded entry:
> > 0 1 0 192.168.0.1 00:24:B2:17:8E:19 0 GW OK
> > ARP: C0A80003 is asking for my address on i/f 0
> > ARP: created new entry 1 (for C0A80003 on i/f 0)
> > ARP: speculative loading because query_me
> > ARP: loaded entry:
> > 1 2 0 192.168.0.3 00:1D:7D:0C:F7:E3 0 Vol OK
> > ARP: telling C0A80003 that I have C0A80008 on i/f 0
> > TCP: 125ms since last call to tcp_tick!
> > ARP: arpresolve_start for IP C0A80003 i/f 0...
> > ARP: ...in cache entry 1
> > SNMP: version=1,community='public',id]a00109,type
> > Callback: wr=0 commit=0 v(in)00002 v(out)0000
> > TCP: 108ms since last call to tcp_tick!
> > SNMP: tt = 3000 tick_ref = 3000 ms_ref = 36051
> > SNMP: tt = 3000 tick_ref = 6000 ms_ref = 66051
> > ARP: arpresolve_start for IP C0A80003 i/f 0...
> > ARP: ...in cache entry 1
> > SNMP: version=1,community='private',id]a0010b,type
> > Callback: wr=1 commit=0 v(in)9 v(out)90
> > Callback: wr=1 commit=1 v(in)9 v(out)90
> > Callback: wr=0 commit=0 v(in)90 v(out)9
> > TCP: 167ms since last call to tcp_tick!
> > SNMP: tt = 3000 tick_ref = 9000 ms_ref = 96051
> > ARP: arpresolve_start for IP C0A80003 i/f 0...
> > ARP: ...in cache entry 1
> > SNMP: version=1,community='public',id]a0010d,type
> > Callback: wr=0 commit=0 v(in)90 v(out)9
> > SNMP: tt = 3000 tick_ref = 12000 ms_ref = 126051
> >
> > ---------------------------------
> >
> > Does anyone have specific examples of SNMP managers that indeed work with with this example and WinXP Pro?
> >
> > I have lots of experience with Dynamic C on the RCM3200, but have very limited experience at diagnosing LAN problems. Any advice as to how to proceed will be greatly appreciated.
> >
> > Regards,
> >
> > Steve
>

Yes, it is a command line version. But it's free and it works great.
I also use MG Soft MIB Browser/Compiler, which also works well, but
it will run you $10k per seat. So you pay your money and make your
choice.

Steve

--- In r..., "Steve" wrote:
>
> Hi Steve,
>
> Thanks for the suggestion. I downloaded Net-SNMP, but since it appears to be a command-line-only program (unless I am missing something), I have not had the time to figure it out.
>
> I solved the problem with an updated SNMP library from Digi.
>
> Regards,
>
> Steve
>
> --- In r..., "seecwriter" wrote:
> >
> > I've had good success with Net-SNMP, which is a package of free SNMP
> > utilities at http://www.net-snmp.org/
> >
> > Steve
> >
> > --- In r..., "Steve" wrote:
> > >
> > > I am attempting to run the SNMP1.c from the DC 10.61 samples directory on a RCM4310 on a BL4S200. I tried several SNMP management programs, and can only get iReasoning MIB Browser (ireasoning.com) to work at all. With it, I can perform Gets and Sets, as observed via the printf statements in callback function (please see the printf listing below where I changed the value of re_long at .1.2.0 a few times), but no Get response values are reported by the manager, usually only instant timeouts, which is odd since the timeout period is set to 10 seconds.
> > >
> > > ------------------------
> > > Interface table:
> > >
> > > # IP addr. Mask Up Lnk Pwr Type MTU Flags Peer/router
> > > -- --------------- --------------- --- --- --- ---- ---- ------ ---------------
> > > ARP: default router_for i/f 0...
> > > ARP: ...router for i/f 0 is entry ATE=0:
> > > 0 D 192.168.0.1 0 0 0
> > > 0 192.168.0.8 255.255.255.0 yes yes yes eth 1500 *DD 192.168.0.1
> > >
> > > Router table:
> > >
> > > # Flags Address i/f Net/preference Mask/exp(sec)
> > > -- ----- ------------- --- --------------- ---------------
> > > 0 D 192.168.0.1 0 0 0
> > > TCP: 414ms since last call to tcp_tick!
> > > ARP: C0A80001 replying to C0A80008 i/f 0
> > > ARP: reloading because his IP address in cache
> > > ARP: loaded entry:
> > > 0 1 0 192.168.0.1 00:24:B2:17:8E:19 0 GW OK
> > > ARP: C0A80003 is asking for my address on i/f 0
> > > ARP: created new entry 1 (for C0A80003 on i/f 0)
> > > ARP: speculative loading because query_me
> > > ARP: loaded entry:
> > > 1 2 0 192.168.0.3 00:1D:7D:0C:F7:E3 0 Vol OK
> > > ARP: telling C0A80003 that I have C0A80008 on i/f 0
> > > TCP: 125ms since last call to tcp_tick!
> > > ARP: arpresolve_start for IP C0A80003 i/f 0...
> > > ARP: ...in cache entry 1
> > > SNMP: version=1,community='public',id]a00109,type
> > > Callback: wr=0 commit=0 v(in)00002 v(out)0000
> > > TCP: 108ms since last call to tcp_tick!
> > > SNMP: tt = 3000 tick_ref = 3000 ms_ref = 36051
> > > SNMP: tt = 3000 tick_ref = 6000 ms_ref = 66051
> > > ARP: arpresolve_start for IP C0A80003 i/f 0...
> > > ARP: ...in cache entry 1
> > > SNMP: version=1,community='private',id]a0010b,type
> > > Callback: wr=1 commit=0 v(in)9 v(out)90
> > > Callback: wr=1 commit=1 v(in)9 v(out)90
> > > Callback: wr=0 commit=0 v(in)90 v(out)9
> > > TCP: 167ms since last call to tcp_tick!
> > > SNMP: tt = 3000 tick_ref = 9000 ms_ref = 96051
> > > ARP: arpresolve_start for IP C0A80003 i/f 0...
> > > ARP: ...in cache entry 1
> > > SNMP: version=1,community='public',id]a0010d,type
> > > Callback: wr=0 commit=0 v(in)90 v(out)9
> > > SNMP: tt = 3000 tick_ref = 12000 ms_ref = 126051
> > >
> > > ---------------------------------
> > >
> > > Does anyone have specific examples of SNMP managers that indeed work with with this example and WinXP Pro?
> > >
> > > I have lots of experience with Dynamic C on the RCM3200, but have very limited experience at diagnosing LAN problems. Any advice as to how to proceed will be greatly appreciated.
> > >
> > > Regards,
> > >
> > > Steve
> > >
>


The 2024 Embedded Online Conference