02-22-2012 03:29 AM - edited 03-07-2019 05:06 AM
hi!
how can I kill vty session on 3560G if user not logined?
sw#who
Line User Host(s) Idle Location
1 vty 0 idle 11:23:17 host-xxx.net
* 3 vty 2 user idle 00:00:00 relay.xxx.net.ru
sw#clear line vty 0
[confirm]
[OK]
sw#who
Line User Host(s) Idle Location
1 vty 0 idle 11:23:27 host-xxx.net
* 3 vty 2 user idle 00:00:00 relay.xxx.net.ru
Solved! Go to Solution.
02-23-2012 09:26 PM
Hi,
You can try to clear stull TCP sessions within your switch.
You can first try to clear it with "clear tcp line #".
If did not help then check for those with show tcp brief
Those which are not established - are subject to be cleared.
You can clear those with
clear tcp tcb TCB_NUM (TCB_NUM from command show tcp brief).
Hope this helps,
Nik
02-22-2012 05:22 PM
hi maxim,
nice command you got there. i didn't even know the "who" command exist. i often used the show users command.
try using clear line 0 (without the "vty") instead.
02-23-2012 08:32 PM
hi john!
command without "vty" dont take effect as with "vty", session still exist.
02-22-2012 06:46 PM
Try this:
cle line vty 2
than try
sh line
should show clear now
HTH
02-23-2012 08:37 PM
hi, thanks for reply
sw#who
Line User Host(s) Idle Location
1 vty 0 idle 2d04h host-xxx.net
* 2 vty 1 user idle 00:00:00 relay.xxx.net.ru
Interface User Mode Idle Peer Address
sw#clear line vty 2
[confirm]
[OK]
sw#show line
Tty Typ Tx/Rx A Modem Roty AccO AccI Uses Noise Overruns Int
0 CTY - - - - - 0 0 0/0 -
* 1 VTY - - - - 95 85440 0 0/0 -
* 2 VTY - - - - 95 77852 0 0/0 -
3 VTY - - - - 95 78100 0 0/0 -
4 VTY - - - - 95 76368 0 0/0 -
5 VTY - - - - 95 18953 0 0/0 -
dont help
02-23-2012 08:42 PM
Hi,
Just try this
sw#clear line 1
HTH,
Toshi
02-23-2012 08:46 PM
hi!
no result with "clear line 1".
may be IOS bug?
* 1 28 WS-C3560G-24TS 12.2(46)SE C3560-ADVIPSERVICESK9-M
02-23-2012 08:57 PM
Hello,
What did you mean "no result"?
Let me see the output of "show line"
Toshi
02-23-2012 09:14 PM
i mean that command "clear line 1" don't help (sorry for my english).
output "show line" i've posted above
sw#show line
Tty Typ Tx/Rx A Modem Roty AccO AccI Uses Noise Overruns Int
0 CTY - - - - - 0 0 0/0 -
* 1 VTY - - - - 95 85440 0 0/0 -
* 2 VTY - - - - 95 77852 0 0/0 -
3 VTY - - - - 95 78100 0 0/0 -
4 VTY - - - - 95 76368 0 0/0 -
5 VTY - - - - 95 18953 0 0/0 -
02-23-2012 08:57 PM
hi maxim,
can you schedule a downtime and perform a reload on your switch?
02-23-2012 09:23 PM
hi jonh!
unfortunately i cant do it for now, this problem not so critical and this switch aggregate too many L2 sw. I shedule it for future.
thanks for help
02-23-2012 09:26 PM
Hi,
You can try to clear stull TCP sessions within your switch.
You can first try to clear it with "clear tcp line #".
If did not help then check for those with show tcp brief
Those which are not established - are subject to be cleared.
You can clear those with
clear tcp tcb TCB_NUM (TCB_NUM from command show tcp brief).
Hope this helps,
Nik
02-23-2012 09:32 PM
Hi Nikolay,
"clear tcp line 0" - without result
but
"clear tcp line 1" - this command kill my own session and
1 vty 0 idle 11:23:27 host-xxx.net
great, thanks!
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide