05-28-2009 12:00 PM - edited 03-06-2019 05:59 AM
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
Solved! Go to Solution.
05-28-2009 12:48 PM
05-28-2009 12:11 PM
Marlon
Check your SNMP config on the switch or alternatively post the config.
Jon
05-28-2009 12:13 PM
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
05-28-2009 12:40 PM
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?
05-28-2009 12:48 PM
Marlon
Can you type "no snmp-server" from global config.
Jon
05-28-2009 12:52 PM
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.
05-28-2009 01:01 PM
No problem Marlon, glad to have helped.
Jon
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: