<?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: ONELINER - Smart Center Server Infos on the Gateway in Scripts</title>
    <link>https://community.checkpoint.com/t5/Scripts/ONELINER-Smart-Center-Server-Infos-on-the-Gateway/m-p/156124#M990</link>
    <description>&lt;P&gt;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/38213"&gt;@the_rock&lt;/a&gt;&amp;nbsp;: Could you please check if &lt;A href="https://community.checkpoint.com/t5/Scripts/ccc-Common-Check-Point-Commands/m-p/38488/highlight/true#M4" target="_self"&gt;ccc&lt;/A&gt; shows your Management IP and name correctly on your gateway?&lt;/P&gt;</description>
    <pubDate>Wed, 31 Aug 2022 20:46:12 GMT</pubDate>
    <dc:creator>Danny</dc:creator>
    <dc:date>2022-08-31T20:46:12Z</dc:date>
    <item>
      <title>ONELINER - Smart Center Server Infos on the Gateway</title>
      <link>https://community.checkpoint.com/t5/Scripts/ONELINER-Smart-Center-Server-Infos-on-the-Gateway/m-p/156112#M988</link>
      <description>&lt;P&gt;&lt;STRONG&gt;On the gateway&lt;/STRONG&gt; I often have the question how to reach the management server if I do not know the customer environment.&lt;/P&gt;
&lt;P&gt;- What is the Managenemt Server IP address?&lt;BR /&gt;- Via which interface is the Management Server connected? &lt;BR /&gt;- What is the name of my Management Server?&lt;/P&gt;
&lt;P&gt;To show this easily, I have created a small oneliner.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="c"&gt;clear;echo -n "Name:     "; more $FWDIR/conf/masters | grep -A 1 Policy | grep -v Policy; test=$(more $FWDIR/state/local/FW1/local.implied_rules | grep -A 10 accept_cpmi_port_reverse | grep -A 1 src | grep -v src | awk '{split($0,a,"\""); print  a[2]}' | awk '{split($0,a,"-"); print  a[1]}'); echo "IP:       $test"; echo -n "Network:  "; ip route show to match $test | grep kernel |awk '{split($0,a," "); print  a[3]}'
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It shows you the info simply - as follows:&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="sms_info.jpg" style="width: 252px;"&gt;&lt;img src="https://community.checkpoint.com/t5/image/serverpage/image-id/17619i238F405C9DC80987/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sms_info.jpg" alt="sms_info.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is a demo video:&lt;BR /&gt;&lt;div class="lia-vid-container video-embed-center"&gt;&lt;div id="lia-vid-6384309278112w400h206r718" class="lia-video-brightcove-player-container"&gt;&lt;video-js data-video-id="6384309278112" data-account="6058022097001" data-player="default" data-embed="default" class="vjs-fluid" controls="" data-application-id="" style="width: 100%; height: 100%;"&gt;&lt;/video-js&gt;&lt;/div&gt;&lt;script src="https://players.brightcove.net/6058022097001/default_default/index.min.js"&gt;&lt;/script&gt;&lt;script&gt;(function() {  var wrapper = document.getElementById('lia-vid-6384309278112w400h206r718');  var videoEl = wrapper ? wrapper.querySelector('video-js') : null;  if (videoEl) {     if (window.videojs) {       window.videojs(videoEl).ready(function() {         this.on('loadedmetadata', function() {           this.el().querySelectorAll('.vjs-load-progress div[data-start]').forEach(function(bar) {             bar.setAttribute('role', 'presentation');             bar.setAttribute('aria-hidden', 'true');           });         });       });     }  }})();&lt;/script&gt;&lt;a class="video-embed-link" href="https://community.checkpoint.com/t5/video/gallerypage/video-id/6384309278112"&gt;(view in My Videos)&lt;/a&gt;&lt;/div&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Oct 2025 21:33:57 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Scripts/ONELINER-Smart-Center-Server-Infos-on-the-Gateway/m-p/156112#M988</guid>
      <dc:creator>HeikoAnkenbrand</dc:creator>
      <dc:date>2025-10-30T21:33:57Z</dc:date>
    </item>
    <item>
      <title>Re: ONELINER - Smart Center Server Infos on the Gateway</title>
      <link>https://community.checkpoint.com/t5/Scripts/ONELINER-Smart-Center-Server-Infos-on-the-Gateway/m-p/156120#M989</link>
      <description>&lt;P&gt;I ran it, but comes up with wrong IP for management, should be 172.16.10.105&lt;/P&gt;
