<?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 At a gateway, how do I determine what domain the gateway belongs to? in General Topics</title>
    <link>https://community.checkpoint.com/t5/General-Topics/At-a-gateway-how-do-I-determine-what-domain-the-gateway-belongs/m-p/251967#M42151</link>
    <description>&lt;P&gt;Hi folks,&lt;/P&gt;
&lt;P&gt;MDM Environment.&amp;nbsp; How can I determine at the gateway where a policy was installed from?&amp;nbsp; Even better, how can I determine the domain the gateway and policy belong to?&lt;BR /&gt;&lt;BR /&gt;I tried finding a CLI command, MIB member, and even if I could find the name in logs or certificates.&amp;nbsp; Has anyone figured this out?&lt;BR /&gt;&lt;BR /&gt;TIA&lt;BR /&gt;George Ellis&amp;nbsp;@ IHG&lt;/P&gt;</description>
    <pubDate>Wed, 25 Jun 2025 13:54:50 GMT</pubDate>
    <dc:creator>George_Ellis</dc:creator>
    <dc:date>2025-06-25T13:54:50Z</dc:date>
    <item>
      <title>At a gateway, how do I determine what domain the gateway belongs to?</title>
      <link>https://community.checkpoint.com/t5/General-Topics/At-a-gateway-how-do-I-determine-what-domain-the-gateway-belongs/m-p/251967#M42151</link>
      <description>&lt;P&gt;Hi folks,&lt;/P&gt;
&lt;P&gt;MDM Environment.&amp;nbsp; How can I determine at the gateway where a policy was installed from?&amp;nbsp; Even better, how can I determine the domain the gateway and policy belong to?&lt;BR /&gt;&lt;BR /&gt;I tried finding a CLI command, MIB member, and even if I could find the name in logs or certificates.&amp;nbsp; Has anyone figured this out?&lt;BR /&gt;&lt;BR /&gt;TIA&lt;BR /&gt;George Ellis&amp;nbsp;@ IHG&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jun 2025 13:54:50 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/At-a-gateway-how-do-I-determine-what-domain-the-gateway-belongs/m-p/251967#M42151</guid>
      <dc:creator>George_Ellis</dc:creator>
      <dc:date>2025-06-25T13:54:50Z</dc:date>
    </item>
    <item>
      <title>Re: At a gateway, how do I determine what domain the gateway belongs to?</title>
      <link>https://community.checkpoint.com/t5/General-Topics/At-a-gateway-how-do-I-determine-what-domain-the-gateway-belongs/m-p/251968#M42152</link>
      <description>&lt;P&gt;You will get some clues from the following cmds:&lt;/P&gt;
&lt;P&gt;netstat -an | grep 18192&amp;nbsp;&lt;/P&gt;
&lt;P&gt;cpstat fw&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jun 2025 14:10:08 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/At-a-gateway-how-do-I-determine-what-domain-the-gateway-belongs/m-p/251968#M42152</guid>
      <dc:creator>Chris_Atkinson</dc:creator>
      <dc:date>2025-06-25T14:10:08Z</dc:date>
    </item>
    <item>
      <title>Re: At a gateway, how do I determine what domain the gateway belongs to?</title>
      <link>https://community.checkpoint.com/t5/General-Topics/At-a-gateway-how-do-I-determine-what-domain-the-gateway-belongs/m-p/251981#M42153</link>
      <description>&lt;P&gt;Netstat works to a degree as it list both MDMs.&amp;nbsp; Not the preferred method as I will have to create a if/then to assign the domain name to a variable based on the last octet.&lt;BR /&gt;&lt;BR /&gt;There are multiple ways to get the policy name either via snmpwalk or this method (which is what I use)&lt;BR /&gt;fw stat | awk '/localhost/ {print $2,$3}'&lt;BR /&gt;&lt;BR /&gt;Bonus content:&amp;nbsp; - Get the IP of the Log server.&lt;BR /&gt;cpstat fw -f log_connection |grep 'Log-Server Connected' | awk '{print $1}' | sed 's/|//g'&lt;BR /&gt;&amp;lt;Reply is IP&amp;gt;&lt;/P&gt;
&lt;P&gt;cpstat fw -f log_connection |grep 'Log-Server Disconnected' | awk '{print $1}' | sed 's/|//g'&lt;/P&gt;
&lt;P&gt;&amp;lt;Reply is IP&amp;gt;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jun 2025 17:21:52 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/At-a-gateway-how-do-I-determine-what-domain-the-gateway-belongs/m-p/251981#M42153</guid>
      <dc:creator>George_Ellis</dc:creator>
      <dc:date>2025-06-25T17:21:52Z</dc:date>
    </item>
    <item>
      <title>Re: At a gateway, how do I determine what domain the gateway belongs to?</title>
      <link>https://community.checkpoint.com/t5/General-Topics/At-a-gateway-how-do-I-determine-what-domain-the-gateway-belongs/m-p/251982#M42154</link>
      <description>&lt;P&gt;See if this helps.&lt;/P&gt;
