Forum Discussion

atomicdog_7107's avatar
atomicdog_7107
Icon for Nimbostratus rankNimbostratus
Sep 28, 2012

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_108475's avatar
    mkahler_108475
    Historic 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...

     

     

  • 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!