<?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: Bash - Name and IP of any Gateway? in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Bash-Name-and-IP-of-any-Gateway/m-p/58127#M3692</link>
    <description>&lt;P&gt;I'm working on improving &lt;A href="https://community.checkpoint.com/t5/Enterprise-Appliances-and-Gaia/One-liner-for-Address-Spoofing-Troubleshooting/td-p/33204" target="_self"&gt;this One-Liner&lt;/A&gt; that is executed locally on physcial and virtual gateways (VS). So cprid executed on the management doesn't help here.&lt;/P&gt;
&lt;P&gt;I figured it all out by myself now. Name of the current VS environment:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;echo $vsname&lt;/LI-CODE&gt;
&lt;P&gt;IP address is in:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;$FWDIR/state/local/FW1/local.vs_netobj&lt;/LI-CODE&gt;</description>
    <pubDate>Mon, 15 Jul 2019 02:40:32 GMT</pubDate>
    <dc:creator>Danny</dc:creator>
    <dc:date>2019-07-15T02:40:32Z</dc:date>
    <item>
      <title>Bash - Name and IP of any Gateway?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Bash-Name-and-IP-of-any-Gateway/m-p/58107#M3689</link>
      <description>&lt;P&gt;I‘m looking for a way to retrieve the name and IP address of any Check Point gateway locally on the system exactly as they are shown in the gateway list of SmartConsole, including VS systems.&lt;/P&gt;
&lt;P&gt;Environment: &amp;nbsp;Expert Mode (Bash).&lt;/P&gt;
&lt;P&gt;For Non-VS systems this could be easily performed via:&amp;nbsp;&lt;STRONG&gt;grep `hostname` /etc/hosts&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;However, I need a solution that also works on VSX systems in different VS environments.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jul 2019 17:57:36 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Bash-Name-and-IP-of-any-Gateway/m-p/58107#M3689</guid>
      <dc:creator>Danny</dc:creator>
      <dc:date>2019-07-12T17:57:36Z</dc:date>
    </item>
    <item>
      <title>Re: Bash - Name and IP of any Gateway?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Bash-Name-and-IP-of-any-Gateway/m-p/58124#M3691</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/687"&gt;@Danny&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;I don't understand exactly what you want. Use this script from me and execute the commands on all gateways.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.checkpoint.com/t5/Enterprise-Appliances-and-Gaia/GAIA-Easy-execute-CLI-commands-on-all-gateways-simultaneously/m-p/50883/highlight/true#M3783" target="_self"&gt;GAIA - Easy execute CLI commands on all gateways simultaneously&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;# gw_mbash grep `hostname` /etc/hosts&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; ==&amp;gt; Here you should see the hostnames&lt;/P&gt;
&lt;P&gt;# gw_mbash vsx stat -v&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ==&amp;gt; Here you should see the names for all vsx systems&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jul 2019 17:39:03 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Bash-Name-and-IP-of-any-Gateway/m-p/58124#M3691</guid>
      <dc:creator>HeikoAnkenbrand</dc:creator>
      <dc:date>2019-07-12T17:39:03Z</dc:date>
    </item>
    <item>
      <title>Re: Bash - Name and IP of any Gateway?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Bash-Name-and-IP-of-any-Gateway/m-p/58127#M3692</link>
      <description>&lt;P&gt;I'm working on improving &lt;A href="https://community.checkpoint.com/t5/Enterprise-Appliances-and-Gaia/One-liner-for-Address-Spoofing-Troubleshooting/td-p/33204" target="_self"&gt;this One-Liner&lt;/A&gt; that is executed locally on physcial and virtual gateways (VS). So cprid executed on the management doesn't help here.&lt;/P&gt;
&lt;P&gt;I figured it all out by myself now. Name of the current VS environment:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;echo $vsname&lt;/LI-CODE&gt;
&lt;P&gt;IP address is in:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;$FWDIR/state/local/FW1/local.vs_netobj&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 15 Jul 2019 02:40:32 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Bash-Name-and-IP-of-any-Gateway/m-p/58127#M3692</guid>
      <dc:creator>Danny</dc:creator>
      <dc:date>2019-07-15T02:40:32Z</dc:date>
    </item>
  </channel>
</rss>