&lt;P&gt;Andy&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.checkpoint.com/t5/General-Topics/Policy-location-on-a-gateway-R80/td-p/46865" target="_blank"&gt;https://community.checkpoint.com/t5/General-Topics/Policy-location-on-a-gateway-R80/td-p/46865&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jun 2025 17:33:39 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/At-a-gateway-how-do-I-determine-what-domain-the-gateway-belongs/m-p/251982#M42154</guid>
      <dc:creator>the_rock</dc:creator>
      <dc:date>2025-06-25T17:33:39Z</dc:date>
    </item>
    <item>
      <title>Re: At a gateway, how do I determine what domain the gateway belongs to?</title>
      <link>https://community.checkpoint.com/t5/General-Topics/At-a-gateway-how-do-I-determine-what-domain-the-gateway-belongs/m-p/251983#M42155</link>
      <description>&lt;P&gt;Maybe check below too.&lt;/P&gt;
&lt;P&gt;Andy&lt;/P&gt;
&lt;P&gt;cat $FWDIR/state/local/FW1/local.set | grep -i policy&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jun 2025 17:39:08 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/At-a-gateway-how-do-I-determine-what-domain-the-gateway-belongs/m-p/251983#M42155</guid>
      <dc:creator>the_rock</dc:creator>
      <dc:date>2025-06-25T17:39:08Z</dc:date>
    </item>
    <item>
      <title>Re: At a gateway, how do I determine what domain the gateway belongs to?</title>
      <link>https://community.checkpoint.com/t5/General-Topics/At-a-gateway-how-do-I-determine-what-domain-the-gateway-belongs/m-p/252006#M42161</link>
      <description>&lt;P&gt;Im pasting what you said in the other post from few years ago, will also try this in my R81.20 and R82 labs.&lt;/P&gt;
&lt;P&gt;Andy&lt;/P&gt;
&lt;P&gt;************************&lt;/P&gt;
&lt;P&gt;Thanks guys for the directory suggestions (and the other replies)&lt;BR /&gt;&lt;BR /&gt;I found the cheat code.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;cat $FWDIR/state/local/FW1/local.sic_name |grep 'o='|awk -F ,o= '{print $2}'|awk -F . '{print $NR}'&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Background&lt;BR /&gt;cat local.sic_name&lt;BR /&gt;sic_name=cn=&amp;lt;fwname&amp;gt;,o=&amp;lt;domainname&amp;gt;..&amp;lt;CAthingy&amp;gt;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jun 2025 01:14:55 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/At-a-gateway-how-do-I-determine-what-domain-the-gateway-belongs/m-p/252006#M42161</guid>
      <dc:creator>the_rock</dc:creator>
      <dc:date>2025-06-26T01:14:55Z</dc:date>
    </item>
    <item>
      <title>Re: At a gateway, how do I determine what domain the gateway belongs to?</title>
      <link>https://community.checkpoint.com/t5/General-Topics/At-a-gateway-how-do-I-determine-what-domain-the-gateway-belongs/m-p/252010#M42162</link>
      <description>&lt;P&gt;If you want to see the primary DMS name (and secondary if you have put it in the gateway under 'Fetch Policy') and the log servers, you can cat the masters file.&lt;/P&gt;
