Skip to main content
Solved

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

  • March 28, 2024
  • 1 reply
  • 35 views

Forum|alt.badge.img+4

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?

 

 

Best answer by Albert Williams

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

View original
Did this answer your question?

Forum|alt.badge.img+15

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


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