Solved

I have 200+ media agent and need to mark it to maintenance mode via workflow or q-commands.

  • 14 July 2021
  • 2 replies
  • 793 views

Userlevel 1
Badge +2

I have 200+ media agent and need to mark it to maintenance mode via workflow or q-commands. 

icon

Best answer by Stuart Painter 14 July 2021, 08:36

View original

2 replies

Userlevel 7
Badge +15

Hi @psbsanthoshkumar 

Thanks for the question and welcome to the Community.

This is similar to this question, for putting MAs into maintenance mode:
 

 

There is a script to Set Media Agent Properties, one of which is marking MA offline/online:

  • To mark MediaAgent as offline for maintenance
    qoperation execscript -sn setMediaAgentProperty -si sample_ma -si 8 -si 1

 

  • To unmark MediaAgent as offline for maintenance
    qoperation execscript -sn setMediaAgentProperty -si sample_ma -si 8 -si 0

Thanks,

Stuart

Userlevel 1
Badge +2

@Stuart Painter Do we have the similar query to mark the MA to offline mode ?

Reply