Forum Discussion

rookie11's avatar
rookie11
Moderator
12 years ago
Solved

bpclient command

Hi experts

i got a master server consist of 1500 clients. next week we have a power down\power up maintainence which will go for 4 hrs approx. during this time i need to make 400 clients offline. i know to use : bpclient -client CLIENT NAME -update -offline -ut -onlineat unixtime.

but i cannot run it for all 400 server one by one. please tel me how to use simple script\method to make them offline and then as per requirement make them online.

  • unix:

     

    Put all the clients in the file listofclients (or whatever you want to call it)

     

    for client in `cat listofclients`

    do

    bpclient -client $client -update -offline -ut -onlineat unixtime.

    done

     

     

  • unix:

     

    Put all the clients in the file listofclients (or whatever you want to call it)

     

    for client in `cat listofclients`

    do

    bpclient -client $client -update -offline -ut -onlineat unixtime.

    done

     

     

  • Why not just suspend the scheduler?

    Or will certain clients be left online for which backups need to run?

     

  •  can't suspend scheduler. power down is in phases.

    backups from certain region \type has to go as per schedule.

  • See above, I have supplied a basic script for automating it in unix, but you need to populate a file with a list of clients you want to disable.