Please let me know through a code sample how to add a server in a collective list.
Thanks and Regards
Any suggestions team?
PISDK doesn't take care of this.
High Availability and PI Server Replication User Manual, on its last chapter, discusses some command line tools that may be used to administrate the collective while HA Administrator Guide (available in the regular support download center) shows how to manually create collectives (relying on those command line tools).
You could code that section (page 71 onwards) on the HA Administrator Guide. It would entail copying files over, forcing archive shifts via piartool, and querying via piconfig. However, to the best of my knowledge, to do it all directly (i.e., without the use of said command line tools) one would have to use the RPCs directly and these aren't publicly exposed.
Hopefully this helps.
Retrieving data ...