Hello,

The SNMP daemon can be configured to listen on a set of ports through
entries like this in file snmpd.conf :

agentaddress tcp:2161
agentaddress tcp:2162

I tried to reconfigure the daemon to listen on more or less ports than the
above as follows:
1. Edit snmpd.conf and add or remove agentaddress entries.
2. $ killall -HUP snmpd

The logging was like this:

Reconfiguring daemon
NET-SNMP version 5.9.4.pre2 restarted

The daemon kept the same ports open as before editing the snmpd.conf even
in case some agentaddress entries were removed from snmpd.conf.

Questions:
1. Is this the correct way of reconfiguring the SNMP agent?
2. How to add or remove listening ports during reconfigure, is this even
possible at all?
3. Can I do a bit of library patching work to get this done?

Thank you for considering this question, and thank you for the great SNMP
library, we use it a lot.

With kind regards,

Teus Benschop
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to