Hi Dave,

Thanks for the reply. We have already configured the trap sink in snmpd.conf. 
And it works fine. But we need to know whether once the VM comes up in new 
network the SNMP agent on it should automatically find out the SNMP server in 
the local network and send a trap to it. Is this possible...?

-----Original Message-----
From: dave.shi...@gmail.com [mailto:dave.shi...@gmail.com] On Behalf Of Dave 
Shield
Sent: Monday, January 28, 2013 2:54 PM
To: Khalid Mumtaz -X (kmumtaz - Paxterra Software SPL at Cisco)
Cc: net-snmp-users@lists.sourceforge.net
Subject: Re: Dynamic Configuration of SNMP Agent

On 28 January 2013 06:48, Khalid Mumtaz -X (kmumtaz - Paxterra Software SPL at 
Cisco) <kmum...@cisco.com> wrote:
>                                So I would like to know if there is any 
> mechanism through which we can configure the SNMP agent in such a way 
> that it starts to send traps to SNMP server in the new network.

Look at the file 'snmpd.conf'
This should include a line starting with one of the tokens "trapsink" or 
"trap2sink" or "informsink" or "trapsession".
This line will include an IP address - change this to the new
management server, and restart the agent.   That will then
direct traps to the new server.

If you want to keep sending traps to the old location as well, then duplicate 
the line and change the IP address in second version.
If there are two entries, then the agent will send two traps.

[And if you've got both 'trapsink' AND 'trap2sink' AND 'informsink'
 listed in the snmpd.conf file, then
     a) you haven't read the documentation carefully enough, and
     b) you will be getting three copies of every trap.
          Three lines, three traps.  Simples ]

Dave

------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnnow-d2d
_______________________________________________
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/listinfo/net-snmp-users

Reply via email to