Use DNS, then you can set the IP address to whatever you like without having to worry about restarting SNMPd every time it changes. This does mean reliance on a DNS server being available, unless you then set it in your hosts file.
Cheers, David > On 25 Mar 2015, at 06:24, Thomas Andrews <tandr...@grok.co.za> wrote: > > Hi, > > I need to be able to change the trap sink IP address dynamically. > Currently it is in /etc/snmp/snmpd.conf: > > trap2sink 192.168.2.1 public > > I understand that I can possibly update the config file and then make > snmpd re-read it but I would prefer something a bit more "elegant" if > possible. Any suggestions? > > Many thanks, > Thomas > > ------------------------------------------------------------------------------ > Dive into the World of Parallel Programming The Go Parallel Website, sponsored > by Intel and developed in partnership with Slashdot Media, is your hub for all > things parallel software development, from weekly thought leadership blogs to > news, videos, case studies, tutorials and more. Take a look and join the > conversation now. http://goparallel.sourceforge.net/ > _______________________________________________ > 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 ------------------------------------------------------------------------------ Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ _______________________________________________ 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