Hello, you may query the runtime object of type 'SaAmfSIAssignment' of your controller definition, using the 'immlist' command If you use the default imm.xml generated by 'immxml-configure', this would be:
Query SC-1: immlist "safSISU=safSu=SC-1\,safSg=2N\,safApp=OpenSAF,safSi=SC-2N,safApp=OpenSAF" Query SC-2: immlist "safSISU=safSu=SC-2\,safSg=2N\,safApp=OpenSAF,safSi=SC-2N,safApp=OpenSAF" In the output, check attribute saAmfSISUHAState": 1 => active controller, 2 => standby controller. This is how I do it in my implementation. Regards Gerald -----Ursprüngliche Nachricht----- Von: Carroll, James R [mailto:[email protected]] Gesendet: Mittwoch, 10. Mai 2017 21:03 An: [email protected] Betreff: [users] determining active/standby SC Hi, I am using openSAF 5.0, and I was wondering if there is a straightforward way to determine the Active and Standby controllers for a cluster. Is there a specific IMM query that would give me this info, or is there some other mechanism? Thank you. Jim ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Opensaf-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/opensaf-users The information contained in this e-mail message is privileged and confidential and is for the exclusive use of the addressee. The person who receives this message and who is not the addressee, one of his employees or an agent entitled to hand it over to the addressee, is informed that he may not use, disclose or reproduce the contents thereof, and is kindly asked to notify the sender and delete the e-mail immediately. ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Opensaf-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/opensaf-users
