Solved

Command line query the status of a MediaAgent

  • 21 October 2021
  • 3 replies
  • 537 views

Badge +1

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

icon

Best answer by Stuart Painter 22 October 2021, 07:30

View original

3 replies

Badge +1

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

Userlevel 7
Badge +23

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!

Userlevel 7
Badge +15

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