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

clear not logged line vty 3560

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
Cisco Employee

clear not logged line vty 3560

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

12 REPLIES

clear not logged line vty 3560

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.

New Member

clear not logged line vty 3560

hi john!

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

VIP Super Bronze

clear not logged line vty 3560

Try this:

cle line vty 2

than try

sh line

should show clear now

HTH

New Member

clear not logged line vty 3560

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

clear not logged line vty 3560

Hi,

    Just try this     

    sw#clear line 1

HTH,

Toshi

New Member

clear not logged line vty 3560

hi!

no result with "clear line 1".

may be IOS bug?

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

clear not logged line vty 3560

Hello,

   What did you mean "no result"?

   Let me see the output of "show line"

Toshi

New Member

clear not logged line vty 3560

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       -

clear not logged line vty 3560

hi maxim,

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

New Member

clear not logged line vty 3560

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

Cisco Employee

clear not logged line vty 3560

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

New Member

Re: clear not logged line vty 3560

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!

1305
Views
0
Helpful
12
Replies
CreatePlease to create content