Forum Discussion

es_tac_132817's avatar
es_tac_132817
Icon for Nimbostratus rankNimbostratus
Jun 02, 2017

iRule - Check telnet sessions

We have a virtual server with 3 nodes, 2 of these nodes are licensed for 100 simultaneous telnet sessions and the third license has unlimited sessions.

 

We want to configure an irule that verifies that when nodes 1 and 2 have 98 active telnet sessions the F5 stops sending requests to it.

 

Do you have any similar irule?

 

7 Replies

  • You can apply node level session limit. There is no option to call tmsh command via iRule.

     

    • es_tac_132817's avatar
      es_tac_132817
      Icon for Nimbostratus rankNimbostratus

      We have already tried with limit of session and it does not work to us since they do not match the sessions that appear in the F5 with the real sessions of the server. Can not create an iRule for this?

       

    • Samir_Jha_52506's avatar
      Samir_Jha_52506
      Icon for Noctilucent rankNoctilucent

      Which F5 Version you are using? It should work as its option available on F5.

      FYI

          Local Traffic >> Pools >> Pool name >> Members >> member IP:port >> Connection Limit. 
      
  • Hello,

     

    Have you tried with the "Connection Limit" setting on the Node/Pool Member ? Not sure if you are talking about the same setting in previous answer.

     

    Regards

     

  • Hi,

     

    I am not sure why Connection Limit on node should not work. According to build in help:

     

    Specifies a maximum established connection limit for a pool member or node. When the current connections count reaches this number, the system does not send additional connections to that pool member or node.

     

    Is above not true for you? So there is more connection on server side than on client side?

     

    It's of course possible to call MGMT plane (tmsh commands) from iRule - just use iCall and probably iStats.

     

    Piotr