cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
3274
Views
5
Helpful
3
Replies

Vty line not getting cleared

f501664236
Level 1
Level 1

Even after reboot or issuing the

"clear line vty" the vty lines are not getting cleared......

3 Replies 3

Giuseppe Larosa
Hall of Fame
Hall of Fame

Hello,

>> Even after reboot or issuing the

"clear line vty" the vty lines are not getting cleared.

line vty are useful to telnet to the device,

clear line vty doesn't delete the line vty it just frees it if busy.

However, after a reboot / reload you should see only one line vty used the one you are on:

see

RT-RM-FONTBORG-RT-1#sh users

Line User Host(s) Idle Location

* 66 vty 0 g.larosa idle 00:00:00 10.55.49.56

67 vty 1 g.larosa idle 00:00:07 10.55.49.56

Interface User Mode Idle Peer Address

RT-RM-FONTBORG-RT-1#clear line vty 1

[confirm]y [OK]

RT-RM-FONTBORG-RT-1#sh users

Line User Host(s) Idle Location

* 66 vty 0 g.larosa idle 00:00:00 10.55.49.56

Interface User Mode Idle Peer Address

RT-RM-FONTBORG-RT-1#

! again with clear line

RT-RM-FONTBORG-RT-1#sh users

Line User Host(s) Idle Location

* 66 vty 0 g.larosa idle 00:00:00 10.55.49.56

67 vty 1 g.larosa idle 00:00:04 10.55.49.56

RT-RM-FONTBORG-RT-1#clear line 66

% Not allowed to clear current line

RT-RM-FONTBORG-RT-1#clear line 67

[confirm]y [OK]

RT-RM-FONTBORG-RT-1#sh users

Line User Host(s) Idle Location

* 66 vty 0 g.larosa idle 00:00:00 10.55.49.56

Interface User Mode Idle Peer Address

RT-RM-FONTBORG-RT-1#

Hope to help

Giuseppe

mohindersingh
Level 1
Level 1

Hi Buddy,

its lil funny, but do your user-Id have rights to clear the vty line..smtime we miss small things

Mahi

troswellCCO
Level 1
Level 1

Depends if you're accessing using your router as a Terminal Server over Octal cable.

Try "disconnect" command instead of "clear".

Router1#sh sess

Conn Host                Address             Byte  Idle Conn Name

*  1 dogg              192.168.239.1        151    14 dogg

Router1#clear line 1

% Not allowed to clear current line [OK]

Router1#

Router1#disconnect 1

Closing connection to dogg [confirm]

Router1#sh sess

% No connections open

Router1#

HTH

Review Cisco Networking for a $25 gift card