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

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

Vty line not getting cleared

Even after reboot or issuing the

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

3 REPLIES
Hall of Fame Super Silver

Re: Vty line not getting cleared

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

New Member

Re: Vty line not getting cleared

Hi Buddy,

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

Mahi

New Member

Vty line not getting cleared

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

952
Views
0
Helpful
3
Replies