Hi,

Thanks for given a nice approach.I have one more query,if suppose I am
generating the Trap using the trap  session.It take s the original IP
address of the system.so to bring the virtual IP address in the trap
.what to do ? Please can u help out how to go a head .


Note:

Steps I followed,
#./snmpd udp:10.201.114.253
/* The 10.201.114.253 is a virtual Ip address of my system and the
actual ipaddress of the system is "10.201.114.67" */ When cold start
trap generated from the agent.We captured the trap in other system.It
shows only the actual Ipaddress configured in the agent system.

The Log message from snmptrapd and tcpdump as show below...Please have a
look on that ..
========================================================================
=======================================
Tcpdump:

11:20:11.118326 IP 10.201.114.67.42741 > 10.201.114.254.snmptrap:  F=r
U= E=  C= GetRequest(4) [|snmp]
        0x0000:  4500 005c 0000 4000 4011 3fbe 0ac9 7243
[EMAIL PROTECTED]@.?...rC
        0x0010:  0ac9 72fe a6f5 00a2 0048 fb2c 303e 0201
..r......H.,0>..
        0x0020:  0330 1102 0460 4210 d402 0300 ffe3 0401
.0...`B.........
        0x0030:  0402 0103 0410 300e 0400 0201 0002 0100
......0.........
        0x0040:  0400 0400 0400 3014 0400 0400 a00e 0204
......0.........
        0x0050:  4bf0                                     K.
11:20:13.118827 IP 10.201.114.67.42741 > 10.201.114.254.snmptrap:  F=r
U= E=  C= GetRequest(4) [|snmp]
        0x0000:  4500 005c 0001 4000 4011 3fbd 0ac9 7243
[EMAIL PROTECTED]@.?...rC
        0x0010:  0ac9 72fe a6f5 00a2 0048 fb2c 303e 0201
..r......H.,0>..
        0x0020:  0330 1102 0460 4210 d502 0300 ffe3 0401
.0...`B.........
        0x0030:  0402 0103 0410 300e 0400 0201 0002 0100
......0.........
        0x0040:  0400 0400 0400 3014 0400 0400 a00e 0204
......0.........
        0x0050:  4bf0                                     K.

========================================================================
=========================================
Trapdaemon msg:

2007-08-22 10:29:01 10.201.114.67 [UDP: [10.201.114.67]:42756]:
SNMPv2-MIB::sysUpTime.0 = Timeticks: (22) 0:00:00.22
SNMPv2-MIB::snmpTrapOID.0 = OID: SNMPv2-MIB::coldStart
SNMPv2-MIB::snmpTrapEnterprise.0 = OID:
SNMPv2-SMI::enterprises.8072.3.2.10

========================================================================
=========================================
It is not binding the virtual Ipaddress ,which I was runing in snmpd.
Please help me out ..how to go a head.

Thanks & regards,
Jack.

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Dave Shield
Sent: Tuesday, August 21, 2007 2:11 PM
To: Jagadeesan Murugesan (WT01 - TES-Transport Infrastructure)
Cc: [EMAIL PROTECTED];
[email protected]
Subject: Re: QUERY:multi agnet in same system ?

On 21/08/07, <[EMAIL PROTECTED]> wrote:

> Still I am not clear in this, that means if I have 3 virtual IP 
> address in same system like 172.19.2.131,172.19.2.132,172.19.2.133.so
> I can run it has "snmpd udp:172.19.2.131:161" ,"snmpd
udp:172.19.2.132:161"
> "snmpd udp:172.19.2.132:133:161".is it like this  ..

That's one approach, certainly.

Running
           snmpd 172.19.2.131 ;  snmpd 172.19.2.132 ; snmpd 172.19.2.133
will start three separate agents, each listening on one of the three IP
addresses.


Running
           snmpd 172.19.2.131   172.19.2.132    172.19.2.133
will start a single agent, listening on all three of these IP addresses
(but no others)


Running
           snmpd
will start a single agent, listening on *all* available IP addresses
(these three, plus any others your system might be using).


>                                               And we were using 
> net-snmp 5.2.1.It is possible to apply this idea in  this version.

Yes.

Though note that this particular version is very out of date.
You should seriously consider upgrading to either 5.2.4, or the most
recent release (5.4.1).

Dave
-----Original Message-----
From: Wes Hardaker [mailto:[EMAIL PROTECTED]
Sent: Monday, August 20, 2007 7:58 PM
To: Jagadeesan Murugesan (WT01 - TES-Transport Infrastructure)
Cc: [email protected]
Subject: Re: QUERY:multi agnet in same system ?

>>>>> "jm" == jagadeesan murugesan <[EMAIL PROTECTED]>
writes:

jm> I need a help regarding changing the Ipaddress of the snmpagent .I 
jm> have configured 6 virtual Ipaddress in the system .I want to run the

jm> snmpd for each Ip series .
jm> Please can u help out .

Do you want to run 6 agents separately, one for each address?  (if so,
you can specify the listening address at the end of the command line
like "snmpd udp:127.0.0.1:161")

If you just want it to run on every interface, then just run it without
any specific instructions for what to listen on and it'll listen on
everything.
--
Wes Hardaker
Sparta, Inc.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to