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

SNMP trap

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
Silver

Re: SNMP trap

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

Cisco Employee

Re: SNMP trap

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

15 REPLIES
Bronze

Re: SNMP trap

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

New Member

Re: SNMP trap

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.

Bronze

Re: SNMP trap

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

New Member

Re: SNMP trap

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.

New Member

Re: SNMP trap

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

no snmp-server host 192.168.1.1 version 2c private

New Member

Re: SNMP trap

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

New Member

Re: SNMP trap

Is anyone here able to help ?

Cisco Employee

Re: SNMP trap

Can you post your complete snmp config here?

New Member

Re: SNMP trap

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

Silver

Re: SNMP trap

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

New Member

Re: SNMP trap

Hi Antonin,

That sounds good enough to me ! Thanks a lot!

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

Silver

Re: SNMP trap

Hi,

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

Best regards,

Antonin

New Member

Re: SNMP trap

Duplicate

Cisco Employee

Re: SNMP trap

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

New Member

Re: SNMP trap

Yes, it certainly helped alot. Thanks a million!

351
Views
0
Helpful
15
Replies
CreatePlease to create content