Solved

How to know when a failover happened and to which node using REST API?

  • 28 March 2024
  • 1 reply
  • 27 views

Badge +2

Hey! I am developing automation scrips using Commvault APIs for my team. I know the names of primary commserve which I use, BUT whenever a failover happens my API calls of course don’t work as there is no web service active on the primary commserve. 

 

Is there a way to know which node the failover happened to using just the APIs? And also get the list of all failover nodes?

 

 

icon

Best answer by Albert Williams 5 April 2024, 01:54

View original

1 reply

Userlevel 5
Badge +12

Hello @Prashant Mall 

Thanks for the great question. 

The following will return the hostname of the CS: 
https://api.commvault.com/docs/SP34/api/cv/ControlPanelOperations/get-comm-serv#get-commserv-details

The following will give you Monitoring nodes and fail over nodes: 
https://api.commvault.com/docs/SP34/api/cv/CSLiveSync/get-comm-serv-failover#fetch-cslivesync-config

I’m not sure if you can find your answer here but these two would be where i start.

Kind regards
Albert Williams

Reply