How to kill hung vty sessions?

Rogue

Banned
Jan 28, 2000
5,774
0
0
I have several hung telnet/vty sessions that I need to kill on my Cisco 6509 router. What command will kill those connections?
 

BeanDip

Member
Apr 25, 2004
45
0
0
clear line # (where # is the vty line)

Course there's always the reload command :laugh:
 

Rookie

Golden Member
Jan 27, 2000
1,178
0
76
you can also use exec-timeout (in line config mode on the vty) to kill inactive sessions...
 

JeffBruce

Member
Jun 12, 2004
44
0
0
Cisco states not to turn off your router or switch..only in emergencies...also 6509 is a switch not a router
jeff
 

Rogue

Banned
Jan 28, 2000
5,774
0
0
Actually, our 6509 has two MSFC modules (redundant), a switch module, a firewall service module, an intrusion detection module and a network analysis module. It's primary function is as a router and firewall vs. a switch. Thanks for the help BTW. BeanDip's method works great.
 

BeanDip

Member
Apr 25, 2004
45
0
0
Actually, our 6509 has two MSFC modules (redundant), a switch module, a firewall service module, an intrusion detection module and a network analysis module.

Wow that is like the Swiss-army knife of Layer 3 switches! :)

If you want to keep the inactive vty lines from happening you can use Rookie's suggestion of exec-timeout on the vty lines to time out inactive sessions.
 

Rogue

Banned
Jan 28, 2000
5,774
0
0
Originally posted by: BeanDip
Actually, our 6509 has two MSFC modules (redundant), a switch module, a firewall service module, an intrusion detection module and a network analysis module.

Wow that is like the Swiss-army knife of Layer 3 switches! :)

If you want to keep the inactive vty lines from happening you can use Rookie's suggestion of exec-timeout on the vty lines to time out inactive sessions.

I believe my co-worker used the exec-timeout method to kill the sessions after a reload failed to kill them. However, since we killed those sessions, I had another hung session and was able to kill it using your clear line method with no problem.
 

spidey07

No Lifer
Aug 4, 2000
65,469
5
76
Originally posted by: BeanDip
Actually, our 6509 has two MSFC modules (redundant), a switch module, a firewall service module, an intrusion detection module and a network analysis module.

Wow that is like the Swiss-army knife of Layer 3 switches! :)

If you want to keep the inactive vty lines from happening you can use Rookie's suggestion of exec-timeout on the vty lines to time out inactive sessions.

actually a 6509 with msfc and SLB is considered a layer7 switch. But at its heart it is a switch that routes at layers 3 and 4 with the capability to be an application (layer7) switch.

Architectually though - it is a switch, but then again any really good router is a "switch" at its core. There are two separate planes in a high end router...a control plane and a switching plane. Control tells it where to go, switching is the actual act of moving/reproducing the frame on the egress port.

;)