&lt;PRE&gt;[Expert@EXLGW-s01-01:0]# cat /var/opt/CPsuite-R82/fw1/conf/masters&lt;BR /&gt;[Policy]&lt;BR /&gt;MgmtName&lt;BR /&gt;[Log]&lt;BR /&gt;MgmtName&lt;BR /&gt;[Alert]&lt;BR /&gt;MgmtName&lt;/PRE&gt;</description>
      <pubDate>Thu, 26 Jun 2025 01:33:09 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/At-a-gateway-how-do-I-determine-what-domain-the-gateway-belongs/m-p/252010#M42162</guid>
      <dc:creator>emmap</dc:creator>
      <dc:date>2025-06-26T01:33:09Z</dc:date>
    </item>
    <item>
      <title>Re: At a gateway, how do I determine what domain the gateway belongs to?</title>
      <link>https://community.checkpoint.com/t5/General-Topics/At-a-gateway-how-do-I-determine-what-domain-the-gateway-belongs/m-p/252057#M42174</link>
      <description>&lt;P&gt;That is even better.&amp;nbsp; It helps with verifying other things like "is there a secondary log server" and "is the HA MDM defined".&lt;BR /&gt;&lt;BR /&gt;[Policy]&lt;BR /&gt;MgmtName&lt;BR /&gt;MgmtNameHA&lt;BR /&gt;[Log]&lt;BR /&gt;MgmtMLMPrimary&lt;BR /&gt;[Alert]&lt;BR /&gt;MgmtMLMPrimary&lt;BR /&gt;[Backup]&lt;BR /&gt;MgmtMLMSecondary&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jun 2025 12:57:16 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/At-a-gateway-how-do-I-determine-what-domain-the-gateway-belongs/m-p/252057#M42174</guid>
      <dc:creator>George_Ellis</dc:creator>
      <dc:date>2025-06-26T12:57:16Z</dc:date>
    </item>
    <item>
      <title>Re: At a gateway, how do I determine what domain the gateway belongs to?</title>
      <link>https://community.checkpoint.com/t5/General-Topics/At-a-gateway-how-do-I-determine-what-domain-the-gateway-belongs/m-p/252058#M42175</link>
      <description>&lt;P&gt;emmap's solution is even better.&lt;BR /&gt;&lt;BR /&gt;cat $FWDIR/conf/masters&lt;BR /&gt;&lt;BR /&gt;I got lazy and asked grok to do it faster than I could type and verify...&lt;BR /&gt;&lt;BR /&gt;cat $FWDIR/conf/masters | awk '/\[Policy\]/ {flag=1; next} /\[/{flag=0} flag' | tr '\n' ' ' | xargs&lt;BR /&gt;cat $FWDIR/conf/masters | awk '/\[Log\]/ {flag=1; next} /\[/{flag=0} flag' | head -n 1&lt;BR /&gt;cat $FWDIR/conf/masters | awk '/\[Backup\]/ {flag=1; next} /\[/{flag=0} flag' | head -n 1&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jun 2025 13:11:21 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/At-a-gateway-how-do-I-determine-what-domain-the-gateway-belongs/m-p/252058#M42175</guid>
      <dc:creator>George_Ellis</dc:creator>
      <dc:date>2025-06-26T13:11:21Z</dc:date>
    </item>
    <item>
      <title>Re: At a gateway, how do I determine what domain the gateway belongs to?</title>
      <link>https://community.checkpoint.com/t5/General-Topics/At-a-gateway-how-do-I-determine-what-domain-the-gateway-belongs/m-p/252059#M42176</link>
      <description>&lt;P&gt;Your command is great too, just tested in my lab.&lt;/P&gt;
&lt;P&gt;Andy&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;[Expert@CP-FW-01:0]# cat $FWDIR/state/local/FW1/local.sic_name |grep 'o='|awk -F ,o= '{print $2}'|awk -F . '{print $NR}'&lt;BR /&gt;cp-management&lt;/P&gt;
&lt;P&gt;[Expert@CP-FW-01:0]#&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jun 2025 13:17:26 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/At-a-gateway-how-do-I-determine-what-domain-the-gateway-belongs/m-p/252059#M42176</guid>
      <dc:creator>the_rock</dc:creator>
      <dc:date>2025-06-26T13:17:26Z</dc:date>
    </item>
    <item>
      <title>Re: At a gateway, how do I determine what domain the gateway belongs to?</title>
      <link>https://community.checkpoint.com/t5/General-Topics/At-a-gateway-how-do-I-determine-what-domain-the-gateway-belongs/m-p/252091#M42191</link>
      <description>&lt;P&gt;BONUS TIME.&lt;BR /&gt;&lt;BR /&gt;We are worldwide with 13 CMAs.&amp;nbsp; There is some mismatch of which firewalls are in which domain.&amp;nbsp; So I am in the CLI and need to go to the SmartConsole CMA.&amp;nbsp; If I don't remember where it resides, go to the MDM SC, click on GATEWAYS and SERVERS, look it up.&lt;BR /&gt;&lt;BR /&gt;Oh, this is easy&lt;BR /&gt;"cat $FWDIR/conf/masters"&lt;BR /&gt;&lt;BR /&gt;Ah, so open that CMA.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jun 2025 19:21:44 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/At-a-gateway-how-do-I-determine-what-domain-the-gateway-belongs/m-p/252091#M42191</guid>
      <dc:creator>George_Ellis</dc:creator>
      <dc:date>2025-06-26T19:21:44Z</dc:date>
    </item>
  </channel>
</rss>

