<?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: Is there a way to pull a text from a gateway on the management station using established trust ( in General Topics</title>
    <link>https://community.checkpoint.com/t5/General-Topics/Is-there-a-way-to-pull-a-text-from-a-gateway-on-the-management/m-p/69805#M14172</link>
    <description>&lt;P&gt;Depending on the request, the response will be returned with base64 encoding. You would need to parse the response from the gateway and then decode it.&lt;/P&gt;
&lt;P&gt;For example - Using mgmt_cli on the Manager and running ifconfig on the gateway and filtering for the task details:&lt;/P&gt;
&lt;PRE&gt;# mgmt_cli -r true run-script script-name test2 script "ifconfig eth1" targets gw01 -f json | jq -r '&lt;STRONG&gt;.tasks[]|."task-details"[]|.responseMessage&lt;/STRONG&gt;'| base64 -d&lt;/PRE&gt;
&lt;P&gt;It provides the following data:&lt;/P&gt;
&lt;PRE&gt;---------------------------------------------&lt;BR /&gt;Time: [15:02:13] 9/12/2019&lt;BR /&gt;---------------------------------------------&lt;BR /&gt;"gw01 - test2" succeeded (100%) &lt;BR /&gt;eth1 Link encap:Ethernet HWaddr 00:1C:7F:84:6B:68 &lt;BR /&gt;inet addr:172.16.99.1 Bcast:172.16.99.255 Mask:255.255.255.0&lt;BR /&gt;inet6 addr: fe80::21c:7fff:fe84:6b68/64 Scope:Link&lt;BR /&gt;UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1&lt;BR /&gt;RX packets:108809061 errors:0 dropped:10061860 overruns:0 frame:0&lt;BR /&gt;TX packets:315274900 errors:0 dropped:0 overruns:0 carrier:0&lt;BR /&gt;collisions:0 txqueuelen:1000 &lt;BR /&gt;RX bytes:27556684726 (25.6 GiB) TX bytes:443734405363 (413.2 GiB)&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 09 Dec 2019 20:05:24 GMT</pubDate>
    <dc:creator>masher</dc:creator>
    <dc:date>2019-12-09T20:05:24Z</dc:date>
    <item>
      <title>Is there a way to pull a text from a gateway on the management station using established trust (with</title>
      <link>https://community.checkpoint.com/t5/General-Topics/Is-there-a-way-to-pull-a-text-from-a-gateway-on-the-management/m-p/69800#M14168</link>
      <description>&lt;P&gt;I am trying to automate some process and need to get a text file from a gateway on the management station. Is there a way to do it using the established trust? Tried to use run-script to cat the file, but output is garbled text. Thanks.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Dec 2019 19:03:35 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/Is-there-a-way-to-pull-a-text-from-a-gateway-on-the-management/m-p/69800#M14168</guid>
      <dc:creator>Jin_Zhou</dc:creator>
      <dc:date>2019-12-09T19:03:35Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to pull a text from a gateway on the management station using established trust (</title>
      <link>https://community.checkpoint.com/t5/General-Topics/Is-there-a-way-to-pull-a-text-from-a-gateway-on-the-management/m-p/69802#M14170</link>
      <description>&lt;P&gt;Assuming SIC is already established, yes.&lt;/P&gt;
&lt;H2 class="message-subject"&gt;&lt;SPAN class="lia-message-unread"&gt;&lt;A id="link_11" class="page-link lia-link-navigation lia-custom-event" href="https://community.checkpoint.com/t5/Enterprise-Appliances-and-Gaia/GAIA-Easy-execute-CLI-commands-on-all-gateways-simultaneously/m-p/50883?search-action-id=9918895588&amp;amp;search-result-uid=50883" target="_blank"&gt;GAIA - Easy &lt;SPAN class="lia-search-match-lithium"&gt;execute&lt;/SPAN&gt; CLI commands on all gateways s...&lt;/A&gt;&lt;/SPAN&gt;&lt;/H2&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Dec 2019 19:18:33 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/Is-there-a-way-to-pull-a-text-from-a-gateway-on-the-management/m-p/69802#M14170</guid>
      <dc:creator>Timothy_Hall</dc:creator>
      <dc:date>2019-12-09T19:18:33Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to pull a text from a gateway on the management station using established trust (</title>
      <link>https://community.checkpoint.com/t5/General-Topics/Is-there-a-way-to-pull-a-text-from-a-gateway-on-the-management/m-p/69803#M14171</link>
      <description>&lt;P&gt;Thanks Tim. That is a great script. I will look into it to see&amp;nbsp;if it can solve my problem.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Dec 2019 19:39:07 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/Is-there-a-way-to-pull-a-text-from-a-gateway-on-the-management/m-p/69803#M14171</guid>
      <dc:creator>Jin_Zhou</dc:creator>
      <dc:date>2019-12-09T19:39:07Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to pull a text from a gateway on the management station using established trust (</title>
      <link>https://community.checkpoint.com/t5/General-Topics/Is-there-a-way-to-pull-a-text-from-a-gateway-on-the-management/m-p/69805#M14172</link>
      <description>&lt;P&gt;Depending on the request, the response will be returned with base64 encoding. You would need to parse the response from the gateway and then decode it.&lt;/P&gt;
&lt;P&gt;For example - Using mgmt_cli on the Manager and running ifconfig on the gateway and filtering for the task details:&lt;/P&gt;
&lt;PRE&gt;# mgmt_cli -r true run-script script-name test2 script "ifconfig eth1" targets gw01 -f json | jq -r '&lt;STRONG&gt;.tasks[]|."task-details"[]|.responseMessage&lt;/STRONG&gt;'| base64 -d&lt;/PRE&gt;
&lt;P&gt;It provides the following data:&lt;/P&gt;
&lt;PRE&gt;---------------------------------------------&lt;BR /&gt;Time: [15:02:13] 9/12/2019&lt;BR /&gt;---------------------------------------------&lt;BR /&gt;"gw01 - test2" succeeded (100%) &lt;BR /&gt;eth1 Link encap:Ethernet HWaddr 00:1C:7F:84:6B:68 &lt;BR /&gt;inet addr:172.16.99.1 Bcast:172.16.99.255 Mask:255.255.255.0&lt;BR /&gt;inet6 addr: fe80::21c:7fff:fe84:6b68/64 Scope:Link&lt;BR /&gt;UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1&lt;BR /&gt;RX packets:108809061 errors:0 dropped:10061860 overruns:0 frame:0&lt;BR /&gt;TX packets:315274900 errors:0 dropped:0 overruns:0 carrier:0&lt;BR /&gt;collisions:0 txqueuelen:1000 &lt;BR /&gt;RX bytes:27556684726 (25.6 GiB) TX bytes:443734405363 (413.2 GiB)&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Dec 2019 20:05:24 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/Is-there-a-way-to-pull-a-text-from-a-gateway-on-the-management/m-p/69805#M14172</guid>
      <dc:creator>masher</dc:creator>
      <dc:date>2019-12-09T20:05:24Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to pull a text from a gateway on the management station using established trust (</title>
      <link>https://community.checkpoint.com/t5/General-Topics/Is-there-a-way-to-pull-a-text-from-a-gateway-on-the-management/m-p/69806#M14173</link>
      <description>&lt;P&gt;Thanks. That should work too. However, from Tim's solution I found this command "cprid_util". It should do exact what I need. You can run&amp;nbsp;cprid_util --help for more information.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Dec 2019 20:13:39 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/Is-there-a-way-to-pull-a-text-from-a-gateway-on-the-management/m-p/69806#M14173</guid>
      <dc:creator>Jin_Zhou</dc:creator>
      <dc:date>2019-12-09T20:13:39Z</dc:date>
    </item>
  </channel>
</rss>

