cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2151
Views
0
Helpful
5
Replies

telnet caused trap on switches

Kevin Melton
Level 2
Level 2

I am the IT Manager of a small network.

We use Cisco Catalyst 3550 switches as well as 2950 switches.

I have configured these boxes to trap back to our manangement station for environemtal concerns. I have the following config on the boxes.

snmp-server community xxx

snmp-server community xxxx

snmp-server host 198.100.100.75 traps khazad

snmp-server enable traps envmon

For some reason, whenever I telnet to one of my switches, it generates a trap called ""tcpConnectionClose". I am not sure why.

What can I do to eliminate the unwanted "telnet" generated traps??

Thank You

5 Replies 5

yjdabear
VIP Alumni
VIP Alumni

I recall tcpConnectClose is a tty trap.

I think I read somewhere tty traps are implicitly turned on by default, even if you never configure for it.

You can try explicitly specify what types of traps you want to send:

snmp-server enable traps blah

snmp-server enable traps blah

snmp-server enable traps blah

snmp-server host 198.100.100.75 khazad blah blah blah

todd.martin-02
Level 1
Level 1

This trap is most likly an indication that your telnet session has closed. Do you see a corrosponding "open" message as well?

In most cases you can tell you NMS (I have HP OpenView) to "not log or display" the alarm.

What is your NMS of choice?

My NMS is Whats UP Gold ver.7....

Unfortunantly, I only have the ability to "define alerts". These alerts fire when any snmp trap is sent. I somehow have to tell the switches how not to send the TTY trap at the end of the connection.

You cannot use the "no snmp-server enable traps tty" because IOS barks at the TTY in that syntax...

That's why you should explicitly define what traps to send:

snmp-server enable traps abc

snmp-server enable traps def

[snmp-server enable traps tty] <- implicitly defined in IOS

snmp-server host 198.100.100.75 khazad abc def

This tells the device to only send traps of types "abc" and "def", but not "tty", to 198.100.100.75.

mlasarko
Level 1
Level 1

"x25, and tty traps are enabled by default"

http://www.cisco.com/en/US/customer/tech/tk648/tk362/technologies_tech_note09186a0080094a05.shtml

You should be able to filter them out by following the details in the above link.

HTH,

~M

Review Cisco Networking for a $25 gift card