Forum Discussion

itsd2001_261164's avatar
itsd2001_261164
Icon for Nimbostratus rankNimbostratus
Jan 23, 2017

irule to disable pool member

Hi Guys,

 

Looking for irule to disable/enable some pool member at specific time:

 

Before 8:00am

 

CWEB1 => Disable

 

CWEB2 => Disable

 

CWEB5 => Enable

 

CFDB1 => Enable

 

CFDB2 => Disable

 

At 8:00am :

 

CWEB1 => Enable

 

CWEB2 => Enable

 

CWEB5 => Enable

 

CFDB1 => Enable

 

CFDB2 => Enable

 

At 8:30am :

 

CWEB1 => Enable

 

CWEB2 => Enable

 

CWEB5 => Disable

 

CFDB1 => Disable

 

CFDB2 => Enable

 

At 9:00am :

 

CWEB1 => Enable

 

CWEB2 => Enable

 

CWEB5 => Enable

 

CFDB1 => Enable

 

CFDB2 => Disable

 

The time is Eastern time.

 

Any help will be appreciated.

 

Thanks

 

1 Reply

  • are you ok to use crontab to achieve this?

     

    00 13 * * 0 export REMOTEUSER=root ; tmsh -c "modify ltm pool pool_name members modify {10.1.1.1:80 10.2.2.2:80 { state user-down session user-disabled}}"