Re: IP redirection

This is a discussion on Re: IP redirection within the SNMP Users forums, part of the Networking and Network Related category; 2008/5/20 k_simplydev <ingenieur.high.tech@gmail.com>: > I have three hosts : 192.168.0.20, ...


Go Back   Usenet Forums > Networking and Network Related > SNMP Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 05-21-2008
Dave Shield
 
Posts: n/a
Default Re: IP redirection

2008/5/20 k_simplydev <ingenieur.high.tech@gmail.com>:
> I have three hosts : 192.168.0.20, 192.168.0.21 and 192.168.0.22
> The both first have a snmp daemon which is running and the last only a snmp
> client.
> in the .21 host i wrote in the snmpd.conf
> proxy -v 1 -c public 192.168.0.20 .1.3
>
> but when I sent a request from .22 to .21, it is the .21 which is responding
> and doesnt follow the request.
> What should i do to make it to work?



The first thing is to check that queries from 21 to 20 are working properly.

What happens if you log on to the 21 system, and run
snmpgetnext -v 1 -c public 192.168.0.20 .1.3
?


Also, what information is the 20 system providing that the 21 system does not?

Dave

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/...net-snmp-users

Reply With Quote
  #2 (permalink)  
Old 05-22-2008
Dave Shield
 
Posts: n/a
Default Re: IP redirection

2008/5/21 k_simplydev <ingenieur.high.tech@gmail.com>:
>> The first thing is to check that queries from 21 to 20 are working properly.
>>
>> What happens if you log on to the 21 system, and run
>> snmpgetnext -v 1 -c public 192.168.0.20 .1.3



> it is working i have the answer giving the OS (Linux Fedora 4).


