Skip to main content

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?

 

 

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