Skip to main content

Are there any command line (qscript?) methods to query the state of a MediaAgent (on-line/maintenance mode)?

From time to time things get busy at the end of a maintenance window and the MA is stranded in maintenance mode. I’d like to scan all MAs at the end of the business day and flag any that are in maintenance mode, or put them into service.

Thanks.


Marc

Details: Hyperscale 1.5, RHEL 7.9, Ansible, qscript, shell scripting all in common use


Try this one:

https://documentation.commvault.com/11.24/expert/45252_qoperation_checkready.html

It’s not Media Agent specific, but will work for your needs.

Let me know if that helps!


Hi @MarcS 

This thread explains how you can change MA maintenance status:
 

 

It doesn’t query or return status, the script mentioned simply sets/unsets the maintenance mode flag on the MA.

Thanks,

Stuart


Reply