Can you try running without '-c <config_file>' option? If you see using 'strace' snmpd default starts listening on udp:161 and then reads the config file and tries to listen to the same udp:161 which causes issues and once you kill snmpd both of them are gone, hence not seen in netstat.
On Mon, Mar 9, 2020 at 11:01 PM Schmoll Walter <walter.schm...@andritz.com> wrote: > > Hi, > > > > I’m not sure, but are UDP ports ever listening? I don’t think so. > > Why not try something like > > netstat –aupn | grep 161 > > ? > > > > But I’m just guessing. > > > > > > > > From: Simon Chamlian [mailto:simon.chaml...@mpbc.ca] > Sent: Monday, 9. March 2020 14:36 > To: David Moriconi (dmoricon) <dmori...@cisco.com> > Cc: net-snmp-users <net-snmp-us...@lists.sourceforge.net>; Net-SNMP Coders > <net-snmp-coders@lists.sourceforge.net> > Subject: Re: v5.8 - Error opening specified endpoint "" > > > > NON-ANDRITZ SOURCE: BE CAUTIOUS WITH CONTENT, LINKS OR ATTACHMENTS. > > It is not the case! > > > > # netstat -tulpn | grep LISTEN > tcp 0 0 0.0.0.0:36847 0.0.0.0:* LISTEN > 248/rpc.statd > tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN > 238/rpcbind > tcp 0 0 0.0.0.0:21 0.0.0.0:* LISTEN > 246/vsftpd > tcp 0 0 0.0.0.0:5355 0.0.0.0:* LISTEN > 232/systemd-resolve > tcp6 0 0 :::111 :::* LISTEN > 238/rpcbind > tcp6 0 0 :::80 :::* LISTEN > 530/httpd > tcp6 0 0 :::22 :::* LISTEN > 1/init > tcp6 0 0 :::55423 :::* LISTEN > 248/rpc.statd > tcp6 0 0 :::5355 :::* LISTEN > 232/systemd-resolve > # > > > > > > # cat /etc/services | grep 161 > snmp 161/tcp # Simple Net Mgmt Protocol > snmp 161/udp > # > > > > > > > > > > > > > > > > > > On Fri, Mar 6, 2020 at 4:30 PM David Moriconi (dmoricon) <dmori...@cisco.com> > wrote: > > This error can also happen when port 161 is already in use. Make sure it is > not the case. > > > > From: Simon Chamlian <simon.chaml...@mpbc.ca> > Date: Friday, March 6, 2020 at 3:50 PM > To: Larry Hayes <lhay...@gmail.com> > Cc: Net-SNMP Coders <net-snmp-coders@lists.sourceforge.net>, net-snmp-users > <net-snmp-us...@lists.sourceforge.net> > Subject: Re: v5.8 - Error opening specified endpoint "" > > > > when I run your suggestion, I get: > > > > Error opening specified endpoint "udp:0.0.0.0:161" > > > > > > > > ________________________________ > > This message and any attachments are solely for the use of the intended > recipients. They may contain privileged and/or confidential information or > other information protected from disclosure. If you are not an intended > recipient, you are hereby notified that you received this email in error and > that any review, dissemination, distribution or copying of this email and any > attachment is strictly prohibited. If you have received this email in error, > please contact the sender and delete the message and any attachment from your > system. > > ANDRITZ HYDRO GmbH > > > Rechtsform/ Legal form: Gesellschaft mit beschränkter Haftung / Corporation > > Firmensitz/ Registered seat: Wien > > Firmenbuchgericht/ Court of registry: Handelsgericht Wien > > Firmenbuchnummer/ Company registration: FN 61833 g > > DVR: 0605077 > > UID-Nr.: ATU14756806 > > > Thank You > ________________________________ > _______________________________________________ > Net-snmp-coders mailing list > Net-snmp-coders@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/net-snmp-coders -- Thanks, Regards, Chaitanya T K. _______________________________________________ Net-snmp-coders mailing list Net-snmp-coders@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/net-snmp-coders