cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
932
Views
0
Helpful
6
Replies

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

news2010a
Level 3
Level 3

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

Marlon

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

Jon

View solution in original post

6 Replies 6

Jon Marshall
Hall of Fame
Hall of Fame

Marlon

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

Jon

Giuseppe Larosa
Hall of Fame
Hall of Fame

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

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?

Marlon

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

Jon

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.

No problem Marlon, glad to have helped.

Jon

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: