<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: query mds to determine if cma is active or standby in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/query-mds-to-determine-if-cma-is-active-or-standby/m-p/84367#M4827</link>
    <description>&lt;P&gt;The only way I found how to do it is by going into each domain environment and running cpstat mg see example below.&lt;/P&gt;&lt;P&gt;[Expert@mnhqgocpmds02:0]# mdsenv example_dms&lt;BR /&gt;[Expert@mnhqgocpmds02:0]# cpstat mg&lt;/P&gt;&lt;P&gt;Product Name: Check Point Security Management Server&lt;BR /&gt;Major version: 6&lt;BR /&gt;Minor version: 0&lt;BR /&gt;Build number: 993000016&lt;BR /&gt;Is started: 1&lt;BR /&gt;Active status: active&lt;BR /&gt;Status: OK&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Connected clients&lt;BR /&gt;----------------------------------------------&lt;BR /&gt;|Client type|Administrator|Host|Database lock|&lt;BR /&gt;----------------------------------------------&lt;BR /&gt;----------------------------------------------&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 06 May 2020 16:35:32 GMT</pubDate>
    <dc:creator>Ruben_Martinez</dc:creator>
    <dc:date>2020-05-06T16:35:32Z</dc:date>
    <item>
      <title>query mds to determine if cma is active or standby</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/query-mds-to-determine-if-cma-is-active-or-standby/m-p/81548#M4715</link>
      <description>&lt;P&gt;I have several api scripts i've written that let me add hosts, add to groups, add groups etc ... but part of the input i give them is the MDS IP and CMA IP.&amp;nbsp; I have multiple MDS's in different data centers with CMA's in HA.&amp;nbsp; It's always fine to query data on 1 mds and pull data from a standby cma since in those cases i'm using a user ID with only RO creds.&amp;nbsp; but when we need to write data I have to be hitting the active cma.&amp;nbsp; &amp;nbsp;I'd like to create a web front end for some of this work since some of the folks who are going to need to be able to add things to some fw groups need a more self service feature via web form.&amp;nbsp; &amp;nbsp;I don't want to have to go back if it fails and query the system if a cma was moved and update the back end code.&lt;/P&gt;&lt;P&gt;I looked at show domains with full details and I'm not seeing anything in there that indicates the CMA status.&lt;/P&gt;&lt;P&gt;ideal case is i can run a cma status script and update my web forms each morning ... since cma's don't fail over often if ever ... at this point i'm more curious as to how to determine this status and it's bothering me that it's not a simple json parse.&lt;/P&gt;&lt;P&gt;*edit* MDS are all R80.30&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks for reading,&lt;/P&gt;&lt;P&gt;greg&lt;/P&gt;</description>
      <pubDate>Fri, 10 Apr 2020 15:22:05 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/query-mds-to-determine-if-cma-is-active-or-standby/m-p/81548#M4715</guid>
      <dc:creator>Greg_Dunlap</dc:creator>
      <dc:date>2020-04-10T15:22:05Z</dc:date>
    </item>
    <item>
      <title>Re: query mds to determine if cma is active or standby</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/query-mds-to-determine-if-cma-is-active-or-standby/m-p/84367#M4827</link>
      <description>&lt;P&gt;The only way I found how to do it is by going into each domain environment and running cpstat mg see example below.&lt;/P&gt;&lt;P&gt;[Expert@mnhqgocpmds02:0]# mdsenv example_dms&lt;BR /&gt;[Expert@mnhqgocpmds02:0]# cpstat mg&lt;/P&gt;&lt;P&gt;Product Name: Check Point Security Management Server&lt;BR /&gt;Major version: 6&lt;BR /&gt;Minor version: 0&lt;BR /&gt;Build number: 993000016&lt;BR /&gt;Is started: 1&lt;BR /&gt;Active status: active&lt;BR /&gt;Status: OK&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Connected clients&lt;BR /&gt;----------------------------------------------&lt;BR /&gt;|Client type|Administrator|Host|Database lock|&lt;BR /&gt;----------------------------------------------&lt;BR /&gt;----------------------------------------------&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 May 2020 16:35:32 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/query-mds-to-determine-if-cma-is-active-or-standby/m-p/84367#M4827</guid>
      <dc:creator>Ruben_Martinez</dc:creator>
      <dc:date>2020-05-06T16:35:32Z</dc:date>
    </item>
    <item>
      <title>Re: query mds to determine if cma is active or standby</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/query-mds-to-determine-if-cma-is-active-or-standby/m-p/85012#M4860</link>
      <description>&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;Not API, but command works on both MDS and Domain level&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;cpprod_util FwIsPrimary&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;If 1 is Primary&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;If 0 then secondary&lt;/P&gt;</description>
      <pubDate>Wed, 13 May 2020 04:56:15 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/query-mds-to-determine-if-cma-is-active-or-standby/m-p/85012#M4860</guid>
      <dc:creator>Gary_Lipets1</dc:creator>
      <dc:date>2020-05-13T04:56:15Z</dc:date>
    </item>
  </channel>
</rss>

