cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
6881
Views
0
Helpful
12
Replies

clear not logged line vty 3560

maxim.alyakin
Level 1
Level 1

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

1 Accepted Solution

Accepted Solutions

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

HTH,
Niko

View solution in original post

12 Replies 12

johnlloyd_13
Level 9
Level 9

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.

hi john!

command without "vty" dont take effect as with "vty", session still exist.

Reza Sharifi
Hall of Fame
Hall of Fame

Try this:

cle line vty 2

than try

sh line

should show clear now

HTH

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

Hi,

    Just try this     

    sw#clear line 1

HTH,

Toshi

hi!

no result with "clear line 1".

may be IOS bug?

*    1 28    WS-C3560G-24TS     12.2(46)SE            C3560-ADVIPSERVICESK9-M 

Hello,

   What did you mean "no result"?

   Let me see the output of "show line"

Toshi

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       -

hi maxim,

can you schedule a downtime and perform a reload on your switch?

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

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

HTH,
Niko

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!

Review Cisco Networking products for a $25 gift card