&lt;P&gt;[Expert@GATEWAY:0]# clear;echo -n "Name: "; more $FWDIR/conf/masters | grep -A 1 Policy | grep -v Policy; test=$(more $FWDIR/state/local/FW1/local.implied_rules | grep -A 10 accept_cpmi_port_reverse | grep -A 1 src | grep -v src | awk '{split($0,a,"\""); print a[2]}' | awk '{split($0,a,"-"); print a[1]}'); echo "IP: $test"; echo -n "Network: "; ip route show to match $test | grep kernel |awk '{split($0,a," "); print a[3]}'&lt;BR /&gt;Name: MANAGEMENT&lt;BR /&gt;IP: 10.16.10.105&lt;BR /&gt;Network: [Expert@GATEWAY:0]#&lt;/P&gt;</description>
      <pubDate>Wed, 31 Aug 2022 19:27:54 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Scripts/ONELINER-Smart-Center-Server-Infos-on-the-Gateway/m-p/156120#M989</guid>
      <dc:creator>the_rock</dc:creator>
      <dc:date>2022-08-31T19:27:54Z</dc:date>
    </item>
    <item>
      <title>Re: ONELINER - Smart Center Server Infos on the Gateway</title>
      <link>https://community.checkpoint.com/t5/Scripts/ONELINER-Smart-Center-Server-Infos-on-the-Gateway/m-p/156124#M990</link>
      <description>&lt;P&gt;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/38213"&gt;@the_rock&lt;/a&gt;&amp;nbsp;: Could you please check if &lt;A href="https://community.checkpoint.com/t5/Scripts/ccc-Common-Check-Point-Commands/m-p/38488/highlight/true#M4" target="_self"&gt;ccc&lt;/A&gt; shows your Management IP and name correctly on your gateway?&lt;/P&gt;</description>
      <pubDate>Wed, 31 Aug 2022 20:46:12 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Scripts/ONELINER-Smart-Center-Server-Infos-on-the-Gateway/m-p/156124#M990</guid>
      <dc:creator>Danny</dc:creator>
      <dc:date>2022-08-31T20:46:12Z</dc:date>
    </item>
    <item>
      <title>Re: ONELINER - Smart Center Server Infos on the Gateway</title>
      <link>https://community.checkpoint.com/t5/Scripts/ONELINER-Smart-Center-Server-Infos-on-the-Gateway/m-p/156137#M991</link>
      <description>&lt;P&gt;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/21670"&gt;@HeikoAnkenbrand&lt;/a&gt;&amp;nbsp;Why are you posting here and not to the ToolBox?&lt;/P&gt;</description>
      <pubDate>Thu, 01 Sep 2022 06:46:16 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Scripts/ONELINER-Smart-Center-Server-Infos-on-the-Gateway/m-p/156137#M991</guid>
      <dc:creator>_Val_</dc:creator>
      <dc:date>2022-09-01T06:46:16Z</dc:date>
    </item>
    <item>
      <title>Re: ONELINER - Smart Center Server Infos on the Gateway</title>
      <link>https://community.checkpoint.com/t5/Scripts/ONELINER-Smart-Center-Server-Infos-on-the-Gateway/m-p/156228#M992</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/687"&gt;@Danny&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;All I get from that is below:&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;[Expert@GATEWAY:0]# curl_cli $(if [[ `grep proxy:ip /config/active` ]]; then echo -n '--proxy '; grep proxy:ip /config/active|cut -f2 -d' '|tr -d '\n'; echo -n :; grep proxy:port /config/active|cut -f2 -d' '; fi) -k &lt;A href="https://dannyjung.de/ccc|" target="_blank"&gt;https://dannyjung.de/ccc|&lt;/A&gt;zcat &amp;gt; /usr/bin/ccc &amp;amp;&amp;amp; chmod +x /usr/bin/ccc; . ~/.bashrc&lt;BR /&gt;% Total % Received % Xferd Average Speed Time Time Time Current&lt;BR /&gt;Dload Upload Total Spent Left Speed&lt;BR /&gt;100 31014 100 31014 0 0 36921 0 --:--:-- --:--:-- --:--:-- 45144&lt;BR /&gt;[Expert@GATEWAY:0]#&lt;/P&gt;</description>
      <pubDate>Thu, 01 Sep 2022 14:26:00 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Scripts/ONELINER-Smart-Center-Server-Infos-on-the-Gateway/m-p/156228#M992</guid>
      <dc:creator>the_rock</dc:creator>
      <dc:date>2022-09-01T14:26:00Z</dc:date>
    </item>
    <item>
      <title>Re: ONELINER - Smart Center Server Infos on the Gateway</title>
      <link>https://community.checkpoint.com/t5/Scripts/ONELINER-Smart-Center-Server-Infos-on-the-Gateway/m-p/156229#M993</link>
      <description>&lt;P&gt;By the way, now I see proper IP, not sure why it took almost 18 hours, but it does work : - )&lt;/P&gt;
