cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1898
Views
5
Helpful
16
Replies

SNMP trap

alanchia2000
Level 1
Level 1

Hi,

I am unable to remove the following commands from my Cisco 3750 running configuration. The best i can do is to run "no snmp-server", but that would disable all my other snmp queries to the switch. The strange thing is when I perform "snmp-server community public", the following 2 strings will show up again in the running configuration. Any help would be appreciated.

snmp-server host 192.168.1.1 version 2c private config copy-config snmp

snmp-server host 192.168.1.2 version 2c public config copy-config snmp

Running the following doesn't seem to be able to remove the above 2 lines

no snmp-server host 192.168.1.1 version 2c private config copy-config snmp

no snmp-server host 192.168.1.2 version 2c public config copy-config snmp

2 Accepted Solutions

Accepted Solutions

amikat
Level 7
Level 7

Hi,

Provided you are running 12.2(25)SEA image you may be hitting the CSCeh33092 bug with the following symptoms:

A Catalyst 3750 running 12.2(25)SEA may not delete the command "snmp-server host

x.x.x.x" from the running configuration.

Workaround:

None

This should be fixed in 12.2(25)SEB and later.

Best regards,

Antonin

View solution in original post

fzamora
Cisco Employee
Cisco Employee

Hi,

Please check the following info:

CSCeh52674 Bug Details

no snmp-server host command will not remove entry from config

To remove the host, explicitly specify default UDP port number

162 by entering the no snmp-server host

host-address udp-port 162 public

command.

http://www.cisco.com/cgi-bin/Support/Bugtool/onebug.pl?bugid=CSCeh52674&Submit=Search

Hope it helps,

Franco Zamora

View solution in original post

16 Replies 16

rajinikanth
Level 3
Level 3

Hi,

The workaround is to ensure that the target host or the next-hop gateway to that host is in the ARP cache (for example, by issuing a ping command) before removing it from the SNMP configuration. Alternatively, disable all SNMP traps and informs before removing any hosts from the SNMP configuration.

Hope this helps

Thanks

Raj

Hi Raj,

No it doesn't help. Seriously, how does ensuring the host in the arp cache help in removing the few lines that I have mentioned.

Hi

Its the caveat with no. (CSCdw44266)

The switch might reload when it is executing the no snmp-server host global configuration command. This is a rare condition that can happen if SNMP traps or informs are enabled and the SNMP agent attempts to send a trap to the host just as it is being removed from the configuration and if the IP address of the host (or the gateway to reach the host) has not been resolved by Address Resolution Protocol (ARP).

HTH

Thanks

Raj

Hi Raj,

The issue is that I have no snmp-server enable trap or snmp-server enable informs in my running configuration. So I was wondering why am I not allowed to removed the 3 lines.

Hi, have you just removing it after private or public.

no snmp-server host 192.168.1.1 version 2c private

Well, now I have more lines to remove and I cannot do so.

snmp-server host 192.168.3.2 abc123 config snmp

snmp-server host 192.168.3.2 version 2c private config copy-config snmp

snmp-server host 192.168.1.1 version 2c private config copy-config snmp

snmp-server host 192.168.1.2 version 2c public config copy-config snmp

Is anyone here able to help ?

Can you post your complete snmp config here?

Hi Davis,

Thanks for asking.

Here is my configuration:

snmp-server community password1 RO

snmp-server community password2 RW

snmp-server host 192.168.3.1 abc123 config snmp

snmp-server host 192.168.4.1 version 2c private config copy-config snmp

snmp-server host 192.168.5.1 version 2c public

snmp-server host 192.168.6.1 version 2c public

amikat
Level 7
Level 7

Hi,

Provided you are running 12.2(25)SEA image you may be hitting the CSCeh33092 bug with the following symptoms:

A Catalyst 3750 running 12.2(25)SEA may not delete the command "snmp-server host

x.x.x.x" from the running configuration.

Workaround:

None

This should be fixed in 12.2(25)SEB and later.

Best regards,

Antonin

Hi Antonin,

That sounds good enough to me ! Thanks a lot!

By the way, where did you find the bugs for Cisco 3750?

Hi,

There is a bug tool at www.cisco.com, but you need more than a guest profile to access.

Best regards,

Antonin

Duplicate

fzamora
Cisco Employee
Cisco Employee

Hi,

Please check the following info:

CSCeh52674 Bug Details

no snmp-server host command will not remove entry from config

To remove the host, explicitly specify default UDP port number

162 by entering the no snmp-server host

host-address udp-port 162 public

command.

http://www.cisco.com/cgi-bin/Support/Bugtool/onebug.pl?bugid=CSCeh52674&Submit=Search

Hope it helps,

Franco Zamora

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: