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

hanged users in show user output

dear all

though I have configured service tcp-keepalives-in

I can see that my console connection shows hanged as #sh users

Line User Host(s) Idle Location

0 con 0 mahesh idle 17w1d

* 2 vty 0 mahesh idle 00:00:00 202.56.223.210

any Idea

Regards

Mahesh

1 ACCEPTED SOLUTION

Accepted Solutions
Hall of Fame Super Bronze

Re: hanged users in show user output

You need to configure 'exec-timeout', from CCO:

exec-timeout

To set the interval that the EXEC command interpreter waits until user input is detected, use the exec-timeout line configuration command. Use the no form of this command to remove the timeout definition.

exec-timeout minutes [seconds]

no exec-timeout

Syntax Description

minutes Integer that specifies the number of minutes.

seconds (Optional) Additional time intervals in seconds.

Default

10 minutes

Command Mode

Line configuration

Usage Guidelines

This command first appeared in Cisco IOS Release 10.0.

If no input is detected during the interval, the EXEC facility resumes the current connection. If no connections exist, the EXEC facility returns the terminal to the idle state and disconnects the incoming session.

To specify no timeout, enter the exec-timeout 0 0 command.

Examples

The following example sets a time interval of 2 minutes, 30 seconds:

line console

exec-timeout 2 30

The following example sets a time interval of 10 seconds:

line console

exec-timeout 0 10

-------------

Please rate helpful posts.

Thanks

3 REPLIES
Hall of Fame Super Bronze

Re: hanged users in show user output

You need to configure 'exec-timeout', from CCO:

exec-timeout

To set the interval that the EXEC command interpreter waits until user input is detected, use the exec-timeout line configuration command. Use the no form of this command to remove the timeout definition.

exec-timeout minutes [seconds]

no exec-timeout

Syntax Description

minutes Integer that specifies the number of minutes.

seconds (Optional) Additional time intervals in seconds.

Default

10 minutes

Command Mode

Line configuration

Usage Guidelines

This command first appeared in Cisco IOS Release 10.0.

If no input is detected during the interval, the EXEC facility resumes the current connection. If no connections exist, the EXEC facility returns the terminal to the idle state and disconnects the incoming session.

To specify no timeout, enter the exec-timeout 0 0 command.

Examples

The following example sets a time interval of 2 minutes, 30 seconds:

line console

exec-timeout 2 30

The following example sets a time interval of 10 seconds:

line console

exec-timeout 0 10

-------------

Please rate helpful posts.

Thanks

New Member

Re: hanged users in show user output

Hello, I am experiencing the same thing on my 6509's:

SC01#sh user
    Line       User       Host(s)              Idle       Location
   1 vty 0     adm     10.0.4.124                                  1y37w  10.7.3.248
   2 vty 1     caba        idle              00:25:06  10.7.2.190
*  3 vty 2     adm          idle            00:00:00   10.7.2.241
   4 vty 3     chio      10.0.8.143                                     40w0d  10.7.3.240
   5 vty 4     valen    10.0.8.250                                       28w6d  10.7.2.36
   6 vty 5     chio     10.0.4.161                                    00:00:03  10.7.2.38

There's 3 connections hung for a long time now, I know rebooting would solve the problem, but any other commands you might know?

And the VTY's are configurred with exec-timeout and they work when I stay connected too long.

line vty 0 4
exec-timeout 15 0
logging synchronous
line vty 5 15
exec-timeout 15 0
logging synchronous

New Member

Re: hanged users in show user output

you can clear them by issuing clear line vty {vty session number}

253
Views
5
Helpful
3
Replies
CreatePlease login to create content