Good.
(Although that's a fairly old system!)



>> Also, what information is the 20 system providing that the
>> 21 system does not?

>
> the 20 is a remote site which is connect only through the host 21 and have
> a private MIB.


What's the OID of this private MIB?

Can you run "snmpgetnext" or "snmpwalk" on this OID,
from the 21 system?

What happens if you specify this private OID in the "proxy" line,
instead of .1.3 ?

Dave

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/...net-snmp-users

Reply With Quote
  #3 (permalink)  
Old 05-27-2008
Mike Ayers
 
Posts: n/a
Default RE: IP redirection

> From: net-snmp-users-bounces@lists.sourceforge.net
> [mailto:net-snmp-users-bounces@lists.sourceforge.net] On
> Behalf Of k_simplydev
> Sent: Monday, May 26, 2008 8:39 AM


> No when i make redirection only on this private MIB, .21 site
> respondes that is it an unknown OID.
>
> And if i do requests from .21 to 20 about private MIB, i had
> correct responses.


Then the proxy is probably not configured correctly.

> It is strange but how can i check that my daemon was built
> with the ucd-snmp/proxy module?


$ net-snmp-config --snmpd-module-list | tr [:blank:] "\n" | grep proxy

...will tellyou if it's been built in. Make sure you're passing the "-Le" (or equivalent) flag to your snmpd in case there's an error in your configuration statement.


HTH,

Mike

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/...net-snmp-users

Reply With Quote
  #4 (permalink)  
Old 05-28-2008
Dave Shield
 
Posts: n/a
Default Re: IP redirection

2008/5/26 k_simplydev <ingenieur.high.tech@gmail.com>:
> The private MIB is a customer MIB it could be only on the .20 site cause it
> is an embedded board.


That's fine.

What I actually meant was to run a GET or GETNEXT request
*from* the 21 system directly, *to* the 20 system.

> And if i do requests from .21 to 20 about private MIB, i had correct
> responses.


That sounds like what I was suggesting.

What is the exact command that you ran on the 20 system?
What was the output?

What is the proxy directive that you have in your snmpd.conf file?


> It is strange but how can i check that my daemon was built with the
> ucd-snmp/proxy module?


If you've got a proxy directive in the config file, but the agent doesn't
include proxy support, then it will generate an error.


Try shutting the agent (on the 20 system) down completely.
Then run

snmpd -f -Le -Dread-config

What is the output of this command?

Dave

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/...net-snmp-users

Reply With Quote
  #5 (permalink)  
Old 05-31-2008
Mike Ayers
 
Posts: n/a
Default No trips on MIPS (was: RE: IP redirection)


[Please change the subject line when using "reply" to start a new thread.]

> From: net-snmp-users-bounces@lists.sourceforge.net
> [mailto:net-snmp-users-bounces@lists.sourceforge.net] On
> Behalf Of Rabindra Paikaray
> Sent: Wednesday, May 28, 2008 10:31 PM


> I have configured net-snmp with disman/event and notification
> for linkup and down trap . My traget system is a mips-linux
> .While configuring I am getting a warning message like:
> configure: WARNING: Can't check sysctl, manually define
> NETSNMP_CAN_USE_SYSCTL if platform support available
>
> But it's comiling without any problem.


That's why it's a warning, not an error - it means you should be concerned

> While running this in mips board I am not getting any linkUp
> Down traps.


A Google search on "MIPS linux sysctl" hits several pages such as http://www.linux-mips.org/archives/l.../msg00210.html which make it pretty obvious that MIPS linux does indeed have sysctl, so it's probably best to enable it. I believe the correct way to do this is to edit acconfig.h after running configure, and changing the definition of NETSNMP_CAN_USE_SYSCTL from "#undef" to "#define", but, having never done this, I can't be sure.

> But If I am compiling it for a general Linux box , it's
> giving the trap notification perfectly.


There may be some gap in general for MIPS Linux - we are talking about a rather uncommon processor here.


HTH,

Mike

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/...net-snmp-users

Reply With Quote
  #6 (permalink)  
Old 06-17-2008
Dave Shield
 
Posts: n/a
Default Re: IP redirection

2008/6/17 k_simplydev <ingenieur.high.tech@gmail.com>:
>> Try shutting the agent (on the 20 system) down completely.
>> Then run
>>
>> snmpd -f -Le -Dread-config
>>
>> What is the output of this command?


> The output is :
> "Cannot find the module SNMP-COMMUNITY-MIB at line 0"


Just that? Nothing else?
I'm sorry, but I don't believe you.

The agent should be displaying details of the config file(s)
that it is reading in. There should be *much* more than
a single MIB file error.

Dave

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/...net-snmp-users

Reply With Quote
  #7 (permalink)  
Old 06-17-2008
dan anderson
 
Posts: n/a
Default Re: IP redirection

On a somewhat related note, is there a way to force link up/downs to
occur on Linux, to test these traps?

-Dan

2008/6/17 Dave Shield <D.T.Shield@liverpool.ac.uk>:
> 2008/6/17 k_simplydev <ingenieur.high.tech@gmail.com>:
>>> Try shutting the agent (on the 20 system) down completely.
>>> Then run
>>>
>>> snmpd -f -Le -Dread-config
>>>
>>> What is the output of this command?

>
>> The output is :
>> "Cannot find the module SNMP-COMMUNITY-MIB at line 0"

>
> Just that? Nothing else?
> I'm sorry, but I don't believe you.
>
> The agent should be displaying details of the config file(s)
> that it is reading in. There should be *much* more than
> a single MIB file error.
>
> Dave
>
> -------------------------------------------------------------------------
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services for
> just about anything Open Source.
> http://sourceforge.net/services/buy/index.php
> _______________________________________________
> Net-snmp-users mailing list
> Net-snmp-users@lists.sourceforge.net
> Please see the following page to unsubscribe or change other options:
> https://lists.sourceforge.net/lists/...net-snmp-users
>


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/...net-snmp-users

Reply With Quote
  #8 (permalink)  
Old 06-17-2008
Ron Rader
 
Posts: n/a
Default RE: IP redirection

> From: dan anderson [mailto:dan.j.anderson@gmail.com]

> On a somewhat related note, is there a way to force link up/downs to
> occur on Linux, to test these traps?


If you actually have interfaces on the platform, the answer is yes.
Try something along these lines:

ip link set eth2 up
ip link set eth2 down

Ron



The information contained in this message may be privileged and confidential and protected from disclosure. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by replying to the message and deleting all copies. Thank you.

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/...net-snmp-users

Reply With Quote
  #9 (permalink)  
Old 06-17-2008
Mike Ayers
 
Posts: n/a
Default RE: IP redirection

> From: net-snmp-users-bounces@lists.sourceforge.net
> [mailto:net-snmp-users-bounces@lists.sourceforge.net] On
> Behalf Of Ron Rader
> Sent: Tuesday, June 17, 2008 2:39 PM


> > From: dan anderson [mailto:dan.j.anderson@gmail.com]

>
> > On a somewhat related note, is there a way to force link up/downs to
> > occur on Linux, to test these traps?

>
> If you actually have interfaces on the platform, the answer is yes.
> Try something along these lines:
>
> ip link set eth2 up
> ip link set eth2 down


Or just pull the freakin' cable!

Yeah, I had to say it...

Alternatively, use IP aliasing and mess with a network that doesn't have anything connected to it, like (not tested):

$ ifconfig eth0:0 1172.16.1.27 netmask 255.255.255.0 # linkUp
$ ifconfig eth0:0 down # linkDown
$ ifconfig eth0:0 up # linkUp

Then again, you could go to even *more* trouble...

Or you could just use snmpcmd and have absolute control over the trap contents. What's wrong with absolute control?

> The information contained in this message may be privileged
> and confidential and protected from disclosure. If the reader
> of this message is not the intended recipient, or an employee
> or agent responsible for delivering this message to the
> intended recipient, you are hereby notified that any
> dissemination, distribution or copying of this communication
> is strictly prohibited. If you have received this
> communication in error, please notify us immediately by
> replying to the message and deleting all copies. Thank you.


Feh! I'm forwarding this message to someone.. anyone! Whatcha gonna do about it... punk?!


Mike

I'm all in favor of freedom and self-determination, so long as it never happens on my network.

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/...net-snmp-users

Reply With Quote
  #10 (permalink)  
Old 06-17-2008
dan anderson
 
Posts: n/a
Default Re: IP redirection

> Or just pull the freakin' cable!

Hard to pull a cable in vmware. ;-)

> Alternatively, use IP aliasing and mess with a network that doesn't have anything connected to it, like (not tested):
>
> $ ifconfig eth0:0 1172.16.1.27 netmask 255.255.255.0 # linkUp
> $ ifconfig eth0:0 down # linkDown
> $ ifconfig eth0:0 up # linkUp


I'll give those a shot, thanks!

> Or you could just use snmpcmd and have absolute control over the trap contents. What's wrong with absolute control?


Oh, I have absolute control over the trap contents, from inside my own
code, where they're being sent from. What I don't have control of is
the system that lets me know when ports have gone up or down (no, I
can't use the same methods that the daemon as is does, long story), so
to make sure I'm firing those traps correctly I need to make a vm
think that it's network hardware was crossed with a rubber ball (up,
down, up down...). Like I originally said, only somewhat related. ;-)

Thanks, Ron and Mike.

-D

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/...net-snmp-users

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 02:35 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0