If you wish to determine the state of the node you execute the command on, you can also try the rdegetrole command.
regards, Anders Widell On 05/11/2017 08:24 AM, praveen malviya wrote: > Immsearch on SIAssignment will list all objects including applications > also. There is amf utility "amf-state" which can be used to list only > controller SISU like this: > > amf-state siass ha safSi=SC-2N,safApp=OpenSAF > safSISU=safSu=SC-1\,safSg=2N\,safApp=OpenSAF,safSi=SC-2N,safApp=OpenSAF > saAmfSISUHAState=ACTIVE(1) > safSISU=safSu=SC-2\,safSg=2N\,safApp=OpenSAF,safSi=SC-2N,safApp=OpenSAF > saAmfSISUHAState=STANDBY(2) > > Thanks > Praveen > > > On 11-May-17 2:50 AM, Degn Gerald wrote: >> 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! >> https://urldefense.proofpoint.com/v2/url?u=http-3A__sdm.link_slashdot&d=DwIFAw&c=RoP1YumCXCgaWHvlZYR8PQcxBKCX5YTpkKY057SbK10&r=Lehk1PZKwfDQtYJXNyUKbPAqrw5O--SlPRAF9DIEps4&m=W7T6-iiG4Ts74CnYczooaVK-gIlSprjTtMpGZAQmIko&s=l_l9YVyV59hrIKjTJh2s9sVZDnoEZd_F-cdAhFnxarU&e= >> _______________________________________________ >> Opensaf-users mailing list >> [email protected] >> https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.sourceforge.net_lists_listinfo_opensaf-2Dusers&d=DwIFAw&c=RoP1YumCXCgaWHvlZYR8PQcxBKCX5YTpkKY057SbK10&r=Lehk1PZKwfDQtYJXNyUKbPAqrw5O--SlPRAF9DIEps4&m=W7T6-iiG4Ts74CnYczooaVK-gIlSprjTtMpGZAQmIko&s=MrbhvR4THj9HNOlBRDshlRS2UZK25IyPL9Qh31g4g2Y&e= >> >> >> >> 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! >> https://urldefense.proofpoint.com/v2/url?u=http-3A__sdm.link_slashdot&d=DwIFAw&c=RoP1YumCXCgaWHvlZYR8PQcxBKCX5YTpkKY057SbK10&r=Lehk1PZKwfDQtYJXNyUKbPAqrw5O--SlPRAF9DIEps4&m=W7T6-iiG4Ts74CnYczooaVK-gIlSprjTtMpGZAQmIko&s=l_l9YVyV59hrIKjTJh2s9sVZDnoEZd_F-cdAhFnxarU&e= >> _______________________________________________ >> Opensaf-users mailing list >> [email protected] >> https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.sourceforge.net_lists_listinfo_opensaf-2Dusers&d=DwIFAw&c=RoP1YumCXCgaWHvlZYR8PQcxBKCX5YTpkKY057SbK10&r=Lehk1PZKwfDQtYJXNyUKbPAqrw5O--SlPRAF9DIEps4&m=W7T6-iiG4Ts74CnYczooaVK-gIlSprjTtMpGZAQmIko&s=MrbhvR4THj9HNOlBRDshlRS2UZK25IyPL9Qh31g4g2Y&e= >> > ------------------------------------------------------------------------------ > 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 ------------------------------------------------------------------------------ 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
