Skip to main content
Solved

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


Forum|alt.badge.img+2

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

View original
Did this answer your question?

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+2

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


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings