Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Community Member

How to find out where message is coming from and stop it

Hey folks, on my recently configured c2950-i6q4l2-mz.121-22.ea4a.bin I keep getting the message below. Is there any IOS command to let me pinpoint from which process and reason this message is coming from?

sw#

*Feb 28 16:35:12.031: %IP_SNMP-3-SOCKET: can't open UDP socket

*Feb 28 16:35:12: Unable to open socket on port 161

*Feb 28 16:36:12.031: %IP_SNMP-3-SOCKET: can't open UDP socket

*Feb 28 16:36:12: Unable to open socket on port 161

1 ACCEPTED SOLUTION

Accepted Solutions
Hall of Fame Super Blue

Re: How to find out where message is coming from and stop it

Marlon

Can you type "no snmp-server" from global config.

Jon

6 REPLIES
Hall of Fame Super Blue

Re: How to find out where message is coming from and stop it

Marlon

Check your SNMP config on the switch or alternatively post the config.

Jon

Hall of Fame Super Silver

Re: How to find out where message is coming from and stop it

Hello Marlon,

have you configured SNMP on this device ?

you can check with

sh snmp

sh run | inc snmp

UDP port 161 is SNMP, UDP port 162 is for SNMP traps

if SNMP is configured the message is telling that the switch is not able to allocate an UDP socket to answer to an SNMP get that comes from a network management system.

check free memory with

sh proc mem | inc Free

Hope to help

Giuseppe

Community Member

Re: How to find out where message is coming from and stop it

This is the strange part:

If i do 'sh run | inc snmp' the only command related to snmp is:

sw#show run | in snmp

snmp-server engineID local 900000070200001CC1C02C50

Then I do

config t 'no snmp-server engineID'

the 'cant open UDP socket' message persists.

Then I do again 'show run | in snmp' and such entry remains in the configuration.

Any ideas on how to get rid of this?

Hall of Fame Super Blue

Re: How to find out where message is coming from and stop it

Marlon

Can you type "no snmp-server" from global config.

Jon

Community Member

Re: How to find out where message is coming from and stop it

The 'no snmp-server' did it.

Well, I can't quite understand why by typing the entire string the command was not removed though.

Thank you very much folks.

Hall of Fame Super Blue

Re: How to find out where message is coming from and stop it

No problem Marlon, glad to have helped.

Jon

610
Views
0
Helpful
6
Replies
CreatePlease to create content