&lt;P&gt;Name: MANAGEMENT&lt;BR /&gt;IP: 172.16.10.105&lt;BR /&gt;Network: eth0&lt;BR /&gt;[Expert@GATEWAY:0]#&lt;/P&gt;</description>
      <pubDate>Thu, 01 Sep 2022 14:26:55 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Scripts/ONELINER-Smart-Center-Server-Infos-on-the-Gateway/m-p/156229#M993</guid>
      <dc:creator>the_rock</dc:creator>
      <dc:date>2022-09-01T14:26:55Z</dc:date>
    </item>
    <item>
      <title>Re: ONELINER - Smart Center Server Infos on the Gateway</title>
      <link>https://community.checkpoint.com/t5/Scripts/ONELINER-Smart-Center-Server-Infos-on-the-Gateway/m-p/156230#M994</link>
      <description>&lt;P&gt;Did you run &lt;CODE&gt;ccc&lt;/CODE&gt; after installing it?&lt;/P&gt;</description>
      <pubDate>Thu, 01 Sep 2022 14:35:09 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Scripts/ONELINER-Smart-Center-Server-Infos-on-the-Gateway/m-p/156230#M994</guid>
      <dc:creator>Danny</dc:creator>
      <dc:date>2022-09-01T14:35:09Z</dc:date>
    </item>
    <item>
      <title>Re: ONELINER - Smart Center Server Infos on the Gateway</title>
      <link>https://community.checkpoint.com/t5/Scripts/ONELINER-Smart-Center-Server-Infos-on-the-Gateway/m-p/156233#M995</link>
      <description>&lt;P&gt;I did yes&lt;/P&gt;</description>
      <pubDate>Thu, 01 Sep 2022 15:18:25 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Scripts/ONELINER-Smart-Center-Server-Infos-on-the-Gateway/m-p/156233#M995</guid>
      <dc:creator>the_rock</dc:creator>
      <dc:date>2022-09-01T15:18:25Z</dc:date>
    </item>
    <item>
      <title>Re: ONELINER - Smart Center Server Infos on the Gateway</title>
      <link>https://community.checkpoint.com/t5/Scripts/ONELINER-Smart-Center-Server-Infos-on-the-Gateway/m-p/261486#M1224</link>
      <description>&lt;P&gt;Here is a demo video:&lt;BR /&gt;&lt;div class="lia-vid-container video-embed-center"&gt;&lt;div id="lia-vid-6384310054112w400h206r448" class="lia-video-brightcove-player-container"&gt;&lt;video-js data-video-id="6384310054112" data-account="6058022097001" data-player="default" data-embed="default" class="vjs-fluid" controls="" data-application-id="" style="width: 100%; height: 100%;"&gt;&lt;/video-js&gt;&lt;/div&gt;&lt;script src="https://players.brightcove.net/6058022097001/default_default/index.min.js"&gt;&lt;/script&gt;&lt;script&gt;(function() {  var wrapper = document.getElementById('lia-vid-6384310054112w400h206r448');  var videoEl = wrapper ? wrapper.querySelector('video-js') : null;  if (videoEl) {     if (window.videojs) {       window.videojs(videoEl).ready(function() {         this.on('loadedmetadata', function() {           this.el().querySelectorAll('.vjs-load-progress div[data-start]').forEach(function(bar) {             bar.setAttribute('role', 'presentation');             bar.setAttribute('aria-hidden', 'true');           });         });       });     }  }})();&lt;/script&gt;&lt;a class="video-embed-link" href="https://community.checkpoint.com/t5/video/gallerypage/video-id/6384310054112"&gt;(view in My Videos)&lt;/a&gt;&lt;/div&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Oct 2025 21:35:56 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Scripts/ONELINER-Smart-Center-Server-Infos-on-the-Gateway/m-p/261486#M1224</guid>
      <dc:creator>HeikoAnkenbrand</dc:creator>
      <dc:date>2025-10-30T21:35:56Z</dc:date>
    </item>
  </channel>
</rss>

