Skip to main content
Answer

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

  • July 14, 2021
  • 2 replies
  • 1095 views

Forum|alt.badge.img+1

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

Best answer by Stuart Painter

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

2 replies

Forum|alt.badge.img+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


Forum|alt.badge.img+1

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