Forum Discussion
Need to set console timeouts in 10.2.4 and 9.4.2
Hey guys,
I must set timeouts for all methods of access, including console. I have set my timeouts for the WebUI and for SSH, but I can't seem to find a way to configure this for the console. I searched for this specific information, but of course I'm finding much more information on setting tcp timeouts when I search. I need this info for 10.2.4 and 9.4.2.. I'm sure this is a very simple thing, I'm just not finding it anywhere. Can someone help?
Thanks!
2 Replies
- mkahler_108475Historic F5 AccountHi. I had to dig for this one. The only way I could find to set timeout for console is to modify the bashrc file. I tested this on /root/.bashrc for 10.2.x and this variable still works:
-------------------
.bashrc
User specific aliases and functions
alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'
export TMOUT=300 <--- add this line to set a 300 sec inactivity timeout into /root/.bashrc file --->
----------------
If you look at /root/.bashrc, you will notice the rc file sources /etc/bashrc. If you need to include everyone who may be able to log into console, you may want to modify that file. I did not figure out where to put the variable. Probably around the "interactive shell" section.
This variable assumes you have assigned bash to everyones login. Other shells including tmsh may not use the variable. Also, if you fat finger this variable and create a very short timeout, you may have to reboot to single user mode to remove/change the variable. Use with caution... - atomicdog_7107
Nimbostratus
Thanks for the response!
So apparently this is possible in tmsh and bigpipe...
On newer versions with tmsh use the following command:
tmsh modify sys global-settings console-inactivity-timeout
and for the older versions with bigpipe it appears to be:
b system console inactivity timeout
Hope this helps someone else in their search!
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com