Forum Discussion

some1youknow_86's avatar
some1youknow_86
Icon for Nimbostratus rankNimbostratus
Oct 30, 2007

newbie: stop session to specific node

Hello,

 

 

Is it possible to stop session to a node (one of load balanced node in a pool) on specific time frame using iRule?

 

 

I need to reboot app server regularly and would like to stop session on specific time frame while servers are rebooted one at a time. I need to disable session prior to rebooting each server so that users can at lease save work while connected to specific node.

 

 

Thank you

 

 

Steve
  • Using an iRule? no

     

     

    But you can via iControl, or even SSH.

     

     

    Presumably you have some kind of cron task calling a script that initiates the reboot. You could edit that script to issue a 'node down' (or disable) for the node prior to restarting the app, followed by a 'node up' (or enable).

     

     

    If getting your head around iControl's SOAP interface is too much, consider setting up a private key-based account, then you can manage it via ssh:

     

     

    ssh user@bigip bigpipe node 1.1.1.1:80 down

     

     

    Since you have a private key setup, this will automatically log into the Big/IP and issue the bigpipe command. It's also a lot faster than SOAP for one-off commands.