Forum Discussion
atomicdog_7107
Nimbostratus
Sep 28, 2012Need 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 con...
mkahler_108475
Oct 04, 2012Historic F5 Account
Hi. 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